Skip to main content

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

codebase_context-0.1.5.tar.gz (11.0 kB view details)

Uploaded Source

Built Distribution

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

codebase_context-0.1.5-py3-none-any.whl (11.1 kB view details)

Uploaded Python 3

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

Hashes for codebase_context-0.1.5.tar.gz
Algorithm Hash digest
SHA256 9a6e432db96ffdcecc7781c09243cb39c49d6fc0ff0f5cda6e5753b4139a09e0
MD5 03874762ea773a4dfe04c87706c76673
BLAKE2b-256 24d11c51bcb2dd76729b72faa23a44643b439a822a1e57d1c26d4a8a3f2337b4

See more details on using hashes here.

Provenance

The following attestation bundles were made for codebase_context-0.1.5.tar.gz:

Publisher: version_publish_main.yml on JulianKimmig/codebase_context

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file codebase_context-0.1.5-py3-none-any.whl.

File metadata

File hashes

Hashes for codebase_context-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 b4c572c591f4f1004bcb2ff7be58c4ef4d21a5deb3e6bab4c4807e401b811a18
MD5 e3decf3945a767735476207b062e109e
BLAKE2b-256 20fac76a3c15383eb99e92779ec0897c205dc14f1e5f67b6fd893f87121f3731

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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