diff options
author | CoprDistGit <infra@openeuler.org> | 2023-05-31 05:05:48 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-05-31 05:05:48 +0000 |
commit | 49a1a3b4d8b2283a263f5e3d879d1d3db5a947e0 (patch) | |
tree | 36d5f6d8ace9c10378191986f2c4bb6333cbdf06 | |
parent | df542a2c9a29c4189edd054bb2a698e0b314bf55 (diff) |
automatic import of python-toucan-data-sdk
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-toucan-data-sdk.spec | 297 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 299 insertions, 0 deletions
@@ -0,0 +1 @@ +/toucan_data_sdk-7.6.0.tar.gz diff --git a/python-toucan-data-sdk.spec b/python-toucan-data-sdk.spec new file mode 100644 index 0000000..a2095d4 --- /dev/null +++ b/python-toucan-data-sdk.spec @@ -0,0 +1,297 @@ +%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.nju.edu.cn/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 +[](https://pypi.python.org/pypi/toucan-data-sdk) +[](https://pypi.python.org/pypi/toucan-data-sdk) +[](https://pypi.python.org/pypi/toucan-data-sdk) +[](https://pypi.python.org/pypi/toucan-data-sdk) +[](https://github.com/ToucanToco/toucan-data-sdk/actions?query=workflow%3ACI) +[](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 + +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 +[](https://pypi.python.org/pypi/toucan-data-sdk) +[](https://pypi.python.org/pypi/toucan-data-sdk) +[](https://pypi.python.org/pypi/toucan-data-sdk) +[](https://pypi.python.org/pypi/toucan-data-sdk) +[](https://github.com/ToucanToco/toucan-data-sdk/actions?query=workflow%3ACI) +[](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 + +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 +[](https://pypi.python.org/pypi/toucan-data-sdk) +[](https://pypi.python.org/pypi/toucan-data-sdk) +[](https://pypi.python.org/pypi/toucan-data-sdk) +[](https://pypi.python.org/pypi/toucan-data-sdk) +[](https://github.com/ToucanToco/toucan-data-sdk/actions?query=workflow%3ACI) +[](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 + +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 +* Wed May 31 2023 Python_Bot <Python_Bot@openeuler.org> - 7.6.0-1 +- Package Spec generated @@ -0,0 +1 @@ +f0fc1132927e2d0bc8efa37c2c3d4af0 toucan_data_sdk-7.6.0.tar.gz |