Access Objective-C classes from Python
Go to file
Zen-CODE 6082b52f0a Removed (Committed to wrong branch) 2016-04-23 18:45:18 +02:00
docs doc: removed duplicates for pyobjus.objc_py_types 2016-04-21 16:03:12 +02:00
examples Removed (Committed to wrong branch) 2016-04-23 18:45:18 +02:00
objc_classes added release to object inside bridge class 2013-09-04 02:08:18 +02:00
pyobjus Made lookup more efficent 2016-04-22 17:33:40 +02:00
tests tests: fix some tests on nsstring / nsobject 2015-03-14 12:32:23 +01:00
tools fix protocol parsing and update protocols 2016-04-10 15:31:24 -05:00
.gitignore enhance setup and Makefile to not force compilation of pyobjus, only use depends changes. 2014-02-06 18:19:35 +01:00
LICENSE Update LICENSE 2015-10-19 17:07:16 +03:00
Makefile enhance setup and Makefile to not force compilation of pyobjus, only use depends changes. 2014-02-06 18:19:35 +01:00
README.md doc: grammar tweaks 2016-03-31 11:03:01 +02:00
setup.py add pyobjus.consts to packages in setup.py 2016-03-06 20:57:34 -06:00

README.md

Pyobjus

Python module for accessing Objective-C classes as Python classes using Objective-C runtime reflection.

(Work in progress.)

Quick overview


from pyobjus import autoclass, objc_str
from pyobjus.dylib_manager import load_framework, INCLUDE

# load AppKit framework into pyojbus
load_framework(INCLUDE.AppKit)

# get nsalert class
NSAlert = autoclass('NSAlert')

# create an NSAlert object, and show it.
alert = NSAlert.alloc().init()
alert.setMessageText_(objc_str('Hello world!'))
alert.runModal()

Support

If you need assistance, you can ask for help on our mailing list:

We also have an IRC channel:

  • Server : irc.freenode.net
  • Port : 6667, 6697 (SSL only)
  • Channel : #kivy

Contributing

We love pull requests and discussing novel ideas. Check out our contribution guide and feel free to improve Pyobjus.

The following mailing list and IRC channel are used exclusively for discussions about developing the Kivy framework and its sister projects:

IRC channel:

  • Server : irc.freenode.net
  • Port : 6667, 6697 (SSL only)
  • Channel : #kivy-dev

License

Pyobjus is released under the terms of the MIT License. Please refer to the LICENSE file.