Skip to main content

A robust, lightweight, and developer friendly document management and transport system for Python

Project description

DocEX

License Python Build

DocEX Architecture

DocEX is a robust, extensible document management and transport system for Python. It supports multiple storage backends, metadata management, and operation tracking, with a unified API for local, SFTP, HTTP, and other protocols.

Features

  • 📁 Document storage and metadata management
  • 🔄 Transport layer with pluggable protocols (local, SFTP, HTTP, etc.)
  • 🛣️ Configurable transport routes and routing rules
  • 📝 Operation and audit tracking
  • 🧩 Extensible architecture for new protocols and workflows

Installation

Install from PyPI:

pip install docex

If you want to use PDF processing features (e.g., custom PDF processors), also install:

pip install pdfminer.six

Quick Start

Before using DocEX in your code, you must initialize the system using the CLI:

# Run this once to set up configuration and database
$ docex init

Then you can use the Python API (minimal example):

from docex import DocEX
from pathlib import Path

# Create DocEX instance (will check initialization internally)
docEX = DocEX()

# Create a basket
basket = docEX.basket('mybasket')

# Create a simple text file
hello_file = Path('hello.txt')
hello_file.write_text('Hello scos.ai!')

# Add the document to the basket
doc = basket.add(str(hello_file))

# Print document details
print(doc.get_details())

hello_file.unlink()

Additional examples can be found in examples/ folder.

Configuration

Configure routes and storage in default_config.yaml:

transport_config:
  routes:
    - name: local_backup
      purpose: backup
      protocol: local
      config:
        type: local
        name: local_backup_transport
        base_path: /path/to/backup
        create_dirs: true
      can_upload: true
      can_download: true
      enabled: true
  default_route: local_backup

Documentation

Contributing

Contributions are welcome! Please see CONTRIBUTING.md for guidelines.

License

MIT License

Project details


Download files

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

Source Distribution

docex-2.0.3.tar.gz (1.1 MB view details)

Uploaded Source

Built Distribution

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

docex-2.0.3-py3-none-any.whl (1.1 MB view details)

Uploaded Python 3

File details

Details for the file docex-2.0.3.tar.gz.

File metadata

  • Download URL: docex-2.0.3.tar.gz
  • Upload date:
  • Size: 1.1 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.12

File hashes

Hashes for docex-2.0.3.tar.gz
Algorithm Hash digest
SHA256 3bd655fa81ef91ef94b32cf03a7eae4a9a16f43d9b9a75f4b93ca5b6a5bbf79b
MD5 ea6cd1c64ee708b31c7c48d8d1896660
BLAKE2b-256 b5a2d72b105377f94b887ae1ff726a6670921ec0bd86fda16b15d35f6962fbde

See more details on using hashes here.

File details

Details for the file docex-2.0.3-py3-none-any.whl.

File metadata

  • Download URL: docex-2.0.3-py3-none-any.whl
  • Upload date:
  • Size: 1.1 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.12

File hashes

Hashes for docex-2.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 4a6cfc0880dc261898cd65e8dc6643e66a125bcf6ca7feb668016e4570390128
MD5 df7b4ef1eacf1138db023a890668d5f3
BLAKE2b-256 b527d0797205b26e2af8496c2bed52574b0a445e28c1c24f8b9834147a01acbf

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