Skip to main content

Small client to connect to the OpenRemote Manager REST API

Project description

OpenRemote Client

A Python client to use the OpenRemote Manager REST API.


PyPI version shields.io PyPI - Downloads GPLv3 license

Getting started

  1. Install package
pip install openremote_client
  1. Then import the package into your project.
from src.openremote_client import OpenRemoteClient
  1. 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
  1. Clone repository
git clone https://github.com/Spider-Frog/openremote_client.git
  1. Install packages
pip install -r requirements.txt

Deploy

Read the documentation on PyPI

Project details


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.4.tar.gz (18.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

openremote_client-0.0.4-py3-none-any.whl (20.7 kB view details)

Uploaded Python 3

File details

Details for the file openremote_client-0.0.4.tar.gz.

File metadata

  • Download URL: openremote_client-0.0.4.tar.gz
  • Upload date:
  • Size: 18.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for openremote_client-0.0.4.tar.gz
Algorithm Hash digest
SHA256 e1ba786c7dbc5a1acc347eaf09faf5a01bdcd8627a5c288864c34efb0675452b
MD5 0b17169abe1a3f415676c3b11298dc0b
BLAKE2b-256 c9ff7749fc220ae68f4d11c098adea4c619ff7fcb8807329bd6283e0804c1e7d

See more details on using hashes here.

File details

Details for the file openremote_client-0.0.4-py3-none-any.whl.

File metadata

File hashes

Hashes for openremote_client-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 630822f87217dec2b4c59777c333ceb323f7fbb386ceacef4c6efd021c4085be
MD5 8005a8122c798ddaa74b65665fefdedd
BLAKE2b-256 8a55324a1fd8f20574c3ca5ac4badd284215edd3fdea69b1174ecce129b05857

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page