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

Uploaded Source

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