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
- 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
- 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 includecontents: Patterns of files to includeexclude: Patterns of files to excludeprompt: Optional prompt textheader: Optional header textfooter: 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
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
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 dumpster_cli-1.4.0.tar.gz.
File metadata
- Download URL: dumpster_cli-1.4.0.tar.gz
- Upload date:
- Size: 15.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a9fff8dfba895c6692811c61c18b7ab87959d848bf1d807982db632f6e15ac6f
|
|
| MD5 |
c395b9e441113acc1850392f773d708a
|
|
| BLAKE2b-256 |
bd99c65109913d016e7134d1af5bb6a9607006f935d36e868602c15123bcdec3
|
Provenance
The following attestation bundles were made for dumpster_cli-1.4.0.tar.gz:
Publisher:
release.yaml on muka/dumpster
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
dumpster_cli-1.4.0.tar.gz -
Subject digest:
a9fff8dfba895c6692811c61c18b7ab87959d848bf1d807982db632f6e15ac6f - Sigstore transparency entry: 871899542
- Sigstore integration time:
-
Permalink:
muka/dumpster@038e5b9f7f04ae5c8aeb66197e550b2bec8285f8 -
Branch / Tag:
refs/tags/v1.4.0 - Owner: https://github.com/muka
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yaml@038e5b9f7f04ae5c8aeb66197e550b2bec8285f8 -
Trigger Event:
push
-
Statement type:
File details
Details for the file dumpster_cli-1.4.0-py3-none-any.whl.
File metadata
- Download URL: dumpster_cli-1.4.0-py3-none-any.whl
- Upload date:
- Size: 15.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
42300ff683bd9839bce39245d596fbffef0bdeb1ceab38991240c615f05c23d9
|
|
| MD5 |
b114e644d4d15ef42904f4a22791f109
|
|
| BLAKE2b-256 |
06c8111ce08edf4ecfc3ebf4832ca904c0076737c6388f6b4f2d3e2024ad938b
|
Provenance
The following attestation bundles were made for dumpster_cli-1.4.0-py3-none-any.whl:
Publisher:
release.yaml on muka/dumpster
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
dumpster_cli-1.4.0-py3-none-any.whl -
Subject digest:
42300ff683bd9839bce39245d596fbffef0bdeb1ceab38991240c615f05c23d9 - Sigstore transparency entry: 871899545
- Sigstore integration time:
-
Permalink:
muka/dumpster@038e5b9f7f04ae5c8aeb66197e550b2bec8285f8 -
Branch / Tag:
refs/tags/v1.4.0 - Owner: https://github.com/muka
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yaml@038e5b9f7f04ae5c8aeb66197e550b2bec8285f8 -
Trigger Event:
push
-
Statement type: