Skip to main content

Lightweight Document Parser - 순수 Python으로 PDF, DOCX, PPTX, HWPX 파싱

Project description

LitParser

Ligthweight Document Parser - 순수 Python 문서 파서

외부 라이브러리 없이 PDF, DOCX, PPTX, XLSX, HWPX 파싱

설치

pip install litparser

사용법

from litparser import parse, to_markdown, to_json

# 자동 포맷 감지
result = parse('document.pdf')
result = parse('report.docx')
result = parse('data.xlsx')

# 결과 접근
print(result.text)      # 전체 텍스트
print(result.tables)    # 테이블 목록 
print(result.pages)     # 페이지/시트별 데이터

# 변환
md = to_markdown(result)
json_str = to_json(result)

CLI

litparser document.pdf
litparser document.pdf --markdown
litparser document.pdf --json
litparser data.xlsx --tables
litparser document.pdf --info

지원 포맷

포맷 확장자 텍스트 테이블 이미지
PDF .pdf
Word .docx
PowerPoint .pptx
Excel .xlsx -
한글 .hwpx
텍스트 .txt, .md - -

라이선스

MIT License

Project details


Release history Release notifications | RSS feed

This version

0.5.3

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

litparser-0.5.3.tar.gz (58.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

litparser-0.5.3-py3-none-any.whl (69.9 kB view details)

Uploaded Python 3

File details

Details for the file litparser-0.5.3.tar.gz.

File metadata

  • Download URL: litparser-0.5.3.tar.gz
  • Upload date:
  • Size: 58.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.19

File hashes

Hashes for litparser-0.5.3.tar.gz
Algorithm Hash digest
SHA256 729aecf6555be63abb51d4b2bada1fed3df5b2015158b982454ab8c489513655
MD5 45ac2f27913969d26b5117de6de629a2
BLAKE2b-256 7f257d8eb505b3a8a6445ed301c93f279508c71095b0e73e3d4d5c6bed039f10

See more details on using hashes here.

File details

Details for the file litparser-0.5.3-py3-none-any.whl.

File metadata

  • Download URL: litparser-0.5.3-py3-none-any.whl
  • Upload date:
  • Size: 69.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.19

File hashes

Hashes for litparser-0.5.3-py3-none-any.whl
Algorithm Hash digest
SHA256 5410da2c05ee0c77036107c7a500a4306163ab8e29273add5de0b8982d17786c
MD5 195993b9f3d17b3974e9c8ef10ae7c0e
BLAKE2b-256 e35151e6f8a6b319f1225dca50ef57a9344172e78ace033324497a6f7f0debe7

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page