Context Creator
Have you ever found yourself manually copying and pasting code into a single file to feed to an AI model? Or maybe you needed to give a new collaborator a quick overview of a project, but didn't want to send them a zip file full of junk.
This tool was built to solve that exact problem.
context-creator is a simple, powerful command-line utility that walks through your project directory, grabs all the relevant source code, and combines it all into a single, clean text file. It's smart enough to ignore the things you don't need, using a .contextignore file that works just like the .gitignore you already know and love.
The goal is simple: less time spent on tedious prep work, more time focused on what matters.
Key Features
- Zero-Config Start: Run it in any project, and it just works.
- Intelligent Ignoring: Automatically creates and uses a
.contextignorefile with sensible defaults to skip dependency folders, build artifacts, and local configs. - Clear, Structured Output: The generated file starts with a directory tree, followed by the contents of each file, clearly demarcated.
- Fast and Focused: A single, lightweight utility with no dependencies, designed to do one job perfectly.
Getting Started
1. Installation
The tool is hosted on PyPI. All you need is Python installed, then run:
pip install context-creator
2. First Run
Navigate your terminal into any of your project directories and simply run the command:
context
The first time you run it, you'll see this output:
Created default .contextignore file.
Generated context.txt.
Two things have happened:
- A
context.txtfile has been created in your project root. This is your project's complete context, ready to be used. - A
.contextignorefile has also been created. This comes pre-filled with common patterns to ignore things likenode_modules,.git, and Python virtual environments.
Usage
While the default is designed to be all you need, you can easily customize its behavior.
-
Specify a directory:
context /path/to/another/project -
Set a custom output file name:
context -o project_overview.md
Customizing with .contextignore
The real power comes from tailoring the context to your exact needs. Open the .contextignore file in your project. It's just a plain text file where each line is a pattern to ignore.
For example, if you want to also ignore all markdown files, just add this line:
*.md
The tool will now skip any file with a .md extension during its next run.
This project is open-source and released under the MIT License.
Metadata
Release files for context-creator 1.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| context_creator-1.0.3.tar.gz | 5.6 kB | Without provenance | Details for context_creator-1.0.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| context_creator-1.0.3-py3-none-any.whl | Python 3 | none | any | Details for context_creator-1.0.3-py3-none-any.whl |
Total release size: 11.3 kB
Release files / context_creator-1.0.3.tar.gz
| Download URL | context_creator-1.0.3.tar.gz |
|---|---|
| Size | 5.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9bfe5512511cd9e03ff7f27341f1da9be9b03253c59faee58d7063f3147aa3b0
|
|
BLAKE2b-256 checksum How to use checksums |
e3c2fd8830fef298fad2ccf0539da2c29b56babbcd754cbc2bef4eb05beda9f2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.3
|
Release files / context_creator-1.0.3-py3-none-any.whl
| Download URL | context_creator-1.0.3-py3-none-any.whl |
|---|---|
| Size | 5.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ee72a208e77c58a3680ab83facff8b461f46617476f40fe4c207e82de1761fb4
|
|
BLAKE2b-256 checksum How to use checksums |
7464445fb6827b806dbac20537e3e3530451cd444fe83de51fde1ac7564e494b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.3
|
Security for context-creator 1.0.3
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.