Skip to main content

ai-repopack

Pack a repository into one XML file for pasting into an LLM, with basic secret redaction.

pip install ai-repopack            # token count is estimated as chars/4
pip install "ai-repopack[tokens]"  # exact counts via tiktoken
repopack . -o codebase.xml
repopack ./src --max-size 100 --ignore "*.test.js"

What it does

  • Walks the repo, skips .git, node_modules, lockfiles, images/binaries, and files over --max-size KB (default 250)
  • Skips .env, .env.*, *.pem, *.key and id_rsa entirely
  • Redacts api_key|secret|token|password|auth|bearer = "..." assignments, ghp_..., sk-... and AKIA... keys inside other files
  • Wraps each file in <![CDATA[ ]]> under a <repository> tree

Limitations (v1)

  • Redaction is regex-based and best-effort: it will miss secrets in unusual formats. Review output before sharing.
  • Does not honour .gitignore yet (own ignore list + --ignore globs)
  • Token count is an estimate unless tiktoken is installed

MIT licensed.

Metadata

Release files for ai-repopack 1.0.2

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

Source distribution (sdist)

Source distribution for ai-repopack 1.0.2
File Size Uploaded Provenance Actions
ai_repopack-1.0.2.tar.gz 4.8 kB Without provenance Details for ai_repopack-1.0.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for ai-repopack 1.0.2
File Interpreter ABI Platform Actions
ai_repopack-1.0.2-py3-none-any.whl Python 3 none any Details for ai_repopack-1.0.2-py3-none-any.whl

Total release size: 10.4 kB

Release files / ai_repopack-1.0.2.tar.gz

Download URL ai_repopack-1.0.2.tar.gz
Size 4.8 kB
Tags Source
SHA-256 checksum
How to use checksums
3fb83a131b0f16e6d63dad07d31cdb898a9cb35404710e4ce7af03a66ba5918d
BLAKE2b-256 checksum
How to use checksums
46991bc48f663a8f59fb90770622401b98f50ed4eb8edc9ff7839bb8cf187887
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.17 {"installer":{"name":"uv","version":"0.12.17","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / ai_repopack-1.0.2-py3-none-any.whl

Download URL ai_repopack-1.0.2-py3-none-any.whl
Size 5.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
66d6250159f249f85744cc551eb3000df8698b918c54f96d1129772c77c3e261
BLAKE2b-256 checksum
How to use checksums
97da9462787eb09fc83c8c7429da87cf4f1f40cc1c18345593100689aaae7e7a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.17 {"installer":{"name":"uv","version":"0.12.17","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for ai-repopack 1.0.2

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