Python client models and helpers for the OpenCom RPC server.
Project description
opencom-rpc
opencom-rpc is a small Python client for the OpenCom RPC server.
It provides:
OpenComRPCClientfor talking to the local OpenCom RPC endpointsActivityandActivityButtonmodels for building payloads
Installation
python -m pip install opencom-rpc
Usage
from opencom_rpc import Activity, OpenComRPCClient
activity = Activity(
name="Listening to music",
details="Example Track",
state="Example Artist",
)
with OpenComRPCClient() as client:
client.set_activity(activity)
Local development
This repository also includes a top-level main.py script used for local media bridge experiments. It is not part of the package itself.
For local development:
python -m pip install -e .
Build
Install the packaging tools if needed:
python -m pip install build twine
Build source and wheel distributions with:
python -m build
This creates files in dist/.
Upload
Upload to PyPI with Twine:
python -m twine upload dist/*
For TestPyPI:
python -m twine upload --repository testpypi dist/*
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 opencom_rpc-0.1.0.tar.gz.
File metadata
- Download URL: opencom_rpc-0.1.0.tar.gz
- Upload date:
- Size: 3.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4069f4ea0678c548b7d1fdc262a04701e7d88e3542bdb0d53b94eba3c561f111
|
|
| MD5 |
e98c8245f1403f52add321da20440414
|
|
| BLAKE2b-256 |
6e9176d2949f9c0c1b53e8c576382e5f1d05324b5af2845bcb867df3390091e7
|
File details
Details for the file opencom_rpc-0.1.0-py3-none-any.whl.
File metadata
- Download URL: opencom_rpc-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
534fdb2fb64d4d30ef4b36391883b24aa273bf83c48d8f3ad9602b7c65cda678
|
|
| MD5 |
592c1695de6c0bf66d844daf1bf6f0e7
|
|
| BLAKE2b-256 |
bc6346e02a22522aea5f1661c4f04f9f9cf5453d7a736e5c239200e9e3bc95bd
|