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 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
})
The client handles authentication automatically.
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-1.1.tar.gz
(40.9 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-1.1.tar.gz.
File metadata
- Download URL: openremote_client-1.1.tar.gz
- Upload date:
- Size: 40.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
172f9e64ec604511fd2c23efb98c5e66d24b81ab7a15500a1d3288be9af4f62b
|
|
| MD5 |
0614b6ebbc9288c0b6c0e872e62e7d11
|
|
| BLAKE2b-256 |
76a6e35a88090387f89b3791610dd8be7de3ba79e8ea4bb5904bd02ebee2dcf0
|
File details
Details for the file openremote_client-1.1-py3-none-any.whl.
File metadata
- Download URL: openremote_client-1.1-py3-none-any.whl
- Upload date:
- Size: 95.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
564148d01fb62579d99efce39c6324303135b8bd45115f50371a7a7422d9caa7
|
|
| MD5 |
8c602c4952f6c64297aa2a5eb681d205
|
|
| BLAKE2b-256 |
93a36bb180a3f72053f88787bf63823b4493e35de99bff8fc6b4215e942228fe
|