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

Uploaded Python 3

File details

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

File metadata

  • Download URL: code_pruner-0.5.7.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.7.tar.gz
Algorithm Hash digest
SHA256 b774dacfb23250337a1417ac5021f8d5871998a35ea7cad152e11fd3e09ef059
MD5 a3d4fb070bf151c8b80cd4bdbac22d76
BLAKE2b-256 409bb051b641799b2a759d67b1c9a73e9df84f3be3b513712b4b67235e4fe6cd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: code_pruner-0.5.7-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.7-py3-none-any.whl
Algorithm Hash digest
SHA256 eb29b9f48ef84ba600ecfd47c4d1e1e5089e760b363079540c4c4c95cb3a470b
MD5 6884f419e760d2559e2754be1b82a87f
BLAKE2b-256 4dde95137ce2548d18b3c9bdfbc503893e41030ebe37db7272cce06eefd6922e

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