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.3.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.3-py3-none-any.whl (10.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: code_pruner-0.5.3.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.3.tar.gz
Algorithm Hash digest
SHA256 fd3bfaf2106fd2fd5aa55712df5cad2a0d60f380f9d3741bdffc6362c56c45e3
MD5 d07e5a527e40bbea03a516b93dd3cf37
BLAKE2b-256 d0bd6dd978c4b17df55ad7c9c1cedb0c0f694913bc75cad411b2db037eafb2aa

See more details on using hashes here.

File details

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

File metadata

  • Download URL: code_pruner-0.5.3-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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 44a43bee5f15c1632aac403ec716cab2618904f3fc22137fe2a7d54845023cfc
MD5 7e90cc96d4db2e387d98467a77a174f1
BLAKE2b-256 7e8327ea0803632450e73285ed6e3fd92ba4f15dc8513e17c88324ddb7ee7e24

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