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.2.tar.gz (20.4 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.2-py3-none-any.whl (10.7 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for construct_additional_obelisks-0.2.2.tar.gz
Algorithm Hash digest
SHA256 68407edd7e1ed49b27d8313cf5ec278738bb574ab3388ec6d756908d160a6b15
MD5 7607bdcb4f9bc7e0407bb84544ab525d
BLAKE2b-256 5218e6a2ce9c1f5c01ecb227b7b208194198a19d97d4c6e29b254f8c968b0ab6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for construct_additional_obelisks-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 40b02179909c41c61f0d5c218769484dce2b366b3ad24bd30dc74e2cd4a12a3a
MD5 5bb90677021af16f5fa5dc877c8c107f
BLAKE2b-256 f1224d07e98305c93d561edb0a3ec7da7bac9d081dca547fad1fd83da5ba4f24

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