A CLI tool to aggregate codebase into a single Markdown file
Project description
Code Collator
Code Collator is a powerful CLI tool designed to streamline your code review and documentation process by collating your entire codebase into a single, organised Markdown file. This is particularly useful for sharing with AI tools like ChatGPT or Claude for analysis, troubleshooting, or documentation.
Use Case
Have you ever needed to provide a comprehensive overview of your codebase for a code review, AI analysis, or detailed documentation? Code Collator simplifies this task by aggregating all your code files into a single Markdown file. This makes it easy to:
- Share your code with AI tools like ChatGPT or Claude for intelligent analysis.
- Generate a unified document for code reviews or team collaboration.
- Create comprehensive documentation for your projects with minimal effort.
Features
- Full Codebase Collation: Collates all files in the specified directory and subdirectories into one Markdown file.
- .gitignore Support: Automatically ignores files specified in the
.gitignore
file if one exists. - Customizable Output: Outputs a single Markdown file named
collated-code.md
by default, with options to specify the path to the codebase directory and output file name. - Binary File Inclusion: Includes binary files such as images in the output with a note about their file type.
- Comment Exclusion Option: Allows users to exclude comments and docstrings from the collated code.
- Help Command: Provides a help command to display usage instructions.
Demo Video
Click the image above to watch a hands-on demo of how Code Collator works.
Installation
You can easily install Code Collator using pip:
pip install code-collator
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file code_collator-0.20.0.tar.gz
.
File metadata
- Download URL: code_collator-0.20.0.tar.gz
- Upload date:
- Size: 5.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.0 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3d92c96cbdf3c9dbcb699d34550f4dbb09cfe7454bbc230450ab010042c51cf3 |
|
MD5 | 9424e9b15575609ca516fbc988ac0396 |
|
BLAKE2b-256 | f75e3933c810013cbb7260842838c990c612b3173d864e0703be540870d79b01 |
File details
Details for the file code_collator-0.20.0-py3-none-any.whl
.
File metadata
- Download URL: code_collator-0.20.0-py3-none-any.whl
- Upload date:
- Size: 4.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.0 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 84a51d737385ee7759cbeb2e1810120a9191008494a65203ccb4e6cafdfd11c3 |
|
MD5 | 421c9b8663e92a51487120bbbebdc05d |
|
BLAKE2b-256 | 2560c4e4e39feae6876a99499251c09bfdfefdee5536c05e8c8d33332d0d6181 |