sotrace
This package opens up StackOverflow posts for your errors. It's the ultimate efficiency tool!
Example Usage
from sotrace import open_link
try:
my_dict = {}
print(my_dict[1])
except Exception as e:
open_link(e)
from sotrace import open_link
open_link("What does the yield keyword do?", tags=["python", "generator"], num_of_results=3)
sotrace can also be run from the command line as a wrapper of sorts.
❯ python3 -m sotrace example2.py
Traceback (most recent call last):
File "example2.py", line 2, in <module>
print(my_dict[1])
KeyError: 1
(Opens links)
More arguments can be found using python3 -m sotrace -h, which gives:
❯ python3 -m sotrace -h
usage: __main__.py [-h] [--results RESULTS] [--tags TAGS [TAGS ...]] [--not-pretty] file
positional arguments:
file File to execute with sotrace.
optional arguments:
-h, --help show this help message and exit
--results RESULTS Number of results to open.
--tags TAGS [TAGS ...]
Preferred tags.
--not-pretty Don't use prettier tracebacks from the rich library. (not recommended)
Roadmap
- Documentation
- Default issue template
- Github Actions
Metadata
Release files for sotrace 1.1.2
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 | |
|---|---|---|---|---|
| sotrace-1.1.2.tar.gz | 3.7 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| sotrace-1.1.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 7.8 kB
Release files / sotrace-1.1.2.tar.gz
| Download URL | sotrace-1.1.2.tar.gz |
|---|---|
| Size | 3.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
cc1d3a13328f39c6a865eb5e95d04e345d654d397349010f6e890f651232f2b2
|
|
BLAKE2b-256 checksum How to use checksums |
9c11387cd02146cf416c3ec2e5190a2d18c2b77dc228a189abd8f57bdf867442
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.8.6
|
Release files / sotrace-1.1.2-py3-none-any.whl
| Download URL | sotrace-1.1.2-py3-none-any.whl |
|---|---|
| Size | 4.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
043d9acaa8560923993d40700cf47da9e0922dd3b111749a319484a784773757
|
|
BLAKE2b-256 checksum How to use checksums |
97db0e9da58544b89185f6c8812f1a15c807d705921943f4cfc22cd2d77590a9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.8.6
|
Security for sotrace 1.1.2
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.