This release is a pre-release and may not be stable for production use.
tabula-py
tabula-py is a simple Python wrapper of tabula-java, which can read table of PDF.
You can read tables from PDF and convert into pandas's DataFrame. tabula-py also enables you to convert a PDF file into CSV/TSV/JSON file.
You can see the example notebook and try it on Google Colab, or we highly recommend to read our document especially for FAQ.
Requirements
- Java 8+
- Python 3.5+
OS
I confirmed working on macOS and Ubuntu. But some people confirm it works on Windows 10. See also the document for the detailed installation for Windows 10.
Usage
- Documentation
- FAQ would be helpful if you have issue
- Example notebook on Google Colaboratory
Install
Ensure you have Java runtime and set PATH for it.
pip install tabula-py
Example
tabula-py enables you to extract table from PDF into DataFrame and JSON. It also can extract tables from PDF and save file as CSV, TSV or JSON.
import tabula
# Read pdf into DataFrame
df = tabula.read_pdf("test.pdf", pages='all')
# Read remote pdf into DataFrame
df2 = tabula.read_pdf("https://github.com/tabulapdf/tabula-java/raw/master/src/test/resources/technology/tabula/arabic.pdf")
# convert PDF into CSV
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 example notebook for more detail. I also recommend to read the tutorial article written by @aegis4048.
Contributing
Interested in helping out? I'd love to have your help!
You can help by:
- Reporting a bug.
- Adding or editing documentation.
- Contributing code via a Pull Request. See also for the contribution
- Write a blog post or spreading the word about
tabula-pyto people who might be able to benefit from using it.
Contributors
- @lahoffm
- @jakekara
- @lcd1232
- @kirkholloway
- @CurtLH
- @nikhilgk
- @krassowski
- @alexandreio
- @rmnevesLH
- @red-bin
- @Gallaecio
- @red-bin
- @alexandreio
- @bpben
Another support
You can also support our continued work on tabula-py with a donation on Patreon.
Metadata
Release files for tabula-py 2.0.0rc1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| tabula-py-2.0.0rc1.tar.gz | 10.6 MB | Without provenance | Details for tabula-py-2.0.0rc1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| tabula_py-2.0.0rc1-py3-none-any.whl | Python 3 | none | any | Details for tabula_py-2.0.0rc1-py3-none-any.whl |
Total release size: 21.0 MB
Release files / tabula-py-2.0.0rc1.tar.gz
| Download URL | tabula-py-2.0.0rc1.tar.gz |
|---|---|
| Size | 10.6 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
18aa6e0f16f0d6472ef2991a19e9a40c43e6c079908316f2473e4acefc23b925
|
|
BLAKE2b-256 checksum How to use checksums |
5724cb2c9e83cf894aaf6028c4c2426b545e565189b0986368017c3a5ed699a5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.8.0
|
Release files / tabula_py-2.0.0rc1-py3-none-any.whl
| Download URL | tabula_py-2.0.0rc1-py3-none-any.whl |
|---|---|
| Size | 10.4 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2b2b4d9a6913c816b67bd19f7ba36054cbd985e283e61c0620d05e62615e2749
|
|
BLAKE2b-256 checksum How to use checksums |
153acb2332a18839fbc02aff06669088ae55085de2a6a615e8d604b27c299376
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.8.0
|
Security for tabula-py 2.0.0rc1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.