Script debugging tool that aims to make a line-by-line debugging easier
Project description
pytracetable
Script debugging tool that aims to make a line-by-line debugging easier. Take a look:
from pytracetable import tracetable
@tracetable()
def some_weird_calculation(a, b):
c = 10 + a
b *= 2
c += b
del b
return a + c
Then, calling some_weird_calculation(5, 10)
will give the output:
--------------------------------------------------
At some_weird_calculation, line 3
[ADDED] a (int): 5
[ADDED] b (int): 10
--------------------------------------------------
At some_weird_calculation, line 4
[ADDED] c (int): 15
--------------------------------------------------
At some_weird_calculation, line 5
[CHANGED] b: 10 (int) --> 20 (int)
--------------------------------------------------
At some_weird_calculation, line 6
[CHANGED] c: 15 (int) --> 35 (int)
--------------------------------------------------
At some_weird_calculation, line 7
[REMOVED] b
[RETURNED] 40 (int)
Development:
Run linter:
pip install -r requirements_dev.txt
isort -rc .
tox -e lint
Run tests via tox
:
pip install -r requirements_dev.txt
tox
Release a new major/minor/patch version:
pip install -r requirements_dev.txt
bump2version <PART> # <PART> can be either 'patch' or 'minor' or 'major'
Upload to PyPI:
pip install -r requirements_dev.txt
python setup.py sdist bdist_wheel
python -m twine upload dist/*
Contributing:
Please open issues if you see one, or create a pull request when possible. In case of a pull request, please consider the following:
- Respect the line length (132 characters)
- Write automated tests
- Run
tox
locally so you can see if everything is green (including linter and other python versions)
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
pytracetable-0.3.0.tar.gz
(4.0 kB
view hashes)
Built Distribution
Close
Hashes for pytracetable-0.3.0-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 105a4a786f5ce518517bca0a6ff0fae2d878fc08139ad3aeeae2ff962497c6f8 |
|
MD5 | e3d55ea23b60cc21356a87ff46ae2ca2 |
|
BLAKE2b-256 | ea87bbc51ff90f8ee3a2b9da15fdaf711cdc6ff420a56ae154ddcac625bbbb5d |