Skip to main content

Python API clients for the HIRMEOS project.

Project description

HIRMEOS Clients

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 setup.py 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.3] - 2021-10-20

Changed:

  • Update requirements to be more flexible

[0.1.2] - 2021-10-15

Added:

  • Allow canonical URIs to be set when creating works in the translator service
  • Main identifier will be registered as a canonical identifier when creating a work

[0.1.1] - 2021-10-15

Added:

  • Add method to delete URIs from a work
  • Add method to update/set the canonical flag for a URI

[0.1.0] - 2021-02-02

Added:

  • 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

Changed:

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

[0.0.19] - 2021-01-26

Changed:

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

[0.0.18] - 2020-07-30

Changed:

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

[0.0.17] - 2020-07-29

Changed:

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

[0.0.16] - 2020-07-29

Changed:

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

[0.0.15] - 2020-07-29

Changed:

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

[0.0.14] - 2020-07-29

Changed:

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

[0.0.13] - 2020-07-27

Added

  • 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

Added

  • New client: AltmetricsClient

[0.0.11] - 2020-04-15

Changed

  • 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

Changed

  • 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

Added

  • 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

Changed

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

[0.0.7] - 2020-03-06

Added

  • Release notes

Changed

  • 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.

Source Distribution

hirmeos-clients-0.1.3.tar.gz (9.4 kB view details)

Uploaded Source

Built Distributions

hirmeos_clients-0.1.3-py3.7.egg (19.9 kB view details)

Uploaded Source

hirmeos_clients-0.1.3-py3-none-any.whl (10.4 kB view details)

Uploaded Python 3

File details

Details for the file hirmeos-clients-0.1.3.tar.gz.

File metadata

  • Download URL: hirmeos-clients-0.1.3.tar.gz
  • Upload date:
  • Size: 9.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4

File hashes

Hashes for hirmeos-clients-0.1.3.tar.gz
Algorithm Hash digest
SHA256 eadaec8fcfd225b62e11c881af2048cf820a42fa4c4e8e66c283b921c2cb300d
MD5 99b9f47c6379b926b44cd0d25873bc7e
BLAKE2b-256 36c9ed044e9256599dcddafa229587ea73f0c6e8a3c6919bf9aecafad14cde2b

See more details on using hashes here.

Provenance

File details

Details for the file hirmeos_clients-0.1.3-py3.7.egg.

File metadata

  • Download URL: hirmeos_clients-0.1.3-py3.7.egg
  • Upload date:
  • Size: 19.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4

File hashes

Hashes for hirmeos_clients-0.1.3-py3.7.egg
Algorithm Hash digest
SHA256 47b5b4d73148d4342a1e58644460ffa90c49abceceb107d26f42a245cd198014
MD5 3dc80ae478564f85ab342c1cc288470c
BLAKE2b-256 59cdb7ec0d5d2ef73abdb342d94080263b1e2895581f3467989d517189bd9980

See more details on using hashes here.

Provenance

File details

Details for the file hirmeos_clients-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: hirmeos_clients-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 10.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4

File hashes

Hashes for hirmeos_clients-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 a697215a9cd902a31db70d8418091d0ac233546dc4367722b822ac53555d7d43
MD5 6afda5971f2fa1c398421bfd027cd945
BLAKE2b-256 8b290d99574d1e69c73e72ce42d6038c911902d4bb4917fe579b44a93487ab8d

See more details on using hashes here.

Provenance

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