Skip to main content

AutoLoader

AutoLoader is a Python utility that automatically loads and processes both structured and unstructured documents using the LangChain framework.

It supports:

  • Structured files: CSV, Excel (.csv, .xlsx, .xls)
  • Unstructured files: PDFs, Word docs, PowerPoints, Emails, and more

📦 Features

  • ✅ Load files from a single file or a directory
  • ✅ Automatically detects file type
  • ✅ Converts rows to langchain.schema.Document objects
  • ✅ Extracts metadata (source file, sheet name)
  • ✅ Logs file loading progress and errors
  • ✅ Supports LangChain-compatible document structure

🛠 Installation

pip install pandas langchain langchain-unstructured

🚀 Usage

from autoloader import AutoLoader

# Load from a single file or directory
loader = AutoLoader(path="./data")

# Process all supported files
documents = loader.load()

# Join and format documents into a single string
structured_docs = "\n\n".join(
    f"[Source: {doc.metadata.get('source', 'unknown')}]\n{doc.page_content}"
    for doc in documents
)

# Print the first 1000 characters
print(structured_docs[:1000])
 

Release files for auto-doc-loader 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for auto-doc-loader 0.1.0
File Size Uploaded
auto_doc_loader-0.1.0.tar.gz 4.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for auto-doc-loader 0.1.0
File Interpreter ABI Platform
auto_doc_loader-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 8.8 kB

Release files / auto_doc_loader-0.1.0.tar.gz

Download URL auto_doc_loader-0.1.0.tar.gz
Size 4.1 kB
Tags Source
SHA-256 checksum
How to use checksums
100ae0948121eedcdbea2ef69531cfbd0c5e0801e9f8f31e1846ebac43cd1313
BLAKE2b-256 checksum
How to use checksums
734747f275992573d29a25d0a5159aeae83a58f6f9a6c3597494c5d1ec3d3628
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.3

Release files / auto_doc_loader-0.1.0-py3-none-any.whl

Download URL auto_doc_loader-0.1.0-py3-none-any.whl
Size 4.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
cc39a1b34318eb91012cc85b97d107857e251232d30377f3df9ef31b19c22a9d
BLAKE2b-256 checksum
How to use checksums
f963b8a8597aeb8338074a65b769f00040dedca7a4f8ebbfc88981d31d0964d4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.3

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page