Metadata-Version: 2.4
Name: sci-fi-parser
Version: 0.1.0
Summary: A package to parse data from graphs in documents.
Project-URL: Documentation, https://sci-fi-parser.readthedocs.io/en/latest
Project-URL: Repository, https://github.com/Sci-Fi-Parser/Sci-Fi-Parser
Project-URL: Issues, https://github.com/Sci-Fi-Parser/Sci-Fi-Parser/issues
License-Expression: MIT
License-File: LICENSE
Keywords: chart extraction,computer vision,data extraction,document parsing,graph extraction,ocr,pdf processing,scientific documents,scientific figure parser,vision-language models
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: Science/Research
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.12
Classifier: Topic :: Scientific/Engineering :: Information Analysis
Classifier: Topic :: Text Processing :: General
Requires-Python: >=3.12
Requires-Dist: duckdb>=1.5.4
Requires-Dist: httpx>=0.27
Requires-Dist: matplotlib>=3.9
Requires-Dist: opencv-python>=4.13.0.92
Requires-Dist: paddleocr>=3.5.0
Requires-Dist: paddlepaddle==3.2.0
Requires-Dist: pandas>=3.0.3
Requires-Dist: pillow>=10.0
Requires-Dist: pyarrow>=24.0.0
Requires-Dist: pydantic>=2.0
Requires-Dist: pymupdf>=1.27.2.3
Requires-Dist: torch>=2.12.0
Requires-Dist: torchvision>=0.27.0
Requires-Dist: tqdm>=4.67.3
Requires-Dist: transformers>=5.12.1
Provides-Extra: cv
Requires-Dist: opencv-python>=4.10; extra == 'cv'
Description-Content-Type: text/markdown

# Scientific Figure Parser

[![CI](https://github.com/Sci-Fi-Parser/Sci-Fi-Parser/actions/workflows/ci.yaml/badge.svg)](https://github.com/Sci-Fi-Parser/Sci-Fi-Parser/actions/workflows/ci.yaml) [![codecov](https://codecov.io/gh/Sci-Fi-Parser/Sci-Fi-Parser/graph/badge.svg?token=BOEBN5S4C7)](https://codecov.io/gh/Sci-Fi-Parser/Sci-Fi-Parser) [![docs](https://app.readthedocs.org/projects/Sci-Fi-Parser/badge/?version=project-demo&style=flat-default)](https://sci-fi-parser.readthedocs.io/en/latest)

Sci-Fi-Parser is a Python package that provides a pipeline to take charts from PDF documents and extract data from them.

## Installation

```bash
$ pip install sci-fi-parser
```

## Usage

Full documentation can be found [here](https://sci-fi-parser.readthedocs.io/en/latest).

```python
from sci_fi_parser import parse_folder

result = parse_folder(
    input_dir="path/to/pdfs",
    output_dir="output",
    extracted_image_dir="output/extracted_images",
)

print(result.summary())
```

## License

Sci-Fi-Parser is licensed under the terms of the [MIT license](LICENSE).
