From 83db71166a4a36450c409ecea1d68cdae9297a79 Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Wed, 17 May 2023 04:42:44 +0000 Subject: automatic import of python-dash-uploader --- .gitignore | 1 + python-dash-uploader.spec | 216 ++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 218 insertions(+) create mode 100644 python-dash-uploader.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore index e69de29..f9de269 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/dash_uploader-0.6.0.tar.gz diff --git a/python-dash-uploader.spec b/python-dash-uploader.spec new file mode 100644 index 0000000..623f83e --- /dev/null +++ b/python-dash-uploader.spec @@ -0,0 +1,216 @@ +%global _empty_manifest_terminate_build 0 +Name: python-dash-uploader +Version: 0.6.0 +Release: 1 +Summary: Upload large files using resumable.js +License: MIT +URL: https://github.com/np-8/dash-uploader +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/80/5a/5d047e4970738660df625138e956fbde284bb39037c96e1c88159424fa43/dash_uploader-0.6.0.tar.gz +BuildArch: noarch + + +%description +![GitHub tag (latest by date)](https://img.shields.io/github/v/tag/np-8/dash-uploader) ![PyPI](https://img.shields.io/pypi/v/dash-uploader) ![PyPI - Downloads](https://img.shields.io/pypi/dm/dash-uploader) ![GitHub](https://img.shields.io/github/license/np-8/dash-uploader) + +![upload large files with dash-uploader](https://github.com/np-8/dash-uploader/blob/0.2.0/docs/upload-demo.gif?raw=true) + +# 📤 dash-uploader +The upload package for [Dash](https://dash.plotly.com/) applications using large data files. + +### 🏠 Homepage & Documentation +[https://github.com/np-8/dash-uploader](https://github.com/np-8/dash-uploader) + + +## Short summary +      💾 Data file size has no limits. (Except the hard disk size)
+      ☎ Call easily a callback after uploading is finished.
+      📦 Upload files using [resumable.js](https://github.com/23/resumable.js) +
+      ✅ Works with Dash 1.1.0.+ & Python 3.6+. (Possibly with other versions, too)
+ + + +## Installing +``` +pip install dash-uploader +``` + +## Usage + + +### Simple example + +```python +import dash +import dash_html_components as html +import dash_uploader as du + +app = dash.Dash(__name__) + +# 1) configure the upload folder +du.configure_upload(app, r"C:\tmp\Uploads") + +# 2) Use the Upload component +app.layout = html.Div([ + du.Upload(), +]) + +if __name__ == '__main__': + app.run_server(debug=True) + +``` + +%package -n python3-dash-uploader +Summary: Upload large files using resumable.js +Provides: python-dash-uploader +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-dash-uploader +![GitHub tag (latest by date)](https://img.shields.io/github/v/tag/np-8/dash-uploader) ![PyPI](https://img.shields.io/pypi/v/dash-uploader) ![PyPI - Downloads](https://img.shields.io/pypi/dm/dash-uploader) ![GitHub](https://img.shields.io/github/license/np-8/dash-uploader) + +![upload large files with dash-uploader](https://github.com/np-8/dash-uploader/blob/0.2.0/docs/upload-demo.gif?raw=true) + +# 📤 dash-uploader +The upload package for [Dash](https://dash.plotly.com/) applications using large data files. + +### 🏠 Homepage & Documentation +[https://github.com/np-8/dash-uploader](https://github.com/np-8/dash-uploader) + + +## Short summary +      💾 Data file size has no limits. (Except the hard disk size)
+      ☎ Call easily a callback after uploading is finished.
+      📦 Upload files using [resumable.js](https://github.com/23/resumable.js) +
+      ✅ Works with Dash 1.1.0.+ & Python 3.6+. (Possibly with other versions, too)
+ + + +## Installing +``` +pip install dash-uploader +``` + +## Usage + + +### Simple example + +```python +import dash +import dash_html_components as html +import dash_uploader as du + +app = dash.Dash(__name__) + +# 1) configure the upload folder +du.configure_upload(app, r"C:\tmp\Uploads") + +# 2) Use the Upload component +app.layout = html.Div([ + du.Upload(), +]) + +if __name__ == '__main__': + app.run_server(debug=True) + +``` + +%package help +Summary: Development documents and examples for dash-uploader +Provides: python3-dash-uploader-doc +%description help +![GitHub tag (latest by date)](https://img.shields.io/github/v/tag/np-8/dash-uploader) ![PyPI](https://img.shields.io/pypi/v/dash-uploader) ![PyPI - Downloads](https://img.shields.io/pypi/dm/dash-uploader) ![GitHub](https://img.shields.io/github/license/np-8/dash-uploader) + +![upload large files with dash-uploader](https://github.com/np-8/dash-uploader/blob/0.2.0/docs/upload-demo.gif?raw=true) + +# 📤 dash-uploader +The upload package for [Dash](https://dash.plotly.com/) applications using large data files. + +### 🏠 Homepage & Documentation +[https://github.com/np-8/dash-uploader](https://github.com/np-8/dash-uploader) + + +## Short summary +      💾 Data file size has no limits. (Except the hard disk size)
+      ☎ Call easily a callback after uploading is finished.
+      📦 Upload files using [resumable.js](https://github.com/23/resumable.js) +
+      ✅ Works with Dash 1.1.0.+ & Python 3.6+. (Possibly with other versions, too)
+ + + +## Installing +``` +pip install dash-uploader +``` + +## Usage + + +### Simple example + +```python +import dash +import dash_html_components as html +import dash_uploader as du + +app = dash.Dash(__name__) + +# 1) configure the upload folder +du.configure_upload(app, r"C:\tmp\Uploads") + +# 2) Use the Upload component +app.layout = html.Div([ + du.Upload(), +]) + +if __name__ == '__main__': + app.run_server(debug=True) + +``` + +%prep +%autosetup -n dash-uploader-0.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-dash-uploader -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Wed May 17 2023 Python_Bot - 0.6.0-1 +- Package Spec generated diff --git a/sources b/sources new file mode 100644 index 0000000..18071ad --- /dev/null +++ b/sources @@ -0,0 +1 @@ +cc65405971255aaeee6c9cb61a117bbb dash_uploader-0.6.0.tar.gz -- cgit v1.2.3