Skip to main content

Build Status codecov

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)

Metadata

Release files for pytracetable 0.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pytracetable 0.3.0
File Size Uploaded
pytracetable-0.3.0.tar.gz 4.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pytracetable 0.3.0
File Interpreter ABI Platform
pytracetable-0.3.0-py2-none-any.whl Python 2 none any Details

Total release size: 8.3 kB

Release files / pytracetable-0.3.0.tar.gz

Download URL pytracetable-0.3.0.tar.gz
Size 4.0 kB
Tags Source
SHA-256 checksum
How to use checksums
e0935384ec810ba168ea6866268f89fb5c0e39ab840532e19bf3e4b1f98a8521
BLAKE2b-256 checksum
How to use checksums
2c45d2ee9a935470d54b60de859009b2b3eb2dce11f452c19846d878c6381468
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / pytracetable-0.3.0-py2-none-any.whl

Download URL pytracetable-0.3.0-py2-none-any.whl
Size 4.3 kB
Tags Python 2
SHA-256 checksum
How to use checksums
105a4a786f5ce518517bca0a6ff0fae2d878fc08139ad3aeeae2ff962497c6f8
BLAKE2b-256 checksum
How to use checksums
ea87bbc51ff90f8ee3a2b9da15fdaf711cdc6ff420a56ae154ddcac625bbbb5d
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

0.3.0 This release

2 release files

0.2

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page