Skip to main content

Python API clients for the HIRMEOS project.

Project description


Python clients for interacting with APIs that were developed as part of the HIRMEOS project.

Once this has been shown to be working properly, and able to integrate with the HIRMEOS drivers it can be moved to a HIRMEOS/OPERAS PyPI Repo.

Until CI is ready

.. code-block:: bash

$ python3 sdist bdist_wheel
$ twine upload dist/*

Note: We are still in the early stages of this project so there will be many breaking changes as we go along.

Release Notes:

[0.1.0] - 2021-02-02


  • Unit Tests for Translator Client
  • Translator Client attributes: remove_uri_trailing_slash & use_lower_case_uris. These automatically format URIs for consistency.

[0.0.20] - 2021-01-26


  • TokenClient Bug Fix: Check encoded token type before attempting to decode.

[0.0.19] - 2021-01-26


  • TokenClient Code Change: Separate token encode and decode steps (for debugging).

[0.0.18] - 2020-07-30


  • TokenClient Bug Fix: Correctly update request header after refreshing token.

[0.0.17] - 2020-07-29


  • TokenClient: update request header after refreshing token, and before retrying request.

[0.0.16] - 2020-07-29


  • TokenClient: When creating token, convert from bytes to a string.

[0.0.15] - 2020-07-29


  • TranslatorClient.work_exists: Report all content from the translation API response when this method fails (investigation).

[0.0.14] - 2020-07-29


  • TranslatorClient.work_exists: Report 'data' content from the translation API when this method fails (investigation).

[0.0.13] - 2020-07-27


  • Token creation option: The TokenClient can now also be used to create a token, based on the logic used by the Tokens API.

[0.0.12] - 2020-05-20


  • New client: AltmetricsClient

[0.0.11] - 2020-04-15


  • TranslatorClient.prepare_uri: Now returns the URI as a string in the format expected by TranslatorClient.get_work_uris.

[0.0.10] - 2020-04-15


  • TranslatorClient.post_new_work: 'uris' parameter now assumes the same format as the output from TranslatorClient.get_work_uris, which was causing errors. (bug fix)

[0.0.9] - 2020-04-06


  • translator: Reference variables for work types and URI schemes.
  • translator: Check if a work exists.
  • translator: Fetch all URIs associated with a work.
  • translator: Post new work.

[0.0.8] - 2020-03-06


  • Make requirements for flexible to avoid conflicts with other packages.

[0.0.7] - 2020-03-06


  • Release notes


  • Strip trailing slash from TranslatorClient API base.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for hirmeos-clients, version 0.1.0
Filename, size File type Python version Upload date Hashes
Filename, size hirmeos_clients-0.1.0-py3-none-any.whl (9.5 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size hirmeos-clients-0.1.0.tar.gz (7.1 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page