Skip to main content

A CLI tool to convert project files to PDF

Project description

proj2pdf

A command-line tool to convert your project files into a single PDF document. It supports various file types including:

  • Python files (.py)
  • Jupyter notebooks (.ipynb)
  • Markdown files (.md)
  • Various code files (.js, .ts, .java, .cpp, .c, .go, .rs, .rb, .php, .cs, .scala, .kt, .swift, .r, .sql, .sh)
  • Existing PDF files

Installation

You can install proj2pdf using pip:

pip install proj2pdf

Usage

After installation, you can use the proj2pdf command from anywhere in your terminal:

# Convert files in current directory
proj2pdf

# Specify a different directory
proj2pdf -d /path/to/your/project

# Specify output file name
proj2pdf -o output.pdf

# Get help
proj2pdf --help

Features

  • Converts various file types to PDF with syntax highlighting
  • Maintains original formatting and structure
  • Supports recursive directory scanning
  • Merges multiple PDFs into a single document
  • Preserves code syntax highlighting
  • Handles Jupyter notebooks with output cells
  • Supports markdown rendering

Requirements

  • Python 3.7 or higher
  • Required dependencies will be automatically installed

License

This project is licensed under the MIT License - see the LICENSE file for details.

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

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

proj2pdf-0.1.0.tar.gz (6.0 kB view details)

Uploaded Source

Built Distribution

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

proj2pdf-0.1.0-py3-none-any.whl (7.1 kB view details)

Uploaded Python 3

File details

Details for the file proj2pdf-0.1.0.tar.gz.

File metadata

  • Download URL: proj2pdf-0.1.0.tar.gz
  • Upload date:
  • Size: 6.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.14

File hashes

Hashes for proj2pdf-0.1.0.tar.gz
Algorithm Hash digest
SHA256 2b24756c721061d04539ca34427610ece916ed9bbef6ad5d5506758a71a101ea
MD5 1ddce8f5c5673f571272a6601bad2a5a
BLAKE2b-256 fc12d44b1251711d2f38de5bf3c6a3c3af9e272c7364ab9f2ebe6b94a7707224

See more details on using hashes here.

File details

Details for the file proj2pdf-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: proj2pdf-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 7.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.14

File hashes

Hashes for proj2pdf-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7a595254abfd23b101443e949b613d89724770e743452a94941ee8c62da5301f
MD5 75481dd0df39a79deb3162c82f13c049
BLAKE2b-256 842f969461a92de586cfc6325c910c7935685a5ad208f8bd21452ae47cd16153

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