No project description provided
Project description
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
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
viterbo-0.1.0.tar.gz
(4.0 kB
view details)
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 viterbo-0.1.0.tar.gz.
File metadata
- Download URL: viterbo-0.1.0.tar.gz
- Upload date:
- Size: 4.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.12.3 Linux/6.11.0-24-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
97e4a9082a7f93aa295c960689c138710676d501322c7192a3746ef9bcc653ba
|
|
| MD5 |
c0bf0050a914addaf653fe6d13a800d2
|
|
| BLAKE2b-256 |
227406116cd8527dd5f81697095972fd2877233da9d7d2a558893722cafd96ea
|
File details
Details for the file viterbo-0.1.0-py3-none-any.whl.
File metadata
- Download URL: viterbo-0.1.0-py3-none-any.whl
- Upload date:
- Size: 5.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.12.3 Linux/6.11.0-24-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
07f06bf602e6808567ef89ad3e4e293e8a7090de5b632a91ab262196a8b3d419
|
|
| MD5 |
0bd3ce260e43c2b6303747feb7ef3149
|
|
| BLAKE2b-256 |
1eaa369fc3a0eb7ddecfda014f11f24a76b0b56da56806caf4657a1ddba09b9a
|