oppoudpsdk
Python SDK for Oppo UDP-20x media devices. The primary goal is to use this to power integrations for Home Assistant.
Installation
pip install oppoudpsdk
Usage
Simple example
async def main():
logging.basicConfig(level=logging.DEBUG, format='%(asctime)-15s %(levelname)-8s %(message)s')
loop = asyncio.get_event_loop()
client = OppoClient(HOST_NAME, 23, loop)
client.add_event_handler(EVENT_DEVICE_STATE_UPDATED, on_device_state_updated)
await asyncio.ensure_future(client.async_run_client(), loop=loop)
if __name__ == "__main__":
asyncio.run(main())
Please see simple_example.py for a full working example of usage of this library.
Objects
OppoClient(host_name, port_number = 23, mac_address = None, event_loop = None)
The main client class that initiates and maintains a connection with the Oppo device. Handles the raw communications between the client and the device.
OppoDevice(client, mac_addr)
A class that describes a media device. This is abstracted from the client so that the media functionality is isolated from the communications infrastructure.
API Overview
Please refer to this document for the Oppo IP control API: http://download.oppodigital.com/UDP203/OPPO_UDP-20X_RS-232_and_IP_Control_Protocol.pdf
Metadata
Release files for oppoudpsdk 0.1.19
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| oppoudpsdk-0.1.19.tar.gz | 21.0 kB | Without provenance | Details for oppoudpsdk-0.1.19.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| oppoudpsdk-0.1.19-py3-none-any.whl | Python 3 | none | any | Details for oppoudpsdk-0.1.19-py3-none-any.whl |
Total release size: 46.1 kB
Release files / oppoudpsdk-0.1.19.tar.gz
| Download URL | oppoudpsdk-0.1.19.tar.gz |
|---|---|
| Size | 21.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6c6934b3990a962ba93196cf0fb61f20344ed05d6a983b6d7d5d4ab5132e48de
|
|
BLAKE2b-256 checksum How to use checksums |
87a087398be57a24644c7843ecafca9d5d11887d4e80874e20727b86a673eb7b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.13.1
|
Release files / oppoudpsdk-0.1.19-py3-none-any.whl
| Download URL | oppoudpsdk-0.1.19-py3-none-any.whl |
|---|---|
| Size | 25.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0370bb26a906fb1e5476a0da6f34c98b7062b62bd6479811c28eaca1b7de0b07
|
|
BLAKE2b-256 checksum How to use checksums |
7921b114a514841f9af29ebdfdea17b0a7e5dc2b392a9d61321b3d90f9a8b65a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.13.1
|
Security for oppoudpsdk 0.1.19
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.