Skip to main content

A tool to prune Python code based on specified patterns.

Project description

Python code for pruning python files

It may be usefull to remove some parts of the code like comments, spaces etc. Also used by the authoor to keep interface only when providing code to LLM for smaller context size

How to deploy

We use setup.py and setup.cfg to deploy the package to PyPI. To create a source distribution and upload it to PyPI, run the following commands:

python setup.py sdist bdist_wheel

Install twine if you haven't already:

pip install twine

Then upload the package to PyPI:

twine upload dist/*

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

code_pruner-0.5.6.tar.gz (7.2 kB view details)

Uploaded Source

Built Distribution

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

code_pruner-0.5.6-py3-none-any.whl (9.1 kB view details)

Uploaded Python 3

File details

Details for the file code_pruner-0.5.6.tar.gz.

File metadata

  • Download URL: code_pruner-0.5.6.tar.gz
  • Upload date:
  • Size: 7.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.0

File hashes

Hashes for code_pruner-0.5.6.tar.gz
Algorithm Hash digest
SHA256 60a6c6f3b189229865c67f1e91dcdc34b5619a5aedcfde46123d441dfdeeca59
MD5 ea175a3215f7b706089e3c0c63cad5b4
BLAKE2b-256 46a67d59ca6bf9815f8914e699c6541f586fa43d7baf5bad7a9f7508e2dc1a81

See more details on using hashes here.

File details

Details for the file code_pruner-0.5.6-py3-none-any.whl.

File metadata

  • Download URL: code_pruner-0.5.6-py3-none-any.whl
  • Upload date:
  • Size: 9.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.0

File hashes

Hashes for code_pruner-0.5.6-py3-none-any.whl
Algorithm Hash digest
SHA256 8e505f367fa3c25ddee307b05c0ffd02e13b8aa6d56c9794aef440d5ca61ee38
MD5 349ee6647c31147f8ecb2a441532a992
BLAKE2b-256 9f6f79f04e33d95cda86a9ea87abf8883498fb7dcd9168c737b687c291cd3307

See more details on using hashes here.

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