Skip to content

kivy/pyobjus

Folders and files

NameName
Last commit message
Last commit date

Latest commit

573bd69 Â· Oct 4, 2024
Sep 24, 2024
Sep 24, 2024
Dec 26, 2021
Sep 29, 2024
Sep 24, 2024
Oct 20, 2020
Apr 10, 2016
Feb 6, 2014
Oct 20, 2023
Aug 11, 2017
Nov 5, 2020
Mar 26, 2022
May 13, 2023
Sep 5, 2020
May 25, 2024
May 25, 2024

Repository files navigation

Pyobjus

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

Build Status Backers on Open Collective Sponsors on Open Collective

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 a Discord server:

https://chat.kivy.org/

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:

Discord channel:

License

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

Backers

Thank you to all our backers! 🙏 [Become a backer]

Sponsors

Support this project by becoming a sponsor. Your logo will show up here with a link to your website. [Become a sponsor]