Skip to main content

The one Obelisk client to rule them all

This project has been archived.

The maintainers of this project have marked this project as archived. No new releases are expected.

Project description

Construct Additional Obelisks

After years of copy-pasting and modifying Obelisk client implementations all over, we've had enough of hearing "construct additional obelisks". Thus, we have decided to build the one client to rule them all.

Usage

Take your pick of asynchronous or sync, import the relevant Producer or Consumer and go crazy. There is explicitly minimal documentation on actual filter values, read the Obelisk docs for that.

Please never copy the repo into your own project, rather use pip install construct-addditional-obelisks.

Retry strategies

Construct Additional Obelisks provides first class support for retry behaviours. These are defined in strategies/retry.py, we provide NoRetryStrategy, ImmediateRetryStrategy, and ExponentialBackoffRetryStrategy. These do exactly what it says on the tin, when provided in the constructor of your producer, consumer or client, they will cause the client to retry requests according to the strategy whenever the response status is not in the 2XX range.

The default strategy is no retry, we do recommend setting at least some form of retry as the token validity behaviour sometimes encounters edge cases.

Async and Sync support

The library has an async and blocking edition. The async edition is contained in the module asynchronous due to async being a reserved keyword and invalid package name, synchronous can be found in sync. The sync edition is simply a wrapper around asynchronous, maintaining an own event loop.

HFS and Classic support

All constructors take an optional kind argument, set this to the appropriate variety for you.

There is no special handling for HFS userId / patientId fields as those are never directly touched by the library. The only exception is that Datapoint has explicit support for userId and allows extra fields to provide naive support for other field names.

Credits

Base implementation originally by Pieter Moens Pieter.Moens@ugent.be, modified by Kyana Bosschaerts Kyana.Bosschaerts@ugent.be and finally consolidated by Stef Pletinck Stef.Pletinck@ugent.be.

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

construct_additional_obelisks-0.2.1.tar.gz (20.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

construct_additional_obelisks-0.2.1-py3-none-any.whl (10.6 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for construct_additional_obelisks-0.2.1.tar.gz
Algorithm Hash digest
SHA256 9b6a308e436b37b9cd4ed214f44cbe9a83a9434cb78613959fce7f48ee63b955
MD5 f1373b39984e0081c60191e042c5d852
BLAKE2b-256 2de365b3ab6ebc505fc53652582ee40683b33029aa8311f8ea69d13781edfa9a

See more details on using hashes here.

File details

Details for the file construct_additional_obelisks-0.2.1-py3-none-any.whl.

File metadata

File hashes

Hashes for construct_additional_obelisks-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b4d578da507fbdf01c9cb622cc705b7d57826940efb22d2590333f107229313a
MD5 7b0be151aab6d1db6ee4474091ab07f6
BLAKE2b-256 c20e0f5d6effac7337cf7779a1d45842a6366e016cd9a26606d4270895cace6f

See more details on using hashes here.

Supported by

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