Excptr
Decorator for catching exception and print them nicely
[Production-Development]
Installation
pip install excptr-karjakak
Usage
@excp()
def ...
@excpcls()
class ...
Example
Filename caller: /USERS/__MAIN__.PY
ERROR - <func_name>:
-----------------------------------------------------------------------
Start at:
line 26 in <module>:
print(x.func_name(1, 3, '4'))
Detecting ERROR:
print(x.func_name(1, 3, '4'))
^^^^^^^^^
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<- Exception raise: TypeError ->
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
line 11 in func_name:
return(sum(args))
TypeError: unsupported operand type(s) for +: 'int' and 'str'
----------------------------------------------------------------------
Note
-
There are 4 types of format:
- -1 (by default) -> raise an exception
- 0 -> print exception in logical order and nicely
- 1 -> show exception in gui tkinter
- Viewing limited in total of 60 seconds
- 2 -> for logging the tracing to a file
- If you choose 2, please give filename path
- By default filename is None and if not given filename path, it will be defaulted back to -1 (raise exception)
- Can use default user_path/dir/file
- Create default dir function available
Changes
- Now can detecting ERROR
Metadata
Release files for excptr-karjakak 0.2.7
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 |
|---|---|---|---|---|
| excptr-karjakak-0.2.7.tar.gz | 4.2 kB | Without provenance | Details for excptr-karjakak-0.2.7.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| excptr_karjakak-0.2.7-py3-none-any.whl | Python 3 | none | any | Details for excptr_karjakak-0.2.7-py3-none-any.whl |
Total release size: 8.8 kB
Release files / excptr-karjakak-0.2.7.tar.gz
| Download URL | excptr-karjakak-0.2.7.tar.gz |
|---|---|
| Size | 4.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2545891767cb654b3eab6054dc1a8fb70c838943f0a7900e5cd39a09bcc146f6
|
|
BLAKE2b-256 checksum How to use checksums |
42b7189dcfa6c29335099d7c3841e97806c85c037ad67774c61093e270492196
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.11.0
|
Release files / excptr_karjakak-0.2.7-py3-none-any.whl
| Download URL | excptr_karjakak-0.2.7-py3-none-any.whl |
|---|---|
| Size | 4.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
854cff13439bc3d7d63eb20ef3da384f53c3e9388cd740885858f191daf218b8
|
|
BLAKE2b-256 checksum How to use checksums |
a93cf1d610901f16e99ca81c891c81d5db0b30d7c76a3699353da7205838ac06
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.11.0
|
Security for excptr-karjakak 0.2.7
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.