Skip to main content

A client for katportal.

Project description

Readme

katportalclient

A client for simple access to katportal, via websocket and HTTP connections. The HTTP methods allow once-off requests, like the current list of schedule blocks.
For continuous updates, use the Pub/Sub methods, which work over a websocket.

Dependencies

Details can be found in setup.py but basically it is only:

  • katversion
  • tornado is used as the web framework and for its asynchronous functionality.

Note: setup.py depends on katversion, so make sure that is installed before installing the package.

Install

pip install katportalclient

Example usage

See the examples folder for code that demonstrates some usage scenarios.

Changelog

13th Sep 2019 (0.2.1)

  • Fixes a bug where incorrect sensor info is returned from sensor_detail and does not match the documentation.

11th Sep 2019 (0.2.0)

  • changes to internal API
    • Changed SensorSampleValueTs to SensorSampleValueTime
    • timestamp has been changed to sample_time
    • value_timestamp has been changed to value_time
  • Removal of namespaces when retrieving historical data.
  • Changed url endpoint for historical data.
  • Updated katportalclient examples to align with changes.
  • Removed timeout argument from get_sensor_history.py examples.
  • Changes to sensor_detail, sensor_history, sensor_names

30 Aug 2019 (0.1.1)

  • Changed COPYING to LICENSE.
  • Added long_description to setup.py.
  • Updated copyright header.

27 Aug 2019 (0.1.0)

  • Start of CHANGELOG in preparation for 0.1.0 release.

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

katportalclient-0.2.1.tar.gz (31.9 kB view details)

Uploaded Source

File details

Details for the file katportalclient-0.2.1.tar.gz.

File metadata

  • Download URL: katportalclient-0.2.1.tar.gz
  • Upload date:
  • Size: 31.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.7.3

File hashes

Hashes for katportalclient-0.2.1.tar.gz
Algorithm Hash digest
SHA256 a1e6022fd942d13a054fd2a430966d405e6f4ecd6d1588ba6d193e5e656bd460
MD5 f238fd6eca9eefa2e638fc3f4fa8651b
BLAKE2b-256 a3009454d879c47aae3d58445edc11611eba671d5d95b15bdcdce44a3ba6018a

See more details on using hashes here.

Supported by

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