automated-document-parser 0.1.2__tar.gz → 0.1.4__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {automated_document_parser-0.1.2 → automated_document_parser-0.1.4}/.github/workflows/ci.yml +1 -1
- automated_document_parser-0.1.4/LICENSE +21 -0
- {automated_document_parser-0.1.2 → automated_document_parser-0.1.4}/Makefile +1 -1
- automated_document_parser-0.1.4/PKG-INFO +124 -0
- automated_document_parser-0.1.4/README.md +67 -0
- automated_document_parser-0.1.4/notebook_examples/rag_example.ipynb +656 -0
- automated_document_parser-0.1.4/notebook_examples/sample_docs/data.csv +5 -0
- automated_document_parser-0.1.4/notebook_examples/sample_docs/machine_learning.txt +16 -0
- automated_document_parser-0.1.4/notebook_examples/sample_docs/python_basics.txt +18 -0
- {automated_document_parser-0.1.2 → automated_document_parser-0.1.4}/pyproject.toml +21 -5
- automated_document_parser-0.1.4/requirements.txt +263 -0
- automated_document_parser-0.1.4/src/automated_document_parser/__init__.py +7 -0
- automated_document_parser-0.1.4/src/automated_document_parser/config.py +43 -0
- automated_document_parser-0.1.4/src/automated_document_parser/core.py +110 -0
- automated_document_parser-0.1.4/src/automated_document_parser/loaders/__init__.py +5 -0
- automated_document_parser-0.1.4/src/automated_document_parser/loaders/base_loader.py +1 -0
- automated_document_parser-0.1.4/src/automated_document_parser/loaders/file_loaders.py +113 -0
- automated_document_parser-0.1.4/src/automated_document_parser/main.py +33 -0
- automated_document_parser-0.1.4/src/automated_document_parser/utils.py +104 -0
- automated_document_parser-0.1.4/test/test_config.py +39 -0
- automated_document_parser-0.1.4/test/test_core.py +120 -0
- automated_document_parser-0.1.4/test/test_file_loaders.py +139 -0
- automated_document_parser-0.1.4/test/test_main.py +24 -0
- automated_document_parser-0.1.4/test/test_utils.py +129 -0
- automated_document_parser-0.1.2/PKG-INFO +0 -21
- automated_document_parser-0.1.2/README.md +0 -0
- automated_document_parser-0.1.2/requirements.txt +0 -92
- automated_document_parser-0.1.2/src/automated_document_parser/__init__.py +0 -0
- automated_document_parser-0.1.2/src/automated_document_parser/main.py +0 -6
- automated_document_parser-0.1.2/test/test_main.py +0 -33
- {automated_document_parser-0.1.2 → automated_document_parser-0.1.4}/.github/workflows/publish.yml +0 -0
- {automated_document_parser-0.1.2 → automated_document_parser-0.1.4}/.gitignore +0 -0
- {automated_document_parser-0.1.2 → automated_document_parser-0.1.4}/.pre-commit-config.yaml +0 -0
- {automated_document_parser-0.1.2 → automated_document_parser-0.1.4}/test/__init__.py +0 -0
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 Pulkit Dhingra
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -55,5 +55,5 @@ publish-pypi: build
|
|
|
55
55
|
@echo "Uploading to PyPI..."
|
|
56
56
|
uv run twine upload dist/* --username __token__ --password "$${PYPI_API_TOKEN}"
|
|
57
57
|
@echo "Published to PyPI!"
|
|
58
|
-
@echo "Install with: pip install
|
|
58
|
+
@echo "Install with: pip install automated-document-parser"
|
|
59
59
|
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: automated-document-parser
|
|
3
|
+
Version: 0.1.4
|
|
4
|
+
Summary: A powerful and automated document parser built with LangChain for intelligent document processing
|
|
5
|
+
Project-URL: Homepage, https://github.com/Pulkit12dhingra/automated-document-parser
|
|
6
|
+
Project-URL: Repository, https://github.com/Pulkit12dhingra/automated-document-parser
|
|
7
|
+
Project-URL: Issues, https://github.com/Pulkit12dhingra/automated-document-parser/issues
|
|
8
|
+
Author-email: Pulkit Dhingra <pulkit12dhingra@example.com>
|
|
9
|
+
License: MIT License
|
|
10
|
+
|
|
11
|
+
Copyright (c) 2025 Pulkit Dhingra
|
|
12
|
+
|
|
13
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
14
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
15
|
+
in the Software without restriction, including without limitation the rights
|
|
16
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
17
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
18
|
+
furnished to do so, subject to the following conditions:
|
|
19
|
+
|
|
20
|
+
The above copyright notice and this permission notice shall be included in all
|
|
21
|
+
copies or substantial portions of the Software.
|
|
22
|
+
|
|
23
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
24
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
25
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
26
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
27
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
28
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
29
|
+
SOFTWARE.
|
|
30
|
+
License-File: LICENSE
|
|
31
|
+
Keywords: document-parser,langchain,nlp
|
|
32
|
+
Classifier: Development Status :: 3 - Alpha
|
|
33
|
+
Classifier: Intended Audience :: Developers
|
|
34
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
35
|
+
Classifier: Programming Language :: Python :: 3
|
|
36
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
37
|
+
Requires-Python: >=3.13
|
|
38
|
+
Requires-Dist: build>=1.3.0
|
|
39
|
+
Requires-Dist: faiss-cpu>=1.12.0
|
|
40
|
+
Requires-Dist: langchain-community>=0.3.0
|
|
41
|
+
Requires-Dist: langchain-huggingface>=1.0.1
|
|
42
|
+
Requires-Dist: langchain-text-splitters>=1.0.0
|
|
43
|
+
Requires-Dist: langchain>=0.3.0
|
|
44
|
+
Requires-Dist: pypdf>=5.1.0
|
|
45
|
+
Requires-Dist: python-docx>=1.1.0
|
|
46
|
+
Requires-Dist: python-magic>=0.4.27
|
|
47
|
+
Requires-Dist: sentence-transformers>=5.1.2
|
|
48
|
+
Requires-Dist: torch>=2.9.0
|
|
49
|
+
Requires-Dist: transformers>=4.57.1
|
|
50
|
+
Provides-Extra: dev
|
|
51
|
+
Requires-Dist: pre-commit>=4.0.1; extra == 'dev'
|
|
52
|
+
Requires-Dist: pytest-cov>=7.0.0; extra == 'dev'
|
|
53
|
+
Requires-Dist: pytest>=8.3.4; extra == 'dev'
|
|
54
|
+
Requires-Dist: ruff>=0.14.4; extra == 'dev'
|
|
55
|
+
Requires-Dist: twine>=6.2.0; extra == 'dev'
|
|
56
|
+
Description-Content-Type: text/markdown
|
|
57
|
+
|
|
58
|
+
# Automated Document Parser
|
|
59
|
+
|
|
60
|
+
[](https://pypi.org/project/automated-document-parser/)
|
|
61
|
+
[](https://pypi.org/project/automated-document-parser/)
|
|
62
|
+
[](https://github.com/Pulkit12dhingra/automated-document-parser/actions/workflows/ci.yml)
|
|
63
|
+
[](https://codecov.io/gh/Pulkit12dhingra/automated-document-parser)
|
|
64
|
+
[](https://opensource.org/licenses/MIT)
|
|
65
|
+
[](https://github.com/astral-sh/ruff)
|
|
66
|
+
|
|
67
|
+
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.
|
|
68
|
+
|
|
69
|
+
## Features
|
|
70
|
+
|
|
71
|
+
- Automatic file type detection based on file extensions
|
|
72
|
+
- Support for multiple document formats: PDF, TXT, CSV, JSON, DOCX, HTML, Markdown
|
|
73
|
+
- Built on LangChain for seamless integration with RAG applications
|
|
74
|
+
- Type-safe implementation with comprehensive error handling
|
|
75
|
+
- Batch processing support for multiple documents
|
|
76
|
+
|
|
77
|
+
## Installation
|
|
78
|
+
|
|
79
|
+
Install from PyPI:
|
|
80
|
+
|
|
81
|
+
```bash
|
|
82
|
+
pip install automated-document-parser
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
Or using uv:
|
|
86
|
+
|
|
87
|
+
```bash
|
|
88
|
+
uv add automated-document-parser
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
## Quick Start
|
|
92
|
+
|
|
93
|
+
### Basic Usage
|
|
94
|
+
|
|
95
|
+
```python
|
|
96
|
+
from automated_document_parser import DocumentParser
|
|
97
|
+
|
|
98
|
+
# Initialize the parser
|
|
99
|
+
parser = DocumentParser()
|
|
100
|
+
|
|
101
|
+
# Parse a single document
|
|
102
|
+
documents = parser.parse("path/to/document.pdf")
|
|
103
|
+
|
|
104
|
+
# Parse multiple documents
|
|
105
|
+
file_paths = ["doc1.pdf", "doc2.txt", "data.csv"]
|
|
106
|
+
parsed_docs = parser.parse_multiple(file_paths)
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
### Working with Parsed Documents
|
|
110
|
+
|
|
111
|
+
```python
|
|
112
|
+
# Access document content and metadata
|
|
113
|
+
for doc in documents:
|
|
114
|
+
print(f"Content: {doc.page_content}")
|
|
115
|
+
print(f"Source: {doc.metadata['source']}")
|
|
116
|
+
print(f"Type: {doc.metadata['file_type']}")
|
|
117
|
+
```
|
|
118
|
+
## License
|
|
119
|
+
|
|
120
|
+
MIT License - see LICENSE file for details.
|
|
121
|
+
|
|
122
|
+
## Contributing
|
|
123
|
+
|
|
124
|
+
Contributions are welcome! Please feel free to submit a Pull Request.
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
# Automated Document Parser
|
|
2
|
+
|
|
3
|
+
[](https://pypi.org/project/automated-document-parser/)
|
|
4
|
+
[](https://pypi.org/project/automated-document-parser/)
|
|
5
|
+
[](https://github.com/Pulkit12dhingra/automated-document-parser/actions/workflows/ci.yml)
|
|
6
|
+
[](https://codecov.io/gh/Pulkit12dhingra/automated-document-parser)
|
|
7
|
+
[](https://opensource.org/licenses/MIT)
|
|
8
|
+
[](https://github.com/astral-sh/ruff)
|
|
9
|
+
|
|
10
|
+
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.
|
|
11
|
+
|
|
12
|
+
## Features
|
|
13
|
+
|
|
14
|
+
- Automatic file type detection based on file extensions
|
|
15
|
+
- Support for multiple document formats: PDF, TXT, CSV, JSON, DOCX, HTML, Markdown
|
|
16
|
+
- Built on LangChain for seamless integration with RAG applications
|
|
17
|
+
- Type-safe implementation with comprehensive error handling
|
|
18
|
+
- Batch processing support for multiple documents
|
|
19
|
+
|
|
20
|
+
## Installation
|
|
21
|
+
|
|
22
|
+
Install from PyPI:
|
|
23
|
+
|
|
24
|
+
```bash
|
|
25
|
+
pip install automated-document-parser
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
Or using uv:
|
|
29
|
+
|
|
30
|
+
```bash
|
|
31
|
+
uv add automated-document-parser
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
## Quick Start
|
|
35
|
+
|
|
36
|
+
### Basic Usage
|
|
37
|
+
|
|
38
|
+
```python
|
|
39
|
+
from automated_document_parser import DocumentParser
|
|
40
|
+
|
|
41
|
+
# Initialize the parser
|
|
42
|
+
parser = DocumentParser()
|
|
43
|
+
|
|
44
|
+
# Parse a single document
|
|
45
|
+
documents = parser.parse("path/to/document.pdf")
|
|
46
|
+
|
|
47
|
+
# Parse multiple documents
|
|
48
|
+
file_paths = ["doc1.pdf", "doc2.txt", "data.csv"]
|
|
49
|
+
parsed_docs = parser.parse_multiple(file_paths)
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
### Working with Parsed Documents
|
|
53
|
+
|
|
54
|
+
```python
|
|
55
|
+
# Access document content and metadata
|
|
56
|
+
for doc in documents:
|
|
57
|
+
print(f"Content: {doc.page_content}")
|
|
58
|
+
print(f"Source: {doc.metadata['source']}")
|
|
59
|
+
print(f"Type: {doc.metadata['file_type']}")
|
|
60
|
+
```
|
|
61
|
+
## License
|
|
62
|
+
|
|
63
|
+
MIT License - see LICENSE file for details.
|
|
64
|
+
|
|
65
|
+
## Contributing
|
|
66
|
+
|
|
67
|
+
Contributions are welcome! Please feel free to submit a Pull Request.
|