Skip to main content

pyjapi - Python JAPI Client

Using Hatch Code style: black Ruff

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
    

Metadata

Release files for pyjapi 0.7.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pyjapi 0.7.0
File Size Uploaded
pyjapi-0.7.0.tar.gz 93.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pyjapi 0.7.0
File Interpreter ABI Platform
pyjapi-0.7.0-py3-none-any.whl Python 3 none any Details

Total release size: 103.6 kB

Release files / pyjapi-0.7.0.tar.gz

Download URL pyjapi-0.7.0.tar.gz
Size 93.1 kB
Tags Source
SHA-256 checksum
How to use checksums
3f3641cefce6ee71ac96427d1d785ba1b587bf5dd8560531664d6c1e75ffe916
BLAKE2b-256 checksum
How to use checksums
b33ec621c433e910b42b4ceefbc0c6d5a00962a46f3cb88b7da62f9991d37494
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-httpx/0.26.0

Release files / pyjapi-0.7.0-py3-none-any.whl

Download URL pyjapi-0.7.0-py3-none-any.whl
Size 10.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3fee67cf9be722b11e328478fa3753f371a50f16c623a02ffe0d12045390308f
BLAKE2b-256 checksum
How to use checksums
417dd2365449df14277d237ce5026374b292698a31e239a7193cab3c90c63e95
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-httpx/0.26.0

Release history Release notifications | RSS feed

This release

0.7.0 This release

2 release files

0.6.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page