🌊 OpenParse
OpenParse provides an API to accurately extract your unstructured data (e.g. PDF, images, charts) into structured format.
🌱 Set up your OpenParser API key
OpenParse is still in private beta. If you are interested in testing our document models, please reach out at info@cambioml.com for a FREE API key.
To set up your API key CAMBIO_API_KEY, you will need to :
- create a
.envfile in your root folder; - add the following one line to your `.env file:
CAMBIO_API_KEY=17b************************
💻 Installation
conda create -n openparse python=3.10 -y
conda activate openparse
pip3 install open_parser
:bashfile usage
To use OpenParse via curl requests, you can run the following bash command from the root folder of this repository:
bash parse.sh <your apiKey> <file path> <prompt for parse (optional, default="")>
For example, to extract a table from a PDF file, you can run the following command:
bash parse.sh gl************************************** /path/to/your/file.pdf "Return the table in a JSON format with each box's key and value."
📜 Examples
OpenParse can extract text, numbers and symbols from PDF, images, etc. Check out each notebook below to run OpenParse within 10 lines of code!
Prompt to Extract Key-values into JSON from W2 (PDF)
Do you want to extract key-values from a W2 PDF into JSON format? Check out this notebook (3-min read)!
Extract a Table from an Image into Markdown Format
Are you a financial analyst who need to extract ACCURATE number from a table in an image or a PDF. Check out this notebook (3-min read)!
Metadata
Release files for open-parser 0.0.7
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 |
|---|---|---|---|---|
| open_parser-0.0.7.tar.gz | 2.7 kB | Without provenance | Details for open_parser-0.0.7.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| open_parser-0.0.7-py3-none-any.whl | Python 3 | none | any | Details for open_parser-0.0.7-py3-none-any.whl |
Total release size: 5.9 kB
Release files / open_parser-0.0.7.tar.gz
| Download URL | open_parser-0.0.7.tar.gz |
|---|---|
| Size | 2.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6a247ed14f1a71166860fbf5f6ceba56ee811e40fa71aab3c0365042495dc1e7
|
|
BLAKE2b-256 checksum How to use checksums |
c28398d8c616378298470094485f901eb85213b581aad841c82bd25535cec1cb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.2 CPython/3.10.14 Darwin/23.4.0
|
Release files / open_parser-0.0.7-py3-none-any.whl
| Download URL | open_parser-0.0.7-py3-none-any.whl |
|---|---|
| Size | 3.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0bcff7d6e33cb47162bf0755b6e0dba780b98cbbfa1962f072112d0468a55f08
|
|
BLAKE2b-256 checksum How to use checksums |
73524e277e141c81f130fe55e958eca5c4255ccfdae6ac3da5d3efed0a15267a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.2 CPython/3.10.14 Darwin/23.4.0
|
Security for open-parser 0.0.7
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.