ccs-pyosxframeworks

Python Framework for macOS APIs used by CalendarServer

  • Owner: apple/ccs-pyosxframeworks
  • Platform:
  • License:: Apache License 2.0
  • Category::
  • Topic:
  • Like:
    0
      Compare:

Github stars Tracking Chart

Getting Started

This is a python library that wraps a number of useful OS X frameworks.

Develop

cffi wrappers for various frameworks live in the osx.frameworks modules. Run
the osx._corefoundation_cffi_build module to create the osx._corefoundation.so
module. That contains the cffi extension module for the wrappers. Each time
changes are made to the wrapper modules, re-run the cffi build.

The other modules in osx are Python objects that wrap various CoreFoundation
objects to provide implicit CFRetain/CFRelease behavior and also simple
data conversion APIs between the CF types and Python types. For example to
turn a Python string "s" into a CFStringRef:

cfstr = CFStringRef.fromString(s)

The base Python CFObjectRef class assumes ownership of the underlying CF object
and will always release it. If the CF object being passed in has not already been
retained, then set the "owned" argument to False.

Install

python setup.py build

Copyright and License

Copyright (c) 2015-2017 Apple Inc. All rights reserved.

This software is licensed under the Apache License, Version 2.0. The
Apache License is a well-established open source license, enabling
collaborative open source software development.

See the "LICENSE" file for the full text of the license terms.

Main metrics

Overview
Name With Ownerapple/ccs-pyosxframeworks
Primary LanguagePython
Program languagePython (Language Count: 1)
Platform
License:Apache License 2.0
所有者活动
Created At2016-08-04 00:52:17
Pushed At2017-02-27 21:32:24
Last Commit At2017-02-27 13:32:17
Release Count0
用户参与
Stargazers Count27
Watchers Count11
Fork Count19
Commits Count26
Has Issues Enabled
Issues Count0
Issue Open Count0
Pull Requests Count0
Pull Requests Open Count0
Pull Requests Close Count0
项目设置
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private