Skip to main content

Pyffice

    **Unified Python Office Automation & Productivity Suite**
    
    Pyffice provides a unified Python interface for document processing, CAD, media handling, email, calendar, and comprehensive office automation with an extensible port architecture.
    
    ---
    
    ## Features
    
    ### Document Processing
    - **Word Processing**: DOC, DOCX, ODT, RTF, PDF, LaTeX
    - **Spreadsheets**: XLS, XLSX, ODS, CSV
    - **Presentations**: PPT, PPTX, ODP
    - **Ebooks**: EPUB, MOBI, AZW
    - **Technical**: Markdown, reStructuredText, AsciiDoc
    
    ### Media Handling
    - **Images**: PNG, JPG, GIF, BMP, WEBP, HEIC, SVG, TIFF
    - **Video**: MP4, AVI, MKV, MOV, WEBM
    - **Audio**: MP3, WAV, FLAC, OGG, M4A, AAC
    - **CAD**: DXF, DWG (limited)
    
    ### Office Integration
    - **Email**: SMTP/IMAP with send/receive capabilities
    - **Calendar**: iCal support with event management
    - **Contacts**: Contact management and search
    - **Tasks**: Task and project tracking
    
    ### Automation & Workflows
    - **Workflows**: Custom workflow creation and execution
    - **Scripts**: Python script execution framework
    - **CLI**: 46 command-line operations (see `python -m pyffice --help`)
    - **Ports**: Extensible architecture for custom integrations
    
    ### Data & Analytics
    - **Charts**: Chart generation and visualization
    - **Analytics**: Data analytics and reporting
    - **Databases**: Database connectivity (SQLite, PostgreSQL)
    - **Matrix**: Matrix operations and calculations
    
    ### Web & Utilities
    - **Web**: URL fetching, parsing, scraping
    - **Forms**: Form creation and validation
    - **Tags**: Tagging system for organization
    - **Filesystems**: Virtual filesystem management
    
    ---
    
    ## Installation
    
    ### From PyPI
    ```bash
    pip install pyffice
    ```
    
    ### From Source
    ```bash
    git clone https://github.com/solubrew/pyffice.git
    cd pyffice
    pip install -e .
    ```
    
    ### Development Installation
    ```bash
    git clone https://github.com/solubrew/pyffice.git
    cd pyffice
    pip install -e ".[dev]"
    pip install pylint pytest bandit
    ```
    
    ---
    
    ## Quick Start
    
    ### CLI Usage
    
    ```bash
    # Show all 22 commands
    python -m pyffice --help
    
    # Example subcommands (verified working as of T-NEW-044):
    python -m pyffice document-info input.pdf
    python -m pyffice document-convert input.docx output.pdf
    python -m pyffice formats
    ```
    
    ### Python API
    
    The top-level class is `PyfficeCodex` (re-exported from
    `pyffice.pyffice`). Example (T-NEW-043):
    
    ```python
    from pyffice import PyfficeCodex
    
    # Initialize
    codex = PyfficeCodex()
    
    # Add a document (real public method on PyfficeCodex /
    # PyfficeDocumentManager)
    codex.add_document(path="input.docx", doc_type="document")
    codex.add_change("created", None, "input.docx")
    ```
    
    ---
    
    ## Documentation
    
    | Document | Description |
    |----------|-------------|
    | [CLI.md](CLI.md) | Complete CLI command reference |
    | [AGENT.md](AGENT.md) | Agent system documentation |
    | [STATE.md](STATE.md) | Project state and roadmap |
    | [CHANGES.md](CHANGES.md) | Changelog and release notes |
    | [CONTRIBUTING.md](CONTRIBUTING.md) | Contribution guidelines |
    
    ---
    
    ## Architecture
    
    ### Port System
    
    Pyffice uses a flexible port architecture for extensibility:
    
    ```python
    from pyffice.ports import DocumentPort, ImagePort, MediaPort
    
    # Create custom document handler
    class MyHandler(DocumentPort):
        def read(self, path):
            # Custom implementation
            pass
        
        def write(self, path, content):
            # Custom implementation
            pass
    ```
    
    ### Module Structure
    
    ```
    pyffice/
    ├── calendars/      # Calendar & event management
    ├── charts/         # Chart generation
    ├── config/         # Configuration management
    ├── contacts/       # Contact management
    ├── filesystems/    # Virtual filesystem
    ├── forms/          # Form handling
    ├── images/         # Image processing
    ├── items/          # Item utilities & colors
    ├── matrix/         # Matrix operations
    ├── notebooks/      # Jupyter notebooks
    ├── ports/          # Extensible port system
    ├── script/         # Script execution
    ├── skills/         # Skill framework
    ├── tags/           # Tagging system
    ├── updates/        # Update management
    ├── web/            # Web utilities
    ├── workflows/      # Workflow automation
    ├── cli.py          # CLI interface (46 commands)
    ├── document.py     # Document processing
    └── pyffice.py      # Main entry point
    ```
    
    ---
    
    ## Configuration
    
    Create `pyffice.yaml` in your project root:
    
    ```yaml
    # General settings
    general:
      debug: false
      log_level: INFO
    
    # Email configuration
    email:
      smtp_host: smtp.gmail.com
      smtp_port: 587
      imap_host: imap.gmail.com
      imap_port: 993
    
    # Database configuration
    database:
      default: sqlite
      connections:
        sqlite:
          path: ./data/pyffice.db
        
    # Workflow configuration
    workflows:
      default_timeout: 3600
      max_parallel: 4
    ```
    
    ---
    
    ## Development
    
    ### Running Tests
    ```bash
    pytest tests/
    ```
    
    ### Code Quality
    ```bash
    # Linting
    pylint pyffice/
    
    # Security
    bandit -r pyffice/
    
    # Type checking
    pyright pyffice/
    ```
    
    ### Contributing
    
    See [CONTRIBUTING.md](CONTRIBUTING.md) for:
    - Development setup
    - Coding standards
    - Pull request workflow
    - Release process
    
    ---
    
    ## License
    
    MIT License - See [LICENSE](LICENSE) for details.
    
    ---
    
    ## Support
    
    - **Issues**: https://github.com/solubrew/pyffice/issues
    - **Discussions**: https://github.com/solubrew/pyffice/discussions

Metadata

Release files for pyffice 0.0.1.post1

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

Source distribution (sdist)

Source distribution for pyffice 0.0.1.post1
File Size Uploaded Provenance Actions
pyffice-0.0.1.post1.tar.gz 233.6 kB Without provenance Details for pyffice-0.0.1.post1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pyffice 0.0.1.post1
File Interpreter ABI Platform Actions
pyffice-0.0.1.post1-cp312-cp312-manylinux_2_39_x86_64.whl CPython 3.12 CPython 3.12 Linux glibc 2.39+ x86-64 Details for pyffice-0.0.1.post1-cp312-cp312-manylinux_2_39_x86_64.whl

Total release size: 563.3 kB

Release files / pyffice-0.0.1.post1.tar.gz

Download URL pyffice-0.0.1.post1.tar.gz
Size 233.6 kB
Tags Source
SHA-256 checksum
How to use checksums
4f3b2af47fc15ab224883252f537ba27da1314b4c85d8808e81d30ea123d504a
BLAKE2b-256 checksum
How to use checksums
90588898b57cfe860fea9ffd7b2dfb119097c64ae9fb2187a6198e1fa4e8b016
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.3

Release files / pyffice-0.0.1.post1-cp312-cp312-manylinux_2_39_x86_64.whl

Download URL pyffice-0.0.1.post1-cp312-cp312-manylinux_2_39_x86_64.whl
Size 329.7 kB
Tags CPython 3.12 Linux glibc 2.39+ x86-64
SHA-256 checksum
How to use checksums
f07901ce6aff311bda195605011708fe40d357689623ba53e740339666c4c9b5
BLAKE2b-256 checksum
How to use checksums
3f69366d9f4688f422d30a7d7ae6b3f695fa7d031a664566a2994e7cc9b5a6a5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.3

Security for pyffice 0.0.1.post1

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.

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