Convert PDF to Markdown using LlamaParse
Project description
ak_pdf2md
Convert PDFs to Markdown using llamaparse
Table of Contents
About the Project
Getting Started
Prerequisites
Python 3.11 or above
LLamaParse API Key from Llamacloud
Installation
Production
pip install ak_pdf2md
Usage
Python
from ak_pdf2md import test_config, pdfparser
test_config() # Test if config.toml has been correctly set up
# Convert to markdown in same dir
pdfparser.convert(filepath="/path/to/pdf")
# Explicit Conversion
pdfparser.convert(filepath="/path/to/pdf", dest_dir="/dest", extension=".md")
#Can pass additional parser commands per #https://docs.cloud.llamaindex.ai/llamaparse/features/parsing_options
pdfparser.convert(
filepath="/path/to/pdf",
parsing_instruction="You are parsing a receipt from a restaurant."
)
Terminal
app --help # Input Help
test # Test if config is correctly setup
License
See LICENSE for more information.
Contact
Arun Kishore - @rpakishore
Project Link: https://github.com/rpakishore/ak_pdf2md
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
ak_pdf2md-0.0.3.tar.gz
(12.0 kB
view details)
Built Distribution
ak_pdf2md-0.0.3-py3-none-any.whl
(11.5 kB
view details)
File details
Details for the file ak_pdf2md-0.0.3.tar.gz
.
File metadata
- Download URL: ak_pdf2md-0.0.3.tar.gz
- Upload date:
- Size: 12.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.32.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 71d1ef06c81342b67e61f4a4fe7b1de3fb01d106e41683a696049fd67c6245ad |
|
MD5 | 344e08d04db6a4c1a9a928e75498aef1 |
|
BLAKE2b-256 | ceaf998acb5182a2051bfca278236cc5b0d65f5635ed0f58a9e42f9af38fccc8 |
File details
Details for the file ak_pdf2md-0.0.3-py3-none-any.whl
.
File metadata
- Download URL: ak_pdf2md-0.0.3-py3-none-any.whl
- Upload date:
- Size: 11.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.32.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f9427981f2c0a048eaa973cfa78dff21970d10bed608d1494399d9d55a30964b |
|
MD5 | ad814d1b1e966cf27f470388a67b63a1 |
|
BLAKE2b-256 | f91d4d533011cf512416ac89e34b4fb12ff0ef9bd79f5f06df902647eb4d970f |