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

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.1.tar.gz (3.3 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.1-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: code_pruner-0.5.1.tar.gz
  • Upload date:
  • Size: 3.3 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.1.tar.gz
Algorithm Hash digest
SHA256 1b6e08b7ca1497f7f3f4a140b0eae1e1a1e242a78c3616228cd589f92cd42d38
MD5 3ef1e03ac7656bccfbac8ce8fd19feb8
BLAKE2b-256 c02bc1746cba3246980c517c872d2cdb5a1fe7b41b03c2deea2e476e1050279e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: code_pruner-0.5.1-py3-none-any.whl
  • Upload date:
  • Size: 3.9 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 fa1290aa083b5f31ec7dcdfefdd95e981018f41d7adb344675029806df91fdf2
MD5 23b229075e8080481af085d6c2227935
BLAKE2b-256 06d0fbac8c91709d48bb9b07a55d39518b3773311048c3a967d1075b328eb297

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