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.3.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.3-py3-none-any.whl (10.7 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for construct_additional_obelisks-0.2.3.tar.gz
Algorithm Hash digest
SHA256 53bb8804ad975649c866f35f66bee7acedf33edb1061d6e22325f885ec8bca9b
MD5 9f6f87152de9ca622dec6de5fdf1efa0
BLAKE2b-256 cfaffff2a738ea54bcaca360944374852f0948dedc47da5dc087b3b18ca1a441

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for construct_additional_obelisks-0.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 4e6cd6b4b941f786cd1999b6c2113b2a1a7fcc8d27958b111b06fe1817bee40d
MD5 7fb3e41fafe33812a1cdda3abb4fa3db
BLAKE2b-256 fc4ea5d7e5200e238e9923886a3ec23005a03de824b7b647af2eac9cded5124f

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