Skip to main content

Automated budget report generator for grant management with Excel input and Word output

Project description

autorpt

image image

Automated content discovery and report generator with Excel and Markdown support

Features

  • Auto-Discovery: Automatically finds and combines all .md and .xlsx files in your content folder
  • Excel Table Integration: Any Excel file becomes a formatted table in your report
  • Markdown Content: Write content in markdown format for easy editing and version control
  • Mixed Content Support: Combine multiple markdown files and Excel tables in one report
  • Customizable Content: Use example files or create your own content structure
  • Command Line Interface: Simple commands for different workflows
  • Python API: Use programmatically in your own scripts
  • Visual Charts: Automatically generates budget comparison charts
  • Professional Formatting: Clean, business-ready Word document output
  • PDF Conversion: Built-in PDF generation from Word documents

Quick Start

Installation

pip install autorpt

Basic Usage (Recommended: Folder-Based Workflow)

  1. Prepare your content in the reports/ folder:

    • Copy or edit the provided example files:
      • reports/budget.xlsx (your budget data)
      • reports/content.md (custom content sections)
    • Or add your own .md (markdown) and .xlsx (Excel) files to the reports/ folder.
  2. Generate a report from all content in the folder:

    # Auto-discover and combine all .md and .xlsx files in reports/
    autorpt --auto-content
    
    • This will create a Word document in the reports/ folder using all detected files.
  3. Convert the generated Word report to PDF (optional):

    # Convert the latest report in reports/ to PDF
    autorpt --pdf-only
    

Advanced Usage (Custom Files)

You can still specify custom files if needed:

# Specify input/output files
autorpt --input my_budget.xlsx --output custom_report.docx

File Structure

Your project directory should contain:

your_project/
├── reports/             # Content folder for your files
│   ├── budget.xlsx      # Your budget data (example provided)
│   ├── content.md       # Custom content sections (example provided)
│   ├── your_data.xlsx   # Any additional Excel files
│   ├── notes.md         # Any additional markdown files
│   └── generated_reports.docx  # Auto-generated reports
└── (other project files)

Customizing Content

Add your content files to the reports/ folder:

Example markdown file (reports/project_notes.md):

# Summary

Your custom summary content here...

# Deliverables Progress

-   Custom deliverable 1
-   Custom deliverable 2

# Challenges

Current project challenges...

# Next Period Activities

Planned activities...

Example Excel file: Any .xlsx file with tabular data will be automatically formatted as tables in your report.

Command Line Options

autorpt --help

# Basic report generation with auto-discovery
autorpt --auto-content               # Auto-discover files in reports/
autorpt --auto-content --content-folder "data"  # Use custom folder

# Traditional single-file approach
autorpt --input budget.xlsx --output report.docx --verbose

# PDF generation
autorpt --pdf                     # Generate report + PDF
autorpt --pdf-only                # Convert latest report to PDF
autorpt --pdf-all                 # Convert all reports to PDF

# Advanced content mixing
autorpt --markdown notes.md       # Add specific markdown file
autorpt --excel data.xlsx         # Add specific Excel file
autorpt --mixed file1.md data.xlsx  # Add multiple specific files

Key Options:

  • --auto-content: Auto-discover and combine all .md and .xlsx files from content folder
  • --content-folder: Specify which folder to scan (default: reports)
  • --input, -i: Input Excel file (default: budget.xlsx)
  • --output, -o: Output Word document filename
  • --markdown, -m: Add specific markdown file to report
  • --excel, -e: Add specific Excel file as table
  • --mixed: Add multiple specific files (markdown and/or Excel)
  • --pdf, -p: Also convert the report to PDF
  • --pdf-only: Convert most recent report to PDF (no new generation)
  • --pdf-all: Convert all Word reports to PDF
  • --verbose, -v: Enable verbose output

PDF Conversion

autorpt includes built-in PDF conversion capabilities. See the pdf/ folder for:

  • Complete PDF documentation (pdf/PDF_README.md)
  • Helper scripts for easy PDF operations
  • Simple command aliases setup

Quick PDF usage:

# Built-in commands
autorpt --pdf                     # Generate new report + PDF
autorpt --pdf-only                # Convert latest report to PDF

# Helper scripts (from pdf/ folder)
.\pdf\setup-aliases.ps1           # Set up simple aliases
pdf-latest                        # Then use: convert latest to PDF
pdf-new                           # Generate new report + PDF

Output

The package generates:

  • Professional Word document in reports/ folder with combined content
  • Automatic integration of all markdown content as formatted sections
  • Excel data converted to professional tables with proper formatting
  • Optional PDF conversion of reports
  • Budget comparison charts (when budget data is included)
  • Summary statistics and insights from your data
  • Clean, business-ready formatting throughout

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

autorpt-0.1.2.tar.gz (24.3 kB view details)

Uploaded Source

File details

Details for the file autorpt-0.1.2.tar.gz.

File metadata

  • Download URL: autorpt-0.1.2.tar.gz
  • Upload date:
  • Size: 24.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for autorpt-0.1.2.tar.gz
Algorithm Hash digest
SHA256 957f7a4a84d6e9652023d112fe4793e681288c19fafc5413d5362b1debea1f94
MD5 48a63cf2d557db2e881b63cd5148b3f8
BLAKE2b-256 37e286cd921c39d56222037228c5784fe2f65b2b4f75a099bf52cfb46c604da1

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