summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-05-31 05:05:48 +0000
committerCoprDistGit <infra@openeuler.org>2023-05-31 05:05:48 +0000
commit49a1a3b4d8b2283a263f5e3d879d1d3db5a947e0 (patch)
tree36d5f6d8ace9c10378191986f2c4bb6333cbdf06
parentdf542a2c9a29c4189edd054bb2a698e0b314bf55 (diff)
automatic import of python-toucan-data-sdk
-rw-r--r--.gitignore1
-rw-r--r--python-toucan-data-sdk.spec297
-rw-r--r--sources1
3 files changed, 299 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..84d54ce 100644
--- a/.gitignore
+++ b/.gitignore
@@ -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
+[![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
+
+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 = ('<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
+[![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
+
+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
diff --git a/sources b/sources
new file mode 100644
index 0000000..357cc1e
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+f0fc1132927e2d0bc8efa37c2c3d4af0 toucan_data_sdk-7.6.0.tar.gz