Skip to main content

Script debugging tool that aims to make a line-by-line debugging easier

Project description

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)

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

pytracetable-0.3.0.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

pytracetable-0.3.0-py2-none-any.whl (4.3 kB view details)

Uploaded Python 2

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

Hashes for pytracetable-0.3.0.tar.gz
Algorithm Hash digest
SHA256 e0935384ec810ba168ea6866268f89fb5c0e39ab840532e19bf3e4b1f98a8521
MD5 ca0e2632cb9e1be672dc1d3fa6b6359d
BLAKE2b-256 2c45d2ee9a935470d54b60de859009b2b3eb2dce11f452c19846d878c6381468

See more details on using hashes here.

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

Hashes for pytracetable-0.3.0-py2-none-any.whl
Algorithm Hash digest
SHA256 105a4a786f5ce518517bca0a6ff0fae2d878fc08139ad3aeeae2ff962497c6f8
MD5 e3d55ea23b60cc21356a87ff46ae2ca2
BLAKE2b-256 ea87bbc51ff90f8ee3a2b9da15fdaf711cdc6ff420a56ae154ddcac625bbbb5d

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page