loctraceback
Want to see more precisely where you are or were at in a traceback or callstack your Python code has several places in a line it could have errored? Even if the code was something created at runtime with say eval or exec or if there was no source code that can be found?
Then this package is for you.
Some examples of the kinds of code this module can disambiguate:
i / j / k # which divide?
prev[prev[0]] # which prev ?
[e[0] for i in d[j] if got[i] == e[i]] # lots going on here
exec(some_code % 10, namespace) # code at runtime
Some example output given by running code in example:
Division example:
Traceback (most recent call last):
File "tb-div.py", line 9, in <module> at offset 52
a / b / c
a / b / c
-
ZeroDivisionError: float division by zero
List comprehension example:
File "tb-comp.py", line 9, in <listcomp> at offset 18
[e[0] for i in d[j] if got[i] == e[i]]
return [ e[0] for i in .0 if got[i] == e[i] ]
------
IndexError: list index out of range
exec example:
Traceback (most recent call last):
File "tb-exec.py", line 11, in <module> at offset 39
exec(s)
exec(s)
-------
File "<string>", line 4, in <module> at offset 18
z = x / y
-
ZeroDivisionError: division by zero
Isolating function in call stack example:
File "call-fib.py", line 8, in fib at offset 58
return fib(n-1) + fib(n-2)
return fib(n - 1) + fib(n - 2)
----------
File "call-fib.py", line 10, in <module> at offset 54
print("fib({})={}".format(2, fib(2)))
------
This modules extends the Python 3.6 API traceback module by adding in fragment decomplation info for more precise location information.
Although the API is from Python 3.6, the code runs on 3.3 or greater. Back-porting to ther Python versions is left as an exercise to the reader.
See these slides for information on the technology behind this.
Metadata
Release files for loctraceback 1.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| loctraceback-1.1.1.tar.gz | 24.3 kB | Without provenance | Details for loctraceback-1.1.1.tar.gz |
Built distributions (wheels)
Total release size: 231.5 kB
Release files / loctraceback-1.1.1.tar.gz
| Download URL | loctraceback-1.1.1.tar.gz |
|---|---|
| Size | 24.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8b6936ae38ce86a100df1ce755908e8248d85112f7227399eefb207801baadf5
|
|
BLAKE2b-256 checksum How to use checksums |
4c19cf123589be67ae61cd90911753c37f67d861f031c618e75df445faffe7f2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.8.8
|
Release files / loctraceback-1.1.1-py37-none-any.whl
| Download URL | loctraceback-1.1.1-py37-none-any.whl |
|---|---|
| Size | 12.8 kB |
| Tags | Python 3.7 |
|
SHA-256 checksum How to use checksums |
c2efc711324497046b2432a272c30b32da73edd196acf707152ef10614793020
|
|
BLAKE2b-256 checksum How to use checksums |
4983fc9502242df444888946bfb10aa38249adc572653838bf129242e7760490
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.8.8
|
Release files / loctraceback-1.1.1-py35-none-any.whl
| Download URL | loctraceback-1.1.1-py35-none-any.whl |
|---|---|
| Size | 12.8 kB |
| Tags | Python 3.5 |
|
SHA-256 checksum How to use checksums |
ddf207b7cddfca4b5c610636dee692f88174be324e2d98e9ecb032f5a0c7cea8
|
|
BLAKE2b-256 checksum How to use checksums |
ee6558306550ea6a2bddb24ff7c44534bf662de53c3ba4a35660f519ed7cc96e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.8.8
|
Release files / loctraceback-1.1.1-py34-none-any.whl
| Download URL | loctraceback-1.1.1-py34-none-any.whl |
|---|---|
| Size | 12.8 kB |
| Tags | Python 3.4 |
|
SHA-256 checksum How to use checksums |
40c79f39bd49b127971605296dfeb812df6199cf415e379b700a0e9e194534f4
|
|
BLAKE2b-256 checksum How to use checksums |
1be16c841eea242d8d412444838d54a5d233373acb07fd3ab0fdd64022eff1ac
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.8.8
|
Release files / loctraceback-1.1.1-py33-none-any.whl
| Download URL | loctraceback-1.1.1-py33-none-any.whl |
|---|---|
| Size | 14.8 kB |
| Tags | Python 3.3 |
|
SHA-256 checksum How to use checksums |
e1436558841b7845a0a979ed546d47c74bedb41cb9fdefdf88a46177d53cdf83
|
|
BLAKE2b-256 checksum How to use checksums |
cc16a186e796ca57c0f916bbedbd98b4b9a251b5b921199cb00bd12392784d83
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.8.8
|
Release files / loctraceback-1.1.1-py3.8.egg
| Download URL | loctraceback-1.1.1-py3.8.egg |
|---|---|
| Size | 25.5 kB |
| Tags | Egg |
|
SHA-256 checksum How to use checksums |
1e49b563566698ca7200910cd8541c43b1515c62f68866fb12095b2a3fe6ab53
|
|
BLAKE2b-256 checksum How to use checksums |
10f8c15ba9f9a75aa00a41f0491686e7e0e4f500fcdefc105403a82ab49d0f35
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.8.8
|
Release files / loctraceback-1.1.1-py3.7.egg
| Download URL | loctraceback-1.1.1-py3.7.egg |
|---|---|
| Size | 25.4 kB |
| Tags | Egg |
|
SHA-256 checksum How to use checksums |
101d4fdd8c00ebcdbb971a55f87fe92b53d4892322b071ebe9fd85e81c61e877
|
|
BLAKE2b-256 checksum How to use checksums |
13f3cca12c9090bf73fd6b5b39e3d3f806ef7fdddac73b9f2f01ca5af007e6b1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.8.8
|
Release files / loctraceback-1.1.1-py3.6.egg
| Download URL | loctraceback-1.1.1-py3.6.egg |
|---|---|
| Size | 25.4 kB |
| Tags | Egg |
|
SHA-256 checksum How to use checksums |
c313f82db8514ab32667c5c44280ef25aad01d8947e3abc4e3c3179103f5964a
|
|
BLAKE2b-256 checksum How to use checksums |
c4cc91420a8cc1f734db4039f585bca9ec8c36d7456a2e778ffbc9de2abc4011
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.8.8
|
Release files / loctraceback-1.1.1-py3.5.egg
| Download URL | loctraceback-1.1.1-py3.5.egg |
|---|---|
| Size | 25.8 kB |
| Tags | Egg |
|
SHA-256 checksum How to use checksums |
4f5967a51933ebca97162cff67401d5f42cf7fb4abf0fa10686a8464034fcf96
|
|
BLAKE2b-256 checksum How to use checksums |
390ea48e2e7b7fe8bba91b9c25cfed15b789251ebe9f7bb6c0f4ffd753926c72
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.8.8
|
Release files / loctraceback-1.1.1-py3.4.egg
| Download URL | loctraceback-1.1.1-py3.4.egg |
|---|---|
| Size | 25.9 kB |
| Tags | Egg |
|
SHA-256 checksum How to use checksums |
902c4e6ccaefa16833895638f6940da27cfa1c0e22f7eb717833294198d7f81e
|
|
BLAKE2b-256 checksum How to use checksums |
23c46506cae54c17dee21657f87be98b763a94720e4d545c5ee21275d05839e5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.8.8
|
Release files / loctraceback-1.1.1-py3.3.egg
| Download URL | loctraceback-1.1.1-py3.3.egg |
|---|---|
| Size | 26.1 kB |
| Tags | Egg |
|
SHA-256 checksum How to use checksums |
9d4c12e27aee7ea9f108e187ee83a899710a699ef1abaf82e674c600633cc039
|
|
BLAKE2b-256 checksum How to use checksums |
9442a0ae7aa582f256a9f5ac38cb8803d906d62cae031c80d8ac34a0167e048b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.8.8
|
Security for loctraceback 1.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.