Metadata-Version: 2.4
Name: automated-document-parser
Version: 0.1.4
Summary: A powerful and automated document parser built with LangChain for intelligent document processing
Project-URL: Homepage, https://github.com/Pulkit12dhingra/automated-document-parser
Project-URL: Repository, https://github.com/Pulkit12dhingra/automated-document-parser
Project-URL: Issues, https://github.com/Pulkit12dhingra/automated-document-parser/issues
Author-email: Pulkit Dhingra <pulkit12dhingra@example.com>
License: MIT License
        
        Copyright (c) 2025 Pulkit Dhingra
        
        Permission is hereby granted, free of charge, to any person obtaining a copy
        of this software and associated documentation files (the "Software"), to deal
        in the Software without restriction, including without limitation the rights
        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
        copies of the Software, and to permit persons to whom the Software is
        furnished to do so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in all
        copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
        SOFTWARE.
License-File: LICENSE
Keywords: document-parser,langchain,nlp
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.13
Requires-Python: >=3.13
Requires-Dist: build>=1.3.0
Requires-Dist: faiss-cpu>=1.12.0
Requires-Dist: langchain-community>=0.3.0
Requires-Dist: langchain-huggingface>=1.0.1
Requires-Dist: langchain-text-splitters>=1.0.0
Requires-Dist: langchain>=0.3.0
Requires-Dist: pypdf>=5.1.0
Requires-Dist: python-docx>=1.1.0
Requires-Dist: python-magic>=0.4.27
Requires-Dist: sentence-transformers>=5.1.2
Requires-Dist: torch>=2.9.0
Requires-Dist: transformers>=4.57.1
Provides-Extra: dev
Requires-Dist: pre-commit>=4.0.1; extra == 'dev'
Requires-Dist: pytest-cov>=7.0.0; extra == 'dev'
Requires-Dist: pytest>=8.3.4; extra == 'dev'
Requires-Dist: ruff>=0.14.4; extra == 'dev'
Requires-Dist: twine>=6.2.0; extra == 'dev'
Description-Content-Type: text/markdown

# Automated Document Parser

[![PyPI version](https://badge.fury.io/py/automated-document-parser.svg)](https://pypi.org/project/automated-document-parser/)
[![Python Version](https://img.shields.io/pypi/pyversions/automated-document-parser.svg)](https://pypi.org/project/automated-document-parser/)
[![CI](https://github.com/Pulkit12dhingra/automated-document-parser/actions/workflows/ci.yml/badge.svg)](https://github.com/Pulkit12dhingra/automated-document-parser/actions/workflows/ci.yml)
[![codecov](https://codecov.io/gh/Pulkit12dhingra/automated-document-parser/branch/master/graph/badge.svg)](https://codecov.io/gh/Pulkit12dhingra/automated-document-parser)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
[![Code style: ruff](https://img.shields.io/badge/code%20style-ruff-000000.svg)](https://github.com/astral-sh/ruff)

A powerful and automated document parser built with LangChain for intelligent document processing. This library automatically detects file types and uses the appropriate loader to parse documents into LangChain-compatible formats.

## Features

- Automatic file type detection based on file extensions
- Support for multiple document formats: PDF, TXT, CSV, JSON, DOCX, HTML, Markdown
- Built on LangChain for seamless integration with RAG applications
- Type-safe implementation with comprehensive error handling
- Batch processing support for multiple documents

## Installation

Install from PyPI:

```bash
pip install automated-document-parser
```

Or using uv:

```bash
uv add automated-document-parser
```

## Quick Start

### Basic Usage

```python
from automated_document_parser import DocumentParser

# Initialize the parser
parser = DocumentParser()

# Parse a single document
documents = parser.parse("path/to/document.pdf")

# Parse multiple documents
file_paths = ["doc1.pdf", "doc2.txt", "data.csv"]
parsed_docs = parser.parse_multiple(file_paths)
```

### Working with Parsed Documents

```python
# Access document content and metadata
for doc in documents:
    print(f"Content: {doc.page_content}")
    print(f"Source: {doc.metadata['source']}")
    print(f"Type: {doc.metadata['file_type']}")
```
## License

MIT License - see LICENSE file for details.

## Contributing

Contributions are welcome! Please feel free to submit a Pull Request.
