No project description provided
Project description
Codebase Context
Codebase Context is a simple Python tool that generates a textual representation of your project's codebase. It creates a folder tree view along with the contents of files (by default, Python files) to help you get a quick overview of your project's structure.
Features
- Folder Tree Generation: Builds a visual tree of your project directories.
- File Content Aggregation: Appends file contents for files matching specified endings.
- Customizable Filtering: Supports configuration for file endings, ignoring hidden files/folders, and more via a YAML config file.
- Easy to Use: Run the module directly from the command line with minimal configuration.
Installation
Install the package using pip:
pip install codebase-context
Usage
You can run the tool from the command line:
python -m codebase_context <module> [--outfile <output_file>] [--endings <file_endings>] [--config <config_file>] [--overwrite]
For example, to generate a codebase file for a module named my_module:
python -m codebase_context my_module
During execution, if the output file already exists, the script will prompt you to confirm whether to overwrite it. You can bypass this prompt by using the --overwrite flag.
Configuration
By default, the tool looks for a generate_codebase.yaml configuration file in the target module's root directory. This file allows you to customize:
File endings to include (e.g., .py). Hidden file and directory handling. Patterns for ignoring specific files or directories. If no configuration file is provided, default settings are used.
License
This project is licensed under the MIT License.
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
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 codebase_context-0.1.5.tar.gz.
File metadata
- Download URL: codebase_context-0.1.5.tar.gz
- Upload date:
- Size: 11.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9a6e432db96ffdcecc7781c09243cb39c49d6fc0ff0f5cda6e5753b4139a09e0
|
|
| MD5 |
03874762ea773a4dfe04c87706c76673
|
|
| BLAKE2b-256 |
24d11c51bcb2dd76729b72faa23a44643b439a822a1e57d1c26d4a8a3f2337b4
|
Provenance
The following attestation bundles were made for codebase_context-0.1.5.tar.gz:
Publisher:
version_publish_main.yml on JulianKimmig/codebase_context
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
codebase_context-0.1.5.tar.gz -
Subject digest:
9a6e432db96ffdcecc7781c09243cb39c49d6fc0ff0f5cda6e5753b4139a09e0 - Sigstore transparency entry: 230085867
- Sigstore integration time:
-
Permalink:
JulianKimmig/codebase_context@3c7489adba8f608b99366da9b679b0f578a0574a -
Branch / Tag:
refs/heads/main - Owner: https://github.com/JulianKimmig
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
version_publish_main.yml@3c7489adba8f608b99366da9b679b0f578a0574a -
Trigger Event:
push
-
Statement type:
File details
Details for the file codebase_context-0.1.5-py3-none-any.whl.
File metadata
- Download URL: codebase_context-0.1.5-py3-none-any.whl
- Upload date:
- Size: 11.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b4c572c591f4f1004bcb2ff7be58c4ef4d21a5deb3e6bab4c4807e401b811a18
|
|
| MD5 |
e3decf3945a767735476207b062e109e
|
|
| BLAKE2b-256 |
20fac76a3c15383eb99e92779ec0897c205dc14f1e5f67b6fd893f87121f3731
|
Provenance
The following attestation bundles were made for codebase_context-0.1.5-py3-none-any.whl:
Publisher:
version_publish_main.yml on JulianKimmig/codebase_context
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
codebase_context-0.1.5-py3-none-any.whl -
Subject digest:
b4c572c591f4f1004bcb2ff7be58c4ef4d21a5deb3e6bab4c4807e401b811a18 - Sigstore transparency entry: 230085870
- Sigstore integration time:
-
Permalink:
JulianKimmig/codebase_context@3c7489adba8f608b99366da9b679b0f578a0574a -
Branch / Tag:
refs/heads/main - Owner: https://github.com/JulianKimmig
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
version_publish_main.yml@3c7489adba8f608b99366da9b679b0f578a0574a -
Trigger Event:
push
-
Statement type: