JAPI client
Project description
pyjapi - Python JAPI Client
Getting Started
pip install pyjapi
Alternatively, you might want to clone the project and go from there:
git clone git@git01.iis.fhg.de:ks-ip-lib/software/pyjapi.git
pip install -e pyjapi/.
Usage
japi [--host HOSTNAME] [--port N] [--format FORMAT_NAME] [-v] (list|listen|request)
Examples
Issue individual JAPI commands
-
japi request <JAPI_COMMAND>
$ japi request get_temperature > get_temperature() #2a96d8 < get_temperature() #2a96d8 --> temperature=17.0
-
japi request <COMMAND> [PARAMETERS]
$ japi request get_temperature unit=kelvin > get_temperature(unit="kelvin") #02c6fa < get_temperature(unit="kelvin") #02c6fa --> temperature=290.0
List available push services
-
japi list
$ japi list > japi_pushsrv_list() #4fae82 < japi_pushsrv_list() #4fae82 --> services=["push_temperature"]
Listen to JAPI push services
-
japi listen <PUSH_SERVICE_NAME> <N_PACKAGES>
$ japi listen push_temperature 3 > japi_pushsrv_subscribe(service="push_temperature") #b71d22 < push_temperature() --> temperature=24.833269096274833 < push_temperature() --> temperature=25.414709848078964 < push_temperature() --> temperature=25.912073600614352
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
pyjapi-0.7.0.tar.gz
(93.1 kB
view details)
Built Distribution
pyjapi-0.7.0-py3-none-any.whl
(10.5 kB
view details)
File details
Details for the file pyjapi-0.7.0.tar.gz
.
File metadata
- Download URL: pyjapi-0.7.0.tar.gz
- Upload date:
- Size: 93.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-httpx/0.26.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3f3641cefce6ee71ac96427d1d785ba1b587bf5dd8560531664d6c1e75ffe916 |
|
MD5 | a786bf5f3269799303409b7a0dd11795 |
|
BLAKE2b-256 | b33ec621c433e910b42b4ceefbc0c6d5a00962a46f3cb88b7da62f9991d37494 |
File details
Details for the file pyjapi-0.7.0-py3-none-any.whl
.
File metadata
- Download URL: pyjapi-0.7.0-py3-none-any.whl
- Upload date:
- Size: 10.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-httpx/0.26.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3fee67cf9be722b11e328478fa3753f371a50f16c623a02ffe0d12045390308f |
|
MD5 | 15df50ec9b9f3c55c2d5fdc65d17d135 |
|
BLAKE2b-256 | 417dd2365449df14277d237ce5026374b292698a31e239a7193cab3c90c63e95 |