Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/filwaitman/pytracetable
PyTraceTable is a tool for scripting and script debugging. It aims to make a line-by-line debugging easier.
https://github.com/filwaitman/pytracetable
Last synced: about 2 months ago
JSON representation
PyTraceTable is a tool for scripting and script debugging. It aims to make a line-by-line debugging easier.
- Host: GitHub
- URL: https://github.com/filwaitman/pytracetable
- Owner: filwaitman
- License: mit
- Created: 2016-02-10T00:32:47.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2020-05-27T21:37:59.000Z (over 4 years ago)
- Last Synced: 2024-11-06T18:52:01.587Z (2 months ago)
- Language: Python
- Size: 11.7 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Authors: AUTHORS
Awesome Lists containing this project
- starred-awesome - pytracetable - PyTraceTable is a tool for scripting and script debugging. It aims to make a line-by-line debugging easier. (Python)
README
[![Travis](https://travis-ci.com/filwaitman/pytracetable.svg?branch=master)](https://travis-ci.com/filwaitman/pytracetable)
[![PyPI](https://img.shields.io/pypi/v/pytracetable.svg)](https://pypi.python.org/pypi/pytracetable/)
[![License](https://img.shields.io/pypi/l/pytracetable.svg)](https://pypi.python.org/pypi/pytracetable/)
[![Python versions](https://img.shields.io/pypi/pyversions/pytracetable.svg)](https://pypi.python.org/pypi/pytracetable/)
[![PyPI downloads per month](https://img.shields.io/pypi/dm/pytracetable.svg)](https://pypi.python.org/pypi/pytracetable/)# pytracetable
Script debugging tool that aims to make a line-by-line debugging easier. Take a look:
```python
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: 5 (int)
[ADDED] b: 10 (int)--------------------------------------------------
At some_weird_calculation, line 4
[ADDED] c: 15 (int)--------------------------------------------------
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:
```bash
pip install -r requirements_dev.txt
isort -rc .
tox -e lint
```### Run tests via `tox`:
```bash
pip install -r requirements_dev.txt
tox
```### Release a new major/minor/patch version:
```bash
pip install -r requirements_dev.txt
bump2version # can be either 'patch' or 'minor' or 'major'
```### Upload to PyPI:
```bash
pip install -r requirements_dev.txt
python setup.py sdist bdist_wheel
python -m twine upload dist/*
```## Contributing:
Please [open issues](https://github.com/filwaitman/pytracetable/issues) if you see one, or [create a pull request](https://github.com/filwaitman/pytracetable/pulls) 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)