A robust, lightweight, and developer-friendly document management and transport system for Python.
Project description
DocFlow
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 directly from GitHub:
pip install git+https://github.com/tommyGPT2S/DocFlow.git
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pydocflow-0.1.0.tar.gz.
File metadata
- Download URL: pydocflow-0.1.0.tar.gz
- Upload date:
- Size: 100.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b88666f00a034cd16d317db04fff36d38a25ef3d14974c18e1246a21d0e1a3bb
|
|
| MD5 |
e477cfce8016ea9adecc5029c74ec57d
|
|
| BLAKE2b-256 |
603e9c1b9e24603ed5aba8a49a6e855f97ae91e5b70813fa749ad4018978d26a
|
File details
Details for the file pydocflow-0.1.0-py3-none-any.whl.
File metadata
- Download URL: pydocflow-0.1.0-py3-none-any.whl
- Upload date:
- Size: 100.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
66b01f01cb91593c5012d759b4ebe8a09aa76e2d89a2c3505a2431562459fc84
|
|
| MD5 |
c80614a059938ee855d2bf16560af71a
|
|
| BLAKE2b-256 |
c22df7a3dc9ce14ab0b188e73b9bc9813f4ba681bb39d3203ac850450375a5c4
|