diff options
| author | CoprDistGit <infra@openeuler.org> | 2023-04-10 19:47:09 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2023-04-10 19:47:09 +0000 |
| commit | 89204aa91655ff81283defcb806564336e7d588c (patch) | |
| tree | f41cd0bdfe5fe9f3968ed071ee5db0e7b20031e1 | |
| parent | e591794b446aaf458875cde0b590c0149e5af5a1 (diff) | |
automatic import of python-tabula-py
| -rw-r--r-- | .gitignore | 1 | ||||
| -rw-r--r-- | python-tabula-py.spec | 384 | ||||
| -rw-r--r-- | sources | 1 |
3 files changed, 386 insertions, 0 deletions
@@ -0,0 +1 @@ +/tabula-py-2.7.0.tar.gz diff --git a/python-tabula-py.spec b/python-tabula-py.spec new file mode 100644 index 0000000..50d7790 --- /dev/null +++ b/python-tabula-py.spec @@ -0,0 +1,384 @@ +%global _empty_manifest_terminate_build 0 +Name: python-tabula-py +Version: 2.7.0 +Release: 1 +Summary: Simple wrapper for tabula-java, read tables from PDF into DataFrame +License: The MIT License (MIT) Copyright (c) 2016 Michiaki Ariga Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +URL: https://github.com/chezou/tabula-py +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/ec/7a/4f1c8438489985e699a6151c0c1a67d6011ee50704f4b4007a2770301b00/tabula-py-2.7.0.tar.gz +BuildArch: noarch + +Requires: python3-pandas +Requires: python3-numpy +Requires: python3-distro +Requires: python3-pytest +Requires: python3-flake8 +Requires: python3-black +Requires: python3-isort +Requires: python3-mypy +Requires: python3-Flake8-pyproject +Requires: python3-sphinx +Requires: python3-sphinx-rtd-theme +Requires: python3-pytest + +%description +# tabula-py + +[](https://github.com/chezou/tabula-py/actions/workflows/pythontest.yml) +[](https://badge.fury.io/py/tabula-py) +[](https://tabula-py.readthedocs.io/en/latest/?badge=latest) +[](https://www.patreon.com/chezou) + +`tabula-py` is a simple Python wrapper of [tabula-java](https://github.com/tabulapdf/tabula-java), which can read tables in a PDF. +You can read tables from a PDF and convert them into a pandas DataFrame. tabula-py also enables you to convert a PDF file into a CSV, a TSV or a JSON file. + +You can see [the example notebook](https://nbviewer.jupyter.org/github/chezou/tabula-py/blob/master/examples/tabula_example.ipynb) and try it on Google Colab, or we highly recommend reading [our documentation](https://tabula-py.readthedocs.io/en/latest/), especially the FAQ section. + + + +## Requirements + +- Java 8+ +- Python 3.8+ + +### OS + +I confirmed working on macOS and Ubuntu. But some people confirm it works on Windows 10. See also [the documentation for the detailed installation for Windows 10](https://tabula-py.readthedocs.io/en/latest/getting_started.html#get-tabula-py-working-windows-10). + +## Usage + +- [Documentation](https://tabula-py.readthedocs.io/en/latest/) + - [FAQ](https://tabula-py.readthedocs.io/en/latest/faq.html) would be helpful if you have an issue +- [Example notebook on Google Colaboratory](https://colab.research.google.com/github/chezou/tabula-py/blob/master/examples/tabula_example.ipynb) + +### Install + +Ensure you have a Java runtime and set the PATH for it. + +```bash +pip install tabula-py +``` + +### Example + +tabula-py enables you to extract tables from a PDF into a DataFrame, or a JSON. It can also extract tables from a PDF and save the file as a CSV, a TSV, or a JSON. + +```py +import tabula + +# Read pdf into list of DataFrame +dfs = tabula.read_pdf("test.pdf", pages='all') + +# Read remote pdf into list of DataFrame +dfs2 = tabula.read_pdf("https://github.com/tabulapdf/tabula-java/raw/master/src/test/resources/technology/tabula/arabic.pdf") + +# convert PDF into CSV file +tabula.convert_into("test.pdf", "output.csv", output_format="csv", pages='all') + +# convert all PDFs in a directory +tabula.convert_into_by_batch("input_directory", output_format='csv', pages='all') +``` + +See [an example notebook](https://nbviewer.jupyter.org/github/chezou/tabula-py/blob/master/examples/tabula_example.ipynb) for more details. I also recommend reading [the tutorial article](https://aegis4048.github.io/parse-pdf-files-while-retaining-structure-with-tabula-py) written by [@aegis4048](https://github.com/aegis4048), and [another tutorial](https://www.dunderdata.com/blog/read-trapped-tables-within-pdfs-as-pandas-dataframes) written by [@tdpetrou](https://github.com/tdpetrou). + +### Contributing + +Interested in helping out? I'd love to have your help! + +You can help by: + +- [Reporting a bug](https://github.com/chezou/tabula-py/issues). +- Adding or editing documentation. +- Contributing code via a Pull Request. See also [for the contribution](docs/contributing.rst) +- Write a blog post or spread the word about `tabula-py` to people who might be able to benefit from using it. + +#### Contributors + +- [@lahoffm](https://github.com/lahoffm) +- [@jakekara](https://github.com/jakekara) +- [@lcd1232](https://github.com/lcd1232) +- [@kirkholloway](https://github.com/kirkholloway) +- [@CurtLH](https://github.com/CurtLH) +- [@nikhilgk](https://github.com/nikhilgk) +- [@krassowski](https://github.com/krassowski) +- [@alexandreio](https://github.com/alexandreio) +- [@rmnevesLH](https://github.com/rmnevesLH) +- [@red-bin](https://github.com/red-bin) +- [@Gallaecio](https://github.com/Gallaecio) +- [@red-bin](https://github.com/red-bin) +- [@alexandreio](https://github.com/alexandreio) +- [@bpben](https://github.com/bpben) +- [@Bueddl](https://github.com/Bueddl) +- [@cjotade](https://github.com/cjotade) +- [@codeboy5](https://github.com/codeboy5) +- [@manohar-voggu](https://github.com/manohar-voggu) +- [@deveshSingh06](https://github.com/deveshSingh06) +- [@grfeller](https://github.com/grfeller) +- [@djbrown](https://github.com/djbrown) +- [@swar](https://github.com/swar) +- [@mvoggu](https://github.com/mvoggu) +- [@tdpetrou](https://github.com/tdpetrou) + +#### Another support + +You can also support our continued work on `tabula-py` with a donation on GitHub Sponsors or [Patreon](https://www.patreon.com/chezou). + + +%package -n python3-tabula-py +Summary: Simple wrapper for tabula-java, read tables from PDF into DataFrame +Provides: python-tabula-py +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-tabula-py +# tabula-py + +[](https://github.com/chezou/tabula-py/actions/workflows/pythontest.yml) +[](https://badge.fury.io/py/tabula-py) +[](https://tabula-py.readthedocs.io/en/latest/?badge=latest) +[](https://www.patreon.com/chezou) + +`tabula-py` is a simple Python wrapper of [tabula-java](https://github.com/tabulapdf/tabula-java), which can read tables in a PDF. +You can read tables from a PDF and convert them into a pandas DataFrame. tabula-py also enables you to convert a PDF file into a CSV, a TSV or a JSON file. + +You can see [the example notebook](https://nbviewer.jupyter.org/github/chezou/tabula-py/blob/master/examples/tabula_example.ipynb) and try it on Google Colab, or we highly recommend reading [our documentation](https://tabula-py.readthedocs.io/en/latest/), especially the FAQ section. + + + +## Requirements + +- Java 8+ +- Python 3.8+ + +### OS + +I confirmed working on macOS and Ubuntu. But some people confirm it works on Windows 10. See also [the documentation for the detailed installation for Windows 10](https://tabula-py.readthedocs.io/en/latest/getting_started.html#get-tabula-py-working-windows-10). + +## Usage + +- [Documentation](https://tabula-py.readthedocs.io/en/latest/) + - [FAQ](https://tabula-py.readthedocs.io/en/latest/faq.html) would be helpful if you have an issue +- [Example notebook on Google Colaboratory](https://colab.research.google.com/github/chezou/tabula-py/blob/master/examples/tabula_example.ipynb) + +### Install + +Ensure you have a Java runtime and set the PATH for it. + +```bash +pip install tabula-py +``` + +### Example + +tabula-py enables you to extract tables from a PDF into a DataFrame, or a JSON. It can also extract tables from a PDF and save the file as a CSV, a TSV, or a JSON. + +```py +import tabula + +# Read pdf into list of DataFrame +dfs = tabula.read_pdf("test.pdf", pages='all') + +# Read remote pdf into list of DataFrame +dfs2 = tabula.read_pdf("https://github.com/tabulapdf/tabula-java/raw/master/src/test/resources/technology/tabula/arabic.pdf") + +# convert PDF into CSV file +tabula.convert_into("test.pdf", "output.csv", output_format="csv", pages='all') + +# convert all PDFs in a directory +tabula.convert_into_by_batch("input_directory", output_format='csv', pages='all') +``` + +See [an example notebook](https://nbviewer.jupyter.org/github/chezou/tabula-py/blob/master/examples/tabula_example.ipynb) for more details. I also recommend reading [the tutorial article](https://aegis4048.github.io/parse-pdf-files-while-retaining-structure-with-tabula-py) written by [@aegis4048](https://github.com/aegis4048), and [another tutorial](https://www.dunderdata.com/blog/read-trapped-tables-within-pdfs-as-pandas-dataframes) written by [@tdpetrou](https://github.com/tdpetrou). + +### Contributing + +Interested in helping out? I'd love to have your help! + +You can help by: + +- [Reporting a bug](https://github.com/chezou/tabula-py/issues). +- Adding or editing documentation. +- Contributing code via a Pull Request. See also [for the contribution](docs/contributing.rst) +- Write a blog post or spread the word about `tabula-py` to people who might be able to benefit from using it. + +#### Contributors + +- [@lahoffm](https://github.com/lahoffm) +- [@jakekara](https://github.com/jakekara) +- [@lcd1232](https://github.com/lcd1232) +- [@kirkholloway](https://github.com/kirkholloway) +- [@CurtLH](https://github.com/CurtLH) +- [@nikhilgk](https://github.com/nikhilgk) +- [@krassowski](https://github.com/krassowski) +- [@alexandreio](https://github.com/alexandreio) +- [@rmnevesLH](https://github.com/rmnevesLH) +- [@red-bin](https://github.com/red-bin) +- [@Gallaecio](https://github.com/Gallaecio) +- [@red-bin](https://github.com/red-bin) +- [@alexandreio](https://github.com/alexandreio) +- [@bpben](https://github.com/bpben) +- [@Bueddl](https://github.com/Bueddl) +- [@cjotade](https://github.com/cjotade) +- [@codeboy5](https://github.com/codeboy5) +- [@manohar-voggu](https://github.com/manohar-voggu) +- [@deveshSingh06](https://github.com/deveshSingh06) +- [@grfeller](https://github.com/grfeller) +- [@djbrown](https://github.com/djbrown) +- [@swar](https://github.com/swar) +- [@mvoggu](https://github.com/mvoggu) +- [@tdpetrou](https://github.com/tdpetrou) + +#### Another support + +You can also support our continued work on `tabula-py` with a donation on GitHub Sponsors or [Patreon](https://www.patreon.com/chezou). + + +%package help +Summary: Development documents and examples for tabula-py +Provides: python3-tabula-py-doc +%description help +# tabula-py + +[](https://github.com/chezou/tabula-py/actions/workflows/pythontest.yml) +[](https://badge.fury.io/py/tabula-py) +[](https://tabula-py.readthedocs.io/en/latest/?badge=latest) +[](https://www.patreon.com/chezou) + +`tabula-py` is a simple Python wrapper of [tabula-java](https://github.com/tabulapdf/tabula-java), which can read tables in a PDF. +You can read tables from a PDF and convert them into a pandas DataFrame. tabula-py also enables you to convert a PDF file into a CSV, a TSV or a JSON file. + +You can see [the example notebook](https://nbviewer.jupyter.org/github/chezou/tabula-py/blob/master/examples/tabula_example.ipynb) and try it on Google Colab, or we highly recommend reading [our documentation](https://tabula-py.readthedocs.io/en/latest/), especially the FAQ section. + + + +## Requirements + +- Java 8+ +- Python 3.8+ + +### OS + +I confirmed working on macOS and Ubuntu. But some people confirm it works on Windows 10. See also [the documentation for the detailed installation for Windows 10](https://tabula-py.readthedocs.io/en/latest/getting_started.html#get-tabula-py-working-windows-10). + +## Usage + +- [Documentation](https://tabula-py.readthedocs.io/en/latest/) + - [FAQ](https://tabula-py.readthedocs.io/en/latest/faq.html) would be helpful if you have an issue +- [Example notebook on Google Colaboratory](https://colab.research.google.com/github/chezou/tabula-py/blob/master/examples/tabula_example.ipynb) + +### Install + +Ensure you have a Java runtime and set the PATH for it. + +```bash +pip install tabula-py +``` + +### Example + +tabula-py enables you to extract tables from a PDF into a DataFrame, or a JSON. It can also extract tables from a PDF and save the file as a CSV, a TSV, or a JSON. + +```py +import tabula + +# Read pdf into list of DataFrame +dfs = tabula.read_pdf("test.pdf", pages='all') + +# Read remote pdf into list of DataFrame +dfs2 = tabula.read_pdf("https://github.com/tabulapdf/tabula-java/raw/master/src/test/resources/technology/tabula/arabic.pdf") + +# convert PDF into CSV file +tabula.convert_into("test.pdf", "output.csv", output_format="csv", pages='all') + +# convert all PDFs in a directory +tabula.convert_into_by_batch("input_directory", output_format='csv', pages='all') +``` + +See [an example notebook](https://nbviewer.jupyter.org/github/chezou/tabula-py/blob/master/examples/tabula_example.ipynb) for more details. I also recommend reading [the tutorial article](https://aegis4048.github.io/parse-pdf-files-while-retaining-structure-with-tabula-py) written by [@aegis4048](https://github.com/aegis4048), and [another tutorial](https://www.dunderdata.com/blog/read-trapped-tables-within-pdfs-as-pandas-dataframes) written by [@tdpetrou](https://github.com/tdpetrou). + +### Contributing + +Interested in helping out? I'd love to have your help! + +You can help by: + +- [Reporting a bug](https://github.com/chezou/tabula-py/issues). +- Adding or editing documentation. +- Contributing code via a Pull Request. See also [for the contribution](docs/contributing.rst) +- Write a blog post or spread the word about `tabula-py` to people who might be able to benefit from using it. + +#### Contributors + +- [@lahoffm](https://github.com/lahoffm) +- [@jakekara](https://github.com/jakekara) +- [@lcd1232](https://github.com/lcd1232) +- [@kirkholloway](https://github.com/kirkholloway) +- [@CurtLH](https://github.com/CurtLH) +- [@nikhilgk](https://github.com/nikhilgk) +- [@krassowski](https://github.com/krassowski) +- [@alexandreio](https://github.com/alexandreio) +- [@rmnevesLH](https://github.com/rmnevesLH) +- [@red-bin](https://github.com/red-bin) +- [@Gallaecio](https://github.com/Gallaecio) +- [@red-bin](https://github.com/red-bin) +- [@alexandreio](https://github.com/alexandreio) +- [@bpben](https://github.com/bpben) +- [@Bueddl](https://github.com/Bueddl) +- [@cjotade](https://github.com/cjotade) +- [@codeboy5](https://github.com/codeboy5) +- [@manohar-voggu](https://github.com/manohar-voggu) +- [@deveshSingh06](https://github.com/deveshSingh06) +- [@grfeller](https://github.com/grfeller) +- [@djbrown](https://github.com/djbrown) +- [@swar](https://github.com/swar) +- [@mvoggu](https://github.com/mvoggu) +- [@tdpetrou](https://github.com/tdpetrou) + +#### Another support + +You can also support our continued work on `tabula-py` with a donation on GitHub Sponsors or [Patreon](https://www.patreon.com/chezou). + + +%prep +%autosetup -n tabula-py-2.7.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-tabula-py -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Mon Apr 10 2023 Python_Bot <Python_Bot@openeuler.org> - 2.7.0-1 +- Package Spec generated @@ -0,0 +1 @@ +a5f6c20c794131c3ede914c2f23abbab tabula-py-2.7.0.tar.gz |
