Toucan API client
Project description
Installation
pip install toucan_client
Usage
# Initialize client
auth = ('<username>', '<password>')
client = ToucanClient('https://api.some.project.com/my_small_app', auth=auth)
# Retrieve ETL config
etl_config = client.config.etl.get() # -> GET 'https://api.some.project.com/config/etl'
client.config.etl.get(stage='staging') # -> GET 'https://api.some.project.com/config/etl?stage=staging'
# Operations control, start a preprocess
client.data.preprocess.post(stage='staging', json={'async': True})
# Operations control, release to prod
client.data.release.post(stage='staging')
Development
You need to install poetry either globally or in a virtualenv.
Then run make install
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
toucan_client-1.1.2.tar.gz
(3.1 kB
view hashes)
Built Distribution
Close
Hashes for toucan_client-1.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 35edf56289e4e74ef5ccfedc0a1f51b6cb51678cbd58adcf5150f58d12312fd5 |
|
MD5 | deb986eb905f3181eed1301468a7a0e0 |
|
BLAKE2b-256 | ea03b327d21fbcb00fa0aeb52367b769370ddd230969eb6d6613932c7863758b |