ccs-pyosxframeworks

Python Framework for macOS APIs used by CalendarServer

  • 所有者: apple/ccs-pyosxframeworks
  • 平台:
  • 许可证: Apache License 2.0
  • 分类:
  • 主题:
  • 喜欢:
    0
      比较:

Github星跟踪图

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.

主要指标

概览
名称与所有者apple/ccs-pyosxframeworks
主编程语言Python
编程语言Python (语言数: 1)
平台
许可证Apache License 2.0
所有者活动
创建于2016-08-04 00:52:17
推送于2017-02-27 21:32:24
最后一次提交2017-02-27 13:32:17
发布数0
用户参与
星数27
关注者数11
派生数19
提交数26
已启用问题?
问题数0
打开的问题数0
拉请求数0
打开的拉请求数0
关闭的拉请求数0
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?