Small client to connect to the OpenRemote Manager REST API
Project description
OpenRemote Client
A Python client to use the OpenRemote Manager REST API.
Getting started
- Install package
pip install openremote_client
- Then import the package into your project.
from src.openremote_client import OpenRemoteClient
- Now initialize the OpenRemote client with some config.
or_client = OpenRemoteClient(
openremote_host='<openremote_manager_url>',
client_id='<openremote_client_id>',
client_secret='<openremote_client_secret>'
)
Finally you can use the client to call the OpenRemote Manager REST API
# Get Asset by id
asset = await or_client.asset.get_by_id('<asset-id>')
# Query mulitple assets
asset = await or_client.asset.query({
"limit": 5
})
Authentication is handled automatically by the client.
Development guide
Installation
Prerequisites
- Python 3.10+ installed
- Clone repository
git clone https://github.com/Spider-Frog/openremote_client.git
- Install packages
pip install -r requirements.txt
Deploy
Read the documentation on PyPI
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
openremote_client-0.0.3.tar.gz
(18.4 kB
view details)
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 openremote_client-0.0.3.tar.gz.
File metadata
- Download URL: openremote_client-0.0.3.tar.gz
- Upload date:
- Size: 18.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9459e9d466b5cad0bb7fb2dfb59c7e3ef5c0a9f9e5fb2b302ce281a3e8169439
|
|
| MD5 |
8bc08080e7124ec387718e281c476d63
|
|
| BLAKE2b-256 |
9f36c066a8d7faa1e81e54a7cc91d9ccbfb5beeb5210bb60dd1804e98285005c
|
File details
Details for the file openremote_client-0.0.3-py3-none-any.whl.
File metadata
- Download URL: openremote_client-0.0.3-py3-none-any.whl
- Upload date:
- Size: 20.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6533d50f994492dcbc404cd97d2a6c64b90eec58711c573f0e7e3b4edb1d3eb7
|
|
| MD5 |
80a68a42faf543a451d6247fe1e0d143
|
|
| BLAKE2b-256 |
939e35a0c8bd2d7e6684ff6ba9505d80cecef09166cb05cd5c5a5a8ba49fc10b
|