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 details)
Built Distribution
File details
Details for the file toucan_client-1.1.2.tar.gz
.
File metadata
- Download URL: toucan_client-1.1.2.tar.gz
- Upload date:
- Size: 3.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.13 CPython/3.10.4 Linux/5.13.0-1021-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e604dc04140b84cf9b3ed879b19580b5b6342c6eaffbe5e49df2b8e113edb6c0 |
|
MD5 | 308969dc571b33a03c6b81457f4908f5 |
|
BLAKE2b-256 | 159d7555bbf6b291d52484cd8b17077a1fd4705c307158b932006be115b59fb4 |
File details
Details for the file toucan_client-1.1.2-py3-none-any.whl
.
File metadata
- Download URL: toucan_client-1.1.2-py3-none-any.whl
- Upload date:
- Size: 2.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.13 CPython/3.10.4 Linux/5.13.0-1021-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 35edf56289e4e74ef5ccfedc0a1f51b6cb51678cbd58adcf5150f58d12312fd5 |
|
MD5 | deb986eb905f3181eed1301468a7a0e0 |
|
BLAKE2b-256 | ea03b327d21fbcb00fa0aeb52367b769370ddd230969eb6d6613932c7863758b |