upy-error
- Documentation: https://github.com/UpyExplorer/upy-error
- Source Code: https://github.com/UpyExplorer/upy-error
How to install?
pip install upy-error
How to use?
# Import the package
from upy_error import format_exception
Exception example with (log)
try:
print(x)
except Exception as error:
# Using the function to process the error with the 'logging' package.
format_exception(error=error, log=True)
Output:
==========================================
2022-07-23 00:13:37,577 ERROR
UpyError:
File "test_upy_error.py", line 4, in <module>
print(x)
NameError: name 'x' is not defined
==========================================
Exception example with (print)
try:
1 / 0
except Exception as error:
# Using the function to return the error in string format.
print(format_exception(error=error))
Output:
UpyError:
File "test_upy_error.py", line 11, in <module>
1 / 0
ZeroDivisionError: division by zero
Commit Style
- ⚙️ FEATURE
- 📝 PEP8
- 📌 ISSUE
- 🪲 BUG
- 📘 DOCS
- 📦 PyPI
- ❤️️ TEST
- ⬆️ CI/CD
- ⚠️ SECURITY
License
Distributed under the MIT License. See LICENSE for more information.
Metadata
Release files for upy-error 0.0.3
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 |
|---|---|---|---|---|
| upy-error-0.0.3.tar.gz | 2.9 kB | Without provenance | Details for upy-error-0.0.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| upy_error-0.0.3-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details for upy_error-0.0.3-py2.py3-none-any.whl |
Total release size: 6.1 kB
Release files / upy-error-0.0.3.tar.gz
| Download URL | upy-error-0.0.3.tar.gz |
|---|---|
| Size | 2.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fffb5593ed88978487cf45209f189cb12a78bfab66c7f4ba123f101aeaba3f16
|
|
BLAKE2b-256 checksum How to use checksums |
1934cd281a63a9213bc32994f953fe2b40109687c5cdcce767e43571ab06a35c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.16
|
Release files / upy_error-0.0.3-py2.py3-none-any.whl
| Download URL | upy_error-0.0.3-py2.py3-none-any.whl |
|---|---|
| Size | 3.1 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
545b0e84bffb220aab8caaa7eff6c2a400a7ed9b430d7b55b3d0b47c753f8307
|
|
BLAKE2b-256 checksum How to use checksums |
41db396164e11c395dc19ef3490ff71ab1fd6fbca767ef35a59da9914ef5f307
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.16
|
Security for upy-error 0.0.3
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.