Skip to main content

code-payload

Condense and summarize a codebase for passing to an LLM as context.

Features

  • Token-based Summarization: Summarizes content based on token counts, making it suitable for language models.
  • Flexible Configuration: Supports configuration through YAML files, environment variables, and CLI arguments.
  • Rich CLI Interface: Use the CLI to interact with your projects, including rendering Jinja2 templates.
  • Customizable Templates: Generate custom summaries or reports using Jinja2 templates.

Installation

We recommend using pipx to make this globally available. Alternatively you can use pip.

pipx install code-payload

Usage

code-payload --help

Example Usage

To process a project directory and output a JSON summary:

code-payload /path/to/your/project

To override the file extensions to include:

code-payload /path/to/your/project --include-extensions .py,.js,.md

To use a custom template:

code-payload /path/to/your/project --render-args template_input=readme_summary.j2

Metadata

Release files for code-payload 0.1.8

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

Source distribution (sdist)

Source distribution for code-payload 0.1.8
File Size Uploaded Provenance Actions
code_payload-0.1.8.tar.gz 24.9 kB Without provenance Details for code_payload-0.1.8.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for code-payload 0.1.8
File Interpreter ABI Platform Actions
code_payload-0.1.8-py3-none-any.whl Python 3 none any Details for code_payload-0.1.8-py3-none-any.whl

Total release size: 48.9 kB

Release files / code_payload-0.1.8.tar.gz

Download URL code_payload-0.1.8.tar.gz
Size 24.9 kB
Tags Source
SHA-256 checksum
How to use checksums
e250f3bbf6ae0112583bab1d96f522c2bdf8b8e13f5fa8bbc4628d6217b04a01
BLAKE2b-256 checksum
How to use checksums
fb9aa189446efdbd6d60860d4ac565e5e9ada4f12af0831e017e9e49fb4b1862
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.3

Release files / code_payload-0.1.8-py3-none-any.whl

Download URL code_payload-0.1.8-py3-none-any.whl
Size 24.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
234d5c0e371f35142286a230f817969a3987b3740e6916f7a84b2a11cba136be
BLAKE2b-256 checksum
How to use checksums
88a7956d6c467beebefac2f9ff431df982c854c613bffab0d018a6336c364500
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.3

Security for code-payload 0.1.8

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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