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.1.tar.gz
(3.1 kB
view hashes)
Built Distribution
Close
Hashes for toucan_client-1.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0d8047c7c7c627cf4640a5834d6d10cd1bdb5a6a7d8f8e75847ed91a78e0013f |
|
MD5 | 54f9e7199d600650da91fdb29b9b1664 |
|
BLAKE2b-256 | 3c28525c2c29ff996d1e39f08fbc21a7fe44d1791db256f678f2e3aaed4c3a8b |