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 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
})

The client handles authentication automatically.

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-1.0.2.tar.gz (41.0 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-1.0.2-py3-none-any.whl (95.3 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for openremote_client-1.0.2.tar.gz
Algorithm Hash digest
SHA256 c85308eb02d9e2d0841de218c3ad5269655c503e1af028223b039e2f83bb727f
MD5 30b3766449b73794259f759b40b54f56
BLAKE2b-256 e23e25e73306efcd50711f685a9b0219775d82264f44cfdd048d2518ea3c6488

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for openremote_client-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 dce5d059075e854169e346deb036b7771cb72e1dc23b152598cc3c577d0ccf73
MD5 bb0b6bea88badaf9437a06e3eb56b6d3
BLAKE2b-256 8ef6e3ecaf811ee12e4e4d9f90eeee8c849bc4f96bdebe9518e4d7976ea9ba78

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