Skip to main content

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

Project description

DocFlow

License Python Build

DocFlow Architecture

DocFlow 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 pydocflow

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

pip install pdfminer.six

Quick Start

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

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

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

from docflow import DocFlow
from pathlib import Path

# Create DocFlow instance (will check initialization internally)
docflow = DocFlow()

# Create a basket
basket = docflow.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-0.2.0.tar.gz (157.1 kB view details)

Uploaded Source

Built Distribution

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

docex-0.2.0-py3-none-any.whl (172.8 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for docex-0.2.0.tar.gz
Algorithm Hash digest
SHA256 85bedc5bb7d9271cacfc8007c72f2beb7f8da7ab480db807a5cb0d1f83586ff4
MD5 00c648fe9937a6637893925ffa6f78ca
BLAKE2b-256 d4ba168ff039fd07a680a58685a6684e83125f8a7620fa0c586bf9d70762b0ef

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for docex-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 bb9dc37d2e3be3e02419e63b86624f7130cce8bf91c7a148bfd05bbfeba991db
MD5 5cc7119ee3dcf71452f612f89958425c
BLAKE2b-256 4c384ba7e6ae8b27d4f341ece2c4a99534d6f0a11057999a1a9cb81fdd19409d

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