Toucan Data SDK
Develop your Toucan Toco data pipeline from the confort of your favorite environment.
Installation
For usage: pip install toucan_data_sdk
For dev:
Install the module in editable mode and with test requirements: pip install -e '.[test]'
Usage
Get data sources
import getpass
from toucan_data_sdk import ToucanDataSdk
instance_url = 'https://api-demo.toucantoco.com'
auth = ('<username>', getpass.getpass())
sdk = ToucanDataSdk(instance_url, small_app='demo', auth=auth, enable_cache=True)
dfs = sdk.get_dfs()
API
ToucanDataSdk class
ToucanDataSdk.sdk
- property,
- uses the client to send a request to the back end to send the data sources as DataFrames,
- uses an internal cache.
ToucanDataSdk.invalidate_cache()
Invalidates the cache. Next time you will access to the sdk property, a request will be sent to the client.
Utils
cf. https://docs.toucantoco.com/concepteur/data-sources/00-generalities.html#utility-functions
For example:
from toucan_data_sdk.utils import add_missing_row
Development
Makefile
Use the makefile to test, build...
$ make test
Development
You need to install poetry either globally or in a virtualenv.
Then run make install
Metadata
Release files for toucan-data-sdk 7.6.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| toucan_data_sdk-7.6.0.tar.gz | 45.0 kB | Without provenance | Details for toucan_data_sdk-7.6.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| toucan_data_sdk-7.6.0-py3-none-any.whl | Python 3 | none | any | Details for toucan_data_sdk-7.6.0-py3-none-any.whl |
Total release size: 107.0 kB
Release files / toucan_data_sdk-7.6.0.tar.gz
| Download URL | toucan_data_sdk-7.6.0.tar.gz |
|---|---|
| Size | 45.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
07e4bcd2fbbb00988528685d83f427907262e0cf6153296ae48a267b9d3c3597
|
|
BLAKE2b-256 checksum How to use checksums |
3f785e54b939d2a4f266a740987c9701779d31ef7815ded5d0ecbd44fe95fd5a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.4.2 CPython/3.11.3 Linux/5.15.0-1035-azure
|
Release files / toucan_data_sdk-7.6.0-py3-none-any.whl
| Download URL | toucan_data_sdk-7.6.0-py3-none-any.whl |
|---|---|
| Size | 62.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8594eea58f0ffdd4a7f5aeb5d01dcb884378264c564911b4076038e27323c88a
|
|
BLAKE2b-256 checksum How to use checksums |
5ab6d48ffb33aa7f8970cf5c408cdc2345d21c6c206683300e4371947605a833
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.4.2 CPython/3.11.3 Linux/5.15.0-1035-azure
|
Security for toucan-data-sdk 7.6.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.