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
toxlocally 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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pytracetable-0.3.0.tar.gz.
File metadata
- Download URL: pytracetable-0.3.0.tar.gz
- Upload date:
- Size: 4.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/2.7.17
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e0935384ec810ba168ea6866268f89fb5c0e39ab840532e19bf3e4b1f98a8521
|
|
| MD5 |
ca0e2632cb9e1be672dc1d3fa6b6359d
|
|
| BLAKE2b-256 |
2c45d2ee9a935470d54b60de859009b2b3eb2dce11f452c19846d878c6381468
|
File details
Details for the file pytracetable-0.3.0-py2-none-any.whl.
File metadata
- Download URL: pytracetable-0.3.0-py2-none-any.whl
- Upload date:
- Size: 4.3 kB
- Tags: Python 2
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/2.7.17
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
105a4a786f5ce518517bca0a6ff0fae2d878fc08139ad3aeeae2ff962497c6f8
|
|
| MD5 |
e3d55ea23b60cc21356a87ff46ae2ca2
|
|
| BLAKE2b-256 |
ea87bbc51ff90f8ee3a2b9da15fdaf711cdc6ff420a56ae154ddcac625bbbb5d
|