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?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?