diff options
author | CoprDistGit <infra@openeuler.org> | 2023-05-17 03:03:44 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-05-17 03:03:44 +0000 |
commit | 4f0a6e0f89e03d926fc2186ef41bcc70170b811e (patch) | |
tree | 4f66766cea0a1694a8bf0613388c73047fe2b8d8 | |
parent | a827d52fa01358d1125f2417d66243c843a55046 (diff) |
automatic import of python-kustopy
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-kustopy.spec | 109 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 111 insertions, 0 deletions
@@ -0,0 +1 @@ +/kustopy-1.2.8.tar.gz diff --git a/python-kustopy.spec b/python-kustopy.spec new file mode 100644 index 0000000..eeb3a9c --- /dev/null +++ b/python-kustopy.spec @@ -0,0 +1,109 @@ +%global _empty_manifest_terminate_build 0 +Name: python-kustopy +Version: 1.2.8 +Release: 1 +Summary: Query and Ingestion Client for Azure using Python +License: MIT +URL: https://github.com/tillfurger/kustopy +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/7d/34/247313f3f18a900d24140e79d78467a174eccac2060906601e329743dda8/kustopy-1.2.8.tar.gz +BuildArch: noarch + +Requires: python3-azure-kusto-data +Requires: python3-azure-kusto-ingest +Requires: python3-pandas +Requires: python3-pyspark + +%description +### Queries +```python +# Get list of all tables available in database +client.get_table_names() +``` +```python +# Get list of all tables available in database +client.get_schema(table_name='SampleTable') +``` +```python +# Write standard kusto queries. To get the response as pandas dataframe set dataframe to True. +client.query(user_input='SampleTable | take 100 | where fruit=="apple"', data_frame=True) + +%package -n python3-kustopy +Summary: Query and Ingestion Client for Azure using Python +Provides: python-kustopy +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-kustopy +### Queries +```python +# Get list of all tables available in database +client.get_table_names() +``` +```python +# Get list of all tables available in database +client.get_schema(table_name='SampleTable') +``` +```python +# Write standard kusto queries. To get the response as pandas dataframe set dataframe to True. +client.query(user_input='SampleTable | take 100 | where fruit=="apple"', data_frame=True) + +%package help +Summary: Development documents and examples for kustopy +Provides: python3-kustopy-doc +%description help +### Queries +```python +# Get list of all tables available in database +client.get_table_names() +``` +```python +# Get list of all tables available in database +client.get_schema(table_name='SampleTable') +``` +```python +# Write standard kusto queries. To get the response as pandas dataframe set dataframe to True. +client.query(user_input='SampleTable | take 100 | where fruit=="apple"', data_frame=True) + +%prep +%autosetup -n kustopy-1.2.8 + +%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-kustopy -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Wed May 17 2023 Python_Bot <Python_Bot@openeuler.org> - 1.2.8-1 +- Package Spec generated @@ -0,0 +1 @@ +b06d8494ff4f44ffe96c4e1218f24ed6 kustopy-1.2.8.tar.gz |