[![Pypi-v](https://img.shields.io/pypi/v/toucan-data-sdk.svg)](https://pypi.python.org/pypi/toucan-data-sdk)
[![Pypi-pyversions](https://img.shields.io/pypi/pyversions/toucan-data-sdk.svg)](https://pypi.python.org/pypi/toucan-data-sdk)
[![Pypi-l](https://img.shields.io/pypi/l/toucan-data-sdk.svg)](https://pypi.python.org/pypi/toucan-data-sdk)
[![Pypi-wheel](https://img.shields.io/pypi/wheel/toucan-data-sdk.svg)](https://pypi.python.org/pypi/toucan-data-sdk)
[![GitHub Actions](https://github.com/ToucanToco/toucan-data-sdk/workflows/CI/badge.svg)](https://github.com/ToucanToco/toucan-data-sdk/actions?query=workflow%3ACI)
[![codecov](https://codecov.io/gh/ToucanToco/toucan-data-sdk/branch/master/graph/badge.svg?token=GtzvxpgQM9)](https://codecov.io/gh/ToucanToco/toucan-data-sdk)
# 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
```python
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:
```python
from toucan_data_sdk.utils import add_missing_row
```
# Development
## Makefile
Use the makefile to `test`, `build`...
```shell
$ 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 .`
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
共53个文件
py:44个
txt:4个
pkg-info:2个
资源分类:Python库 所属语言:Python 资源全名:toucan_data_sdk-7.4.2.tar.gz 资源来源:官方 安装方法:https://lanzao.blog.csdn.net/article/details/101784059
资源推荐
资源详情
资源评论
收起资源包目录
toucan_data_sdk-7.4.2.tar.gz (53个子文件)
toucan_data_sdk-7.4.2
PKG-INFO 479B
toucan_data_sdk.egg-info
PKG-INFO 479B
requires.txt 142B
SOURCES.txt 2KB
top_level.txt 16B
dependency_links.txt 1B
pyproject.toml 90B
toucan_data_sdk
fakir
fake_data_generator.py 1KB
predict_number_of_row_from_conf.py 547B
__init__.py 145B
sdk.py 7KB
__init__.py 45B
utils
generic
date_requester.py 4KB
add_missing_row.py 4KB
compute_ffill_by_group.py 2KB
clean.py 1KB
compute_cumsum.py 2KB
__init__.py 613B
roll_up.py 3KB
compute_evolution.py 10KB
two_values_melt.py 3KB
combine_columns_aggregation.py 1KB
traceback.py 2KB
decorators.py 12KB
helpers.py 5KB
__init__.py 0B
postprocess
rank.py 3KB
json_to_table.py 3KB
sort.py 2KB
categories_from_dates.py 4KB
cumsum.py 704B
text.py 20KB
filter_by_date.py 8KB
fillna.py 2KB
argmax.py 2KB
__init__.py 927B
filter.py 2KB
waterfall.py 9KB
math.py 8KB
rename.py 2KB
top.py 5KB
add_aggregation_columns.py 3KB
linear_regression.py 3KB
replace.py 1KB
converter.py 4KB
if_else.py 5KB
melt.py 2KB
pivot.py 4KB
percentage.py 2KB
groupby.py 2KB
setup.cfg 1KB
setup.py 38B
README.md 2KB
共 53 条
- 1
资源评论
挣扎的蓝藻
- 粉丝: 13w+
- 资源: 15万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功