ContextPack
Convert a directory tree to a single Markdown file for LLM context --
offline, no dependencies. Python 3.8+, stdlib only (os). No network
at runtime.
Usage
python3 contextpack.py ./myproject -o context.md
python3 contextpack.py ./myproject --ext py md txt
CRON example
# Nightly context snapshot for docs review
0 2 * * * cd /path/to/contextpack && python3 contextpack.py /data/repo -o /tmp/context.md
Limitations
Skips very large files (default 100KB). Skips .git and
node_modules. UTF-8 with replacement on decode errors.
ContextPack auto-excludes common secret files (.env, id_rsa, *.pem, ...). Always review context.md before sharing it with any third party / LLM.
Free and open source (MIT license, see LICENSE). No telemetry, no network calls, no nagware.
Part of the PlainKitBin toolset -- small, offline, single-file utilities with automated tests and a provenance record for every release. If you find this useful, check out PlainKitBin DirSnapshot.
Provided as-is with no individual support.
Built with AI assistance and automatically tested before release; released under human oversight.
Metadata
Release files for plainkitbin-contextpack 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 |
|---|---|---|---|---|
| plainkitbin_contextpack-1.0.3.tar.gz | 4.7 kB | Without provenance | Details for plainkitbin_contextpack-1.0.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| plainkitbin_contextpack-1.0.3-py3-none-any.whl | Python 3 | none | any | Details for plainkitbin_contextpack-1.0.3-py3-none-any.whl |
Total release size: 10.7 kB
Release files / plainkitbin_contextpack-1.0.3.tar.gz
| Download URL | plainkitbin_contextpack-1.0.3.tar.gz |
|---|---|
| Size | 4.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c2f893b80756ef8cd594e9910751833d12d9ba35f67a6eada6798c3b6c0599a3
|
|
BLAKE2b-256 checksum How to use checksums |
f877800b2369f98649befeaf92894296bd0c8785eeb285da4d9e6bb0c81190a2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.3
|
Release files / plainkitbin_contextpack-1.0.3-py3-none-any.whl
| Download URL | plainkitbin_contextpack-1.0.3-py3-none-any.whl |
|---|---|
| Size | 6.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5116eb154dce7309780a32274aa674a70ca67c5b9d92055c54999b17d3729480
|
|
BLAKE2b-256 checksum How to use checksums |
e7f50fcc20c2f5c995dd6949f669541cb15df0e082efee1e8c87976a8e9cd562
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.3
|
Security for plainkitbin-contextpack 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.