A package to add fully featured OSC support to python
Project description
PyOSC
Python library to support OSC (Open Sound Control).
About the Project
I had issues getting the support I needed out of any of the other packages, so I decided to build my own from scratch. I wanted something that was simple to use, and handled OSC peers in a way that makes sense to me, given that most libruaryies try and apply a client server model that doesn't really exist in OSC. I also wanted to support both UDP and TCP transport protocols, as well as both OSC version 1.0 and 1.1. I wanted to make sure the library was flexible enough for me to work the way I wanted to work, and that it would be easy to treat OSC more as an API, than as a messaging protocol.
Features
- Support for both UDP and TCP transport protocols
- Flexible message handling with customizable handlers
- Support for both OSC version 1.0 and 1.1
- Background processing of incoming messages to avoid blocking the main thread
- Simple API for sending OSC messages to remote hosts
Installation
You can install PyOSC using pip:
pip install pyopensoundcontrol
or when using poetry:
poetry add pyopensoundcontrol
Documentation
The documentation is currently hosted here, with the source files located inside the docs directory in this repository should you want to contribute to it or run it locally.
Bugs and Issues
If you encounter any bugs or issues, please report them on the GitHub Issues page. Make sure to include a clear description of the problem, steps to reproduce it, and any relevant code snippets or error messages.
Contributing
Contributions are welcome! If you would like to contribute to the project, please follow these steps:
- Fork the repository and create a new branch for your feature or bug fix.
- Make your changes and ensure that they are well-documented and tested.
- Submit a pull request with a clear description of your changes and why they are needed.
- The maintainers will review your pull request and provide feedback or merge it if it meets the project's standards.
- Please read the CONTRIBUTING.md file for more detailed guidelines on contributing to the project.
Roadmap
See ROADMAP.md for the current roadmap and upcoming features
Dependencies and Thank yous
- oscparser - A pure Python OSC message parser that supports both OSC 1.0 and 1.1 formats. This library was written by a friend of mine specifically for this project to ensure we have a reliable and flexible OSC parsing solution that meets our needs.
- pytest - A testing framework for Python that makes it easy to write simple and scalable test cases.
- socket - A built-in Python library for low-level network communication, used for sending and receiving OSC messages over UDP and TCP.
- threading - A built-in Python library for creating and managing threads, used to handle incoming OSC messages without blocking the main thread.
- typing - A built-in Python library that provides support for type hints, used to improve code readability and maintainability.
- select - A built-in Python library that provides access to the select() function, used for monitoring multiple file descriptors (sockets) for events such as incoming data.
- Material for MKDocs - A modern and responsive theme for MkDocs, used to create the documentation for this project.
License
This project is licensed under the MIT License - see the LICENSE file for details.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pyopensoundcontrol-2.0.0b9.tar.gz.
File metadata
- Download URL: pyopensoundcontrol-2.0.0b9.tar.gz
- Upload date:
- Size: 23.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
20730266734c3d2e71da028a24487308511c4fc3a4b37f9138197cfd08b21cee
|
|
| MD5 |
9a5f2c43e8e4f5bdd6445b2d62c8ce19
|
|
| BLAKE2b-256 |
ad75634bf31bdf843e3ed4d33142808dc561936a716d78c4371b6ed8edab96cb
|
Provenance
The following attestation bundles were made for pyopensoundcontrol-2.0.0b9.tar.gz:
Publisher:
publish.yml on Theatre-Tools/PyOSC
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pyopensoundcontrol-2.0.0b9.tar.gz -
Subject digest:
20730266734c3d2e71da028a24487308511c4fc3a4b37f9138197cfd08b21cee - Sigstore transparency entry: 1280953095
- Sigstore integration time:
-
Permalink:
Theatre-Tools/PyOSC@33686534012beada9ce8808571a62fd10b0cdcf5 -
Branch / Tag:
refs/tags/2.0.0b9 - Owner: https://github.com/Theatre-Tools
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@33686534012beada9ce8808571a62fd10b0cdcf5 -
Trigger Event:
push
-
Statement type:
File details
Details for the file pyopensoundcontrol-2.0.0b9-py3-none-any.whl.
File metadata
- Download URL: pyopensoundcontrol-2.0.0b9-py3-none-any.whl
- Upload date:
- Size: 15.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d33518be102837955daae0809b98a3ae2ef2885acc2d8efb10453eb7d98be5e8
|
|
| MD5 |
7f97a5ae9a65595020e5f6c4e5026907
|
|
| BLAKE2b-256 |
812e58babbfd4aa6983ee2410d4b44cfcb27c5ad3b180bf89a702f46ededcefd
|
Provenance
The following attestation bundles were made for pyopensoundcontrol-2.0.0b9-py3-none-any.whl:
Publisher:
publish.yml on Theatre-Tools/PyOSC
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pyopensoundcontrol-2.0.0b9-py3-none-any.whl -
Subject digest:
d33518be102837955daae0809b98a3ae2ef2885acc2d8efb10453eb7d98be5e8 - Sigstore transparency entry: 1280953097
- Sigstore integration time:
-
Permalink:
Theatre-Tools/PyOSC@33686534012beada9ce8808571a62fd10b0cdcf5 -
Branch / Tag:
refs/tags/2.0.0b9 - Owner: https://github.com/Theatre-Tools
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@33686534012beada9ce8808571a62fd10b0cdcf5 -
Trigger Event:
push
-
Statement type: