summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-05-05 03:59:12 +0000
committerCoprDistGit <infra@openeuler.org>2023-05-05 03:59:12 +0000
commit32ba51ba012927afea826912b7471ddedd35d32a (patch)
tree6a20f20d4ad6aeacd3b684080e5e337773987e36
parent4bee7c09c6b13a44656d466b55c09cc588b6abd4 (diff)
automatic import of python-redash-toolbeltopeneuler20.03
-rw-r--r--.gitignore1
-rw-r--r--python-redash-toolbelt.spec200
-rw-r--r--sources1
3 files changed, 202 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..a9e43c0 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/redash_toolbelt-0.1.9.tar.gz
diff --git a/python-redash-toolbelt.spec b/python-redash-toolbelt.spec
new file mode 100644
index 0000000..22b86e7
--- /dev/null
+++ b/python-redash-toolbelt.spec
@@ -0,0 +1,200 @@
+%global _empty_manifest_terminate_build 0
+Name: python-redash-toolbelt
+Version: 0.1.9
+Release: 1
+Summary: Redash API client and tools to manage your instance.
+License: BSD-2-Clause
+URL: https://github.com/getredash/redash-toolbelt
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/0f/8f/8625efe6a13defa2094b874b97222d28f0e267937b68c2774024c6e49458/redash_toolbelt-0.1.9.tar.gz
+BuildArch: noarch
+
+Requires: python3-requests
+Requires: python3-click
+
+%description
+redash-toolbelt - The official API client and utilities to manage a Redash instance
+
+
+- [INSTALLATION](#installation)
+- [EXAMPLE SCRIPTS](#example-scripts)
+
+
+## INSTALLATION
+
+To install it you will need Python 3.6 or above. We recommend that you use a [virtual environment].
+
+
+```bash
+pip install --upgrade redash-toolbelt
+```
+
+This command will update `redash-toolbelt` if you have already installed it.
+
+[virtual environment]: https://pythonbasics.org/virtualenv/
+
+
+## EXAMPLE SCRIPTS
+
+With `redash-toolbelt` installed you will have access to several example CLI scripts within your terminal.
+
+```text
+
+gdpr-scrub Search for a string term in your Redash queries
+ and query results. The script returns a list of
+ URLs in your instance that contain references to
+ the search term you provide
+find-tables Search the text of queries against a data source
+ to see which table names are used in queries of
+ that source. This script relies on regex that is
+ tested against ANSI SQL.
+clone-dashboard-and-queries Completely duplicate a dashboard by copying all
+ its queries and visualizations.
+export-queries Export all the queries of your Redash instance
+ as text files.
+redash-migrate Move data from one instance of Redash to another.
+ See docs/redash-migrate/README.md for more info
+```
+
+
+%package -n python3-redash-toolbelt
+Summary: Redash API client and tools to manage your instance.
+Provides: python-redash-toolbelt
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-redash-toolbelt
+redash-toolbelt - The official API client and utilities to manage a Redash instance
+
+
+- [INSTALLATION](#installation)
+- [EXAMPLE SCRIPTS](#example-scripts)
+
+
+## INSTALLATION
+
+To install it you will need Python 3.6 or above. We recommend that you use a [virtual environment].
+
+
+```bash
+pip install --upgrade redash-toolbelt
+```
+
+This command will update `redash-toolbelt` if you have already installed it.
+
+[virtual environment]: https://pythonbasics.org/virtualenv/
+
+
+## EXAMPLE SCRIPTS
+
+With `redash-toolbelt` installed you will have access to several example CLI scripts within your terminal.
+
+```text
+
+gdpr-scrub Search for a string term in your Redash queries
+ and query results. The script returns a list of
+ URLs in your instance that contain references to
+ the search term you provide
+find-tables Search the text of queries against a data source
+ to see which table names are used in queries of
+ that source. This script relies on regex that is
+ tested against ANSI SQL.
+clone-dashboard-and-queries Completely duplicate a dashboard by copying all
+ its queries and visualizations.
+export-queries Export all the queries of your Redash instance
+ as text files.
+redash-migrate Move data from one instance of Redash to another.
+ See docs/redash-migrate/README.md for more info
+```
+
+
+%package help
+Summary: Development documents and examples for redash-toolbelt
+Provides: python3-redash-toolbelt-doc
+%description help
+redash-toolbelt - The official API client and utilities to manage a Redash instance
+
+
+- [INSTALLATION](#installation)
+- [EXAMPLE SCRIPTS](#example-scripts)
+
+
+## INSTALLATION
+
+To install it you will need Python 3.6 or above. We recommend that you use a [virtual environment].
+
+
+```bash
+pip install --upgrade redash-toolbelt
+```
+
+This command will update `redash-toolbelt` if you have already installed it.
+
+[virtual environment]: https://pythonbasics.org/virtualenv/
+
+
+## EXAMPLE SCRIPTS
+
+With `redash-toolbelt` installed you will have access to several example CLI scripts within your terminal.
+
+```text
+
+gdpr-scrub Search for a string term in your Redash queries
+ and query results. The script returns a list of
+ URLs in your instance that contain references to
+ the search term you provide
+find-tables Search the text of queries against a data source
+ to see which table names are used in queries of
+ that source. This script relies on regex that is
+ tested against ANSI SQL.
+clone-dashboard-and-queries Completely duplicate a dashboard by copying all
+ its queries and visualizations.
+export-queries Export all the queries of your Redash instance
+ as text files.
+redash-migrate Move data from one instance of Redash to another.
+ See docs/redash-migrate/README.md for more info
+```
+
+
+%prep
+%autosetup -n redash-toolbelt-0.1.9
+
+%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-redash-toolbelt -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Fri May 05 2023 Python_Bot <Python_Bot@openeuler.org> - 0.1.9-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..dd37a9a
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+38d7c52900fc30a2976530403ff25b2a redash_toolbelt-0.1.9.tar.gz