find failing section in python source
Project description
minimize source code
If you build a linter, formatter or any other tool which has to analyse python source code you might end up searching bugs in pretty large input files.
pysource_minimize
is able to remove everything from the python source which is not related to the problem.
Example:
>>> from pysource_minimize import minimize
>>> source = """
... def f():
... print("bug"+"other string")
... return 1+1
... f()
... """
>>> print(minimize(source, lambda new_source: "bug" in new_source))
"""bug"""
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for pysource_minimize-0.3.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 50454b77da40457a3629021fc67a6b5f702f0468f1c0378121d5c0ba77e419aa |
|
MD5 | caf165858b5aba91f446a9a32e08050a |
|
BLAKE2b-256 | 3cf7b006bfd475c4107bd848464971a25063871b0137d8414a7a215ca66d4b66 |