Skip to main content

dump code to single file context like a pro

Project description

Dumpster

Dumpster is a tool to create a single-file context dump of your codebase, perfect for AI analysis and documentation.

Features

  • Collects code from multiple files into one output file
  • Supports Git integration for version information
  • Configurable through dump.yaml
  • Handles various textual files

Installation

pip install dumpster-cli

Usage

  1. Create a dump.yaml configuration file:
output: sources.txt
extensions:
  - .py
  - .md
  - .yaml
contents:
  - "**/*.py"
  - "**/*.md"

You can also use dumpster-cli init to create a stub dump.yaml and create/update the local .gitignore

  1. Run the dump command:
dumpster-cli

optionally you can create a subset of the dump with

dumpster-cli --contents ./folder1 --contents ./other/folder/myfile.py

Configuration

The dump.yaml file supports these options:

  • output: Output file path (default: sources.txt)
  • extensions: List of file extensions to include
  • contents: Patterns of files to include
  • exclude: Patterns of files to exclude
  • prompt: Optional prompt text
  • header: Optional header text
  • footer: Optional footer text

Git Integration

Dumpster automatically includes Git metadata in the output:

  • Repository root
  • Current branch
  • Commit hash
  • Commit time
  • Author information
  • Dirty status

Development

Dumpster uses these dependencies:

  • GitPython for Git operations
  • Pydantic for configuration validation
  • PyYAML for YAML parsing

The project follows semantic versioning and uses uv for dependency management.

LICENSE

Copyright >=2025 muka

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the 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

dumpster_cli-1.2.0.tar.gz (12.9 kB view details)

Uploaded Source

Built Distribution

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

dumpster_cli-1.2.0-py3-none-any.whl (12.8 kB view details)

Uploaded Python 3

File details

Details for the file dumpster_cli-1.2.0.tar.gz.

File metadata

  • Download URL: dumpster_cli-1.2.0.tar.gz
  • Upload date:
  • Size: 12.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for dumpster_cli-1.2.0.tar.gz
Algorithm Hash digest
SHA256 909a0ea5917304dcc57b64101528ba4aa6d02a463a3b45145e2ec3c1a505caf0
MD5 773dda39c138b4169f7aa73f1931e618
BLAKE2b-256 2ae4ed33977dd2be7f6601fdd24d331036b0097c99451fcfa3ae3e0a65edf667

See more details on using hashes here.

Provenance

The following attestation bundles were made for dumpster_cli-1.2.0.tar.gz:

Publisher: release.yaml on muka/dumpster

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

File details

Details for the file dumpster_cli-1.2.0-py3-none-any.whl.

File metadata

  • Download URL: dumpster_cli-1.2.0-py3-none-any.whl
  • Upload date:
  • Size: 12.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for dumpster_cli-1.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 50fde6cdc427fabc871326019f9fe8310c199b1a6ccd020f0ba3683139b262c5
MD5 dc6dd47f7d057b06c34cc8b48b08d450
BLAKE2b-256 244f38998900296517d4f2a5efc0eab7eeb6a7689d5871e6ad3db3eeb7351922

See more details on using hashes here.

Provenance

The following attestation bundles were made for dumpster_cli-1.2.0-py3-none-any.whl:

Publisher: release.yaml on muka/dumpster

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