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.4.tar.gz (7.8 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.4-py3-none-any.whl (10.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: code_pruner-0.5.4.tar.gz
  • Upload date:
  • Size: 7.8 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.4.tar.gz
Algorithm Hash digest
SHA256 52759226d342c0b2bd1bc60dc33fd2d91a9f18d5039348ee1c6b3888d7430f8b
MD5 bc3c2e5dc513f0eec48aa27f6c131d3e
BLAKE2b-256 228ca7510b016571d53f4380308cc3cfbd4664b6db49667d0d957254292fb2f7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: code_pruner-0.5.4-py3-none-any.whl
  • Upload date:
  • Size: 10.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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 e86845dac66bef6ef11520a204ef3cde83bbde36a2c61f6ea8bc8fa96d77fddc
MD5 33a4ded50d4525772358b456c02a769b
BLAKE2b-256 9af77e31de86a5c497d71680b910d9bda4c822b1fd0e6d7e068d3466826c2149

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