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

Uploaded Python 3

File details

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

File metadata

  • Download URL: code_pruner-0.5.5.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.5.tar.gz
Algorithm Hash digest
SHA256 6b251275682484577eda0c57e69df64c2469104c1b8b3a6ea61635faef491225
MD5 4fe1344096ebc522c741625ebef7f09e
BLAKE2b-256 21135124f37f1002664afaad1a4b04175d5daac2ac7f289673f37d71fc5e4af2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: code_pruner-0.5.5-py3-none-any.whl
  • Upload date:
  • Size: 10.6 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.5-py3-none-any.whl
Algorithm Hash digest
SHA256 9f3091a44990e6d9c9fac6032ea645190187aaacc095711f861eb6e188c759f3
MD5 2360a326f618ee8f7672bbe5165f3a04
BLAKE2b-256 a40dcd7995860a8b886f0f8e05e6416bd8bc5e10ceb2c93099db8a2156cf4f47

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