diff options
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-dash-uploader.spec | 216 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 218 insertions, 0 deletions
@@ -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 +    + + + +# 📤 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)<bR> + ☎ Call easily a callback after uploading is finished.<br> + 📦 Upload files using [resumable.js](https://github.com/23/resumable.js) +<br> + ✅ Works with Dash 1.1.0.+ & Python 3.6+. (Possibly with other versions, too)<br> + + + +## 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 +    + + + +# 📤 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)<bR> + ☎ Call easily a callback after uploading is finished.<br> + 📦 Upload files using [resumable.js](https://github.com/23/resumable.js) +<br> + ✅ Works with Dash 1.1.0.+ & Python 3.6+. (Possibly with other versions, too)<br> + + + +## 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 +    + + + +# 📤 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)<bR> + ☎ Call easily a callback after uploading is finished.<br> + 📦 Upload files using [resumable.js](https://github.com/23/resumable.js) +<br> + ✅ Works with Dash 1.1.0.+ & Python 3.6+. (Possibly with other versions, too)<br> + + + +## 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 <Python_Bot@openeuler.org> - 0.6.0-1 +- Package Spec generated @@ -0,0 +1 @@ +cc65405971255aaeee6c9cb61a117bbb dash_uploader-0.6.0.tar.gz |