Skip to main content

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

Metadata

Release files for PyDocflow 0.1.9

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

Source distribution (sdist)

Source distribution for PyDocflow 0.1.9
File Size Uploaded Provenance Actions
pydocflow-0.1.9.tar.gz 106.5 kB Without provenance Details for pydocflow-0.1.9.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for PyDocflow 0.1.9
File Interpreter ABI Platform Actions
pydocflow-0.1.9-py3-none-any.whl Python 3 none any Details for pydocflow-0.1.9-py3-none-any.whl

Total release size: 209.7 kB

Release files / pydocflow-0.1.9.tar.gz

Download URL pydocflow-0.1.9.tar.gz
Size 106.5 kB
Tags Source
SHA-256 checksum
How to use checksums
d06522d8c0d442ef4142f8f13f70be618eb16a13b7fdf0d7c59f2f5bdf50aa46
BLAKE2b-256 checksum
How to use checksums
14133151996d23ced84f61148953458369a3d17d45d490169517d424ff8f0e25
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.12

Release files / pydocflow-0.1.9-py3-none-any.whl

Download URL pydocflow-0.1.9-py3-none-any.whl
Size 103.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6f41c068531e702095a22d3dc439d97b52a2a95a70bce544f55e47777cce643b
BLAKE2b-256 checksum
How to use checksums
39c2b15f8af0279048293b115e113f1ec1761825047dec2c71084c7e95fdf00d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.12

Security for PyDocflow 0.1.9

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.9 This release

2 release files No provenance

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