%global _empty_manifest_terminate_build 0 Name: python-toucan-data-sdk Version: 7.6.0 Release: 1 Summary: Toucan data SDK License: BSD-3-Clause URL: https://github.com/ToucanToco/toucan-data-sdk Source0: https://mirrors.aliyun.com/pypi/web/packages/3f/78/5e54b939d2a4f266a740987c9701779d31ef7815ded5d0ecbd44fe95fd5a/toucan_data_sdk-7.6.0.tar.gz BuildArch: noarch Requires: python3-engarde Requires: python3-joblib Requires: python3-pandas Requires: python3-slugify Requires: python3-tabulate Requires: python3-toucan-client %description [![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 = ('', 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 You need to install [poetry](https://python-poetry.org/) either globally or in a virtualenv. Then run `make install` %package -n python3-toucan-data-sdk Summary: Toucan data SDK Provides: python-toucan-data-sdk BuildRequires: python3-devel BuildRequires: python3-setuptools BuildRequires: python3-pip %description -n python3-toucan-data-sdk [![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 = ('', 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 You need to install [poetry](https://python-poetry.org/) either globally or in a virtualenv. Then run `make install` %package help Summary: Development documents and examples for toucan-data-sdk Provides: python3-toucan-data-sdk-doc %description help [![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 = ('', 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 You need to install [poetry](https://python-poetry.org/) either globally or in a virtualenv. Then run `make install` %prep %autosetup -n toucan_data_sdk-7.6.0 %build %py3_build %install %py3_install install -d -m755 %{buildroot}/%{_pkgdocdir} if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi pushd %{buildroot} if [ -d usr/lib ]; then find usr/lib -type f -printf "\"/%h/%f\"\n" >> filelist.lst fi if [ -d usr/lib64 ]; then find usr/lib64 -type f -printf "\"/%h/%f\"\n" >> filelist.lst fi if [ -d usr/bin ]; then find usr/bin -type f -printf "\"/%h/%f\"\n" >> filelist.lst fi if [ -d usr/sbin ]; then find usr/sbin -type f -printf "\"/%h/%f\"\n" >> filelist.lst fi touch doclist.lst if [ -d usr/share/man ]; then find usr/share/man -type f -printf "\"/%h/%f.gz\"\n" >> doclist.lst fi popd mv %{buildroot}/filelist.lst . mv %{buildroot}/doclist.lst . %files -n python3-toucan-data-sdk -f filelist.lst %dir %{python3_sitelib}/* %files help -f doclist.lst %{_docdir}/* %changelog * Fri Jun 09 2023 Python_Bot - 7.6.0-1 - Package Spec generated