Skip to main content

Python API clients for the OPERAS metrics

Project description

HIRMEOS Clients

Python clients for interacting with APIs that were developed as part of the OPERAS Metrics services - originally developed during the HIRMEOS project.

Release Notes:

[0.1.8] - 2023-11-16

Added:
  • Updated tests

Changed:
  • AltmetricsClient.get_token function split between two methods, get_token and set_token

  • Added token_has_expired optional parameter to AltmetricsClient.set_header()

[0.1.7] - 2023-11-15

Added:
  • Updated tests

  • added an authenticated post request method to the Altmetrics client

[0.1.6] - 2022-11-04

Added:
  • Update tests (minor)

Changed:
  • Update PyJWT requirement, as lower versions had security vulnerabilities.

[0.1.5] - 2022-05-20

Added:
  • Add tag uri schemes to variables list.

[0.1.4] - 2021-12-02

Changed:
  • Update processing canonical identifiers in the translator client logic to allow multiple works to be returned when uri_strict=True is used.

[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.8.tar.gz (12.2 kB view details)

Uploaded Source

Built Distribution

hirmeos_clients-0.1.8-py3-none-any.whl (11.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: hirmeos-clients-0.1.8.tar.gz
  • Upload date:
  • Size: 12.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.1 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2

File hashes

Hashes for hirmeos-clients-0.1.8.tar.gz
Algorithm Hash digest
SHA256 539ad1d5524eb229f20a58b29533b00fa4643677e95e013ed9648c278d0606e2
MD5 51f7aafc45ec09ae231b7e98e44cb37b
BLAKE2b-256 ac76b6a3f10118139ec7e582bdf2d0ab57c30e0449f8e568cd1e7eb94be49988

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: hirmeos_clients-0.1.8-py3-none-any.whl
  • Upload date:
  • Size: 11.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.1 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2

File hashes

Hashes for hirmeos_clients-0.1.8-py3-none-any.whl
Algorithm Hash digest
SHA256 3a1ff80dc1eb55fdf408b449383d12b1b1ba71e1010b80119e018843975242e7
MD5 d3b93151f03cc7e7450936a90d7fc7e0
BLAKE2b-256 00796d0ba3f167cae7c1f057b4814a5ef84f4a4ad247a1227b40c48eada14f7b

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