Skip to main content

Python wrapper for the GPU texture sharing framework Syphon.

Project description

Syphon for Python

Documentation Build PyPI

⚠️ This library is still under development.

Python wrapper for the GPU texture sharing framework Syphon. This library has been created to support the Metal backend as well as the deprecated OpenGL backend.

The implementation is based on PyObjC to wrap the Syphon-Framework directly from within Python. This approach removes the need of a native wrapper and allows Python developers to extend the library if needed.

State of Development

  • Syphon Server Discovery
  • Metal Server
  • Metal Client
  • OpenGL Server
  • OpenGL Client
  • Syphon Client On Frame Callback

Installation

# clone the repository and it's submodules
git clone --recurse-submodules https://github.com/cansik/syphon-python.git

# install dependencies
pip install -r dev-requirements.txt
pip install -r requirements.txt

# for some examples the following dependencies are needed
pip install numpy
pip install opencv-python

Build

Build the Syphon-Framework on your machine:

python setup.py build

Distribute

Create a wheel package (also runs build automatically)

python setup.py bdist_wheel

Generate Documentation

# create documentation into "./docs
python setup.py doc

# launch pdoc webserver
python setup.py doc --launch

About

MIT License - Copyright (c) 2023 Florian Bruggisser

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

syphon_python-0.1.0-cp312-cp312-macosx_10_9_universal2.whl (458.9 kB view hashes)

Uploaded CPython 3.12 macOS 10.9+ universal2 (ARM64, x86-64)

syphon_python-0.1.0-cp311-cp311-macosx_10_9_universal2.whl (458.9 kB view hashes)

Uploaded CPython 3.11 macOS 10.9+ universal2 (ARM64, x86-64)

syphon_python-0.1.0-cp310-cp310-macosx_10_9_universal2.whl (459.0 kB view hashes)

Uploaded CPython 3.10 macOS 10.9+ universal2 (ARM64, x86-64)

syphon_python-0.1.0-cp39-cp39-macosx_10_9_universal2.whl (458.8 kB view hashes)

Uploaded CPython 3.9 macOS 10.9+ universal2 (ARM64, x86-64)

syphon_python-0.1.0-cp38-cp38-macosx_10_9_universal2.whl (459.0 kB view hashes)

Uploaded CPython 3.8 macOS 10.9+ universal2 (ARM64, x86-64)

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page