Skip to content

vdestraitt/toucan-data-sdk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

80 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pypi-v Pypi-pyversions Pypi-l Pypi-wheel CircleCI codecov

Toucan Data SDK

Develop your Toucan Toco data pipeline from the confort of your favorite environment.

Installation

pip install toucan_data_sdk

Usage

Get data sources

import getpass
from toucan_data_sdk import ToucanDataSdk

instance_url = 'https://api-demo.toucantoco.com/demo'
auth = ('<username>', getpass.getpass())

sdk = ToucanDataSdk(instance_url, auth=auth)
dfs = sdk.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

PEP8

New code must be PEP8-valid (with a maximum of 100 chars): tests wont pass if code is not. To see PEP8 errors, run pycodestyle <path_to_file_name> or recursively: pycodestyle -r .

About

Toucan Toco data sdk : develop and run your Toucan data pipeline anywhere

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published