Skip to main content

Viterbo

A tool to collect and document Python code from multiple files.

Installation

pip install viterbo

Usage

viterbo source_directory output_file [--include-docstrings] [--add-line-numbers]

Options

  • --include-docstrings: Extract and include docstrings from modules, classes, and functions
  • --add-line-numbers: Add line numbers to the code

Example

viterbo ./my_project ./project_documentation.txt --include-docstrings

Features

  • Collects Python code from all files within a directory (including subdirectories)
  • Organizes code with clear section headers showing file paths
  • Optionally extracts and includes docstrings from modules, classes, and functions
  • Offers line numbering for easier reference
  • Creates a well-formatted documentation file that's easy to read and share

Development

Setting up the development environment

# Clone the repository
git clone https://github.com/deinnovatie/viterbo.git
cd viterbo

# Install development dependencies
poetry install

Running tests

poetry run pytest

Building the package

poetry build

License

MIT

Metadata

Release files for viterbo 0.1.0

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

Source distribution (sdist)

Source distribution for viterbo 0.1.0
File Size Uploaded
viterbo-0.1.0.tar.gz 4.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for viterbo 0.1.0
File Interpreter ABI Platform
viterbo-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 9.2 kB

Release files / viterbo-0.1.0.tar.gz

Download URL viterbo-0.1.0.tar.gz
Size 4.0 kB
Tags Source
SHA-256 checksum
How to use checksums
97e4a9082a7f93aa295c960689c138710676d501322c7192a3746ef9bcc653ba
BLAKE2b-256 checksum
How to use checksums
227406116cd8527dd5f81697095972fd2877233da9d7d2a558893722cafd96ea
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.3 CPython/3.12.3 Linux/6.11.0-24-generic

Release files / viterbo-0.1.0-py3-none-any.whl

Download URL viterbo-0.1.0-py3-none-any.whl
Size 5.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
07f06bf602e6808567ef89ad3e4e293e8a7090de5b632a91ab262196a8b3d419
BLAKE2b-256 checksum
How to use checksums
1eaa369fc3a0eb7ddecfda014f11f24a76b0b56da56806caf4657a1ddba09b9a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.3 CPython/3.12.3 Linux/6.11.0-24-generic

Release history Release notifications | RSS feed

0.3.5

2 release files

0.3.3

2 release files

0.3.2

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.0

2 release files

This release

0.1.0 This release

2 release files

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