Common Python utilities, including exception catching decorator.
Project description
exutils
扩展工具包。
当前包含:
catch_exception:异常捕获装饰器,自动打印详细参数和堆栈信息。
安装
pip install exutils
from exutils import catch_exception
@catch_exception(return_value="error", suppress=True)
def divide(x, y):
return x / y
print(divide(10, 0))
LICENSE
(MIT License,开放使用)
MIT License
Copyright (c) 2025
Permission is hereby granted, free of charge, to any person obtaining a copy
...
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
exutils-0.1.5.tar.gz
(7.9 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file exutils-0.1.5.tar.gz.
File metadata
- Download URL: exutils-0.1.5.tar.gz
- Upload date:
- Size: 7.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4c1c65a2dcd6c1a4bdd48b6b41764dfde30ecb9e5451aa09239accc842761c3a
|
|
| MD5 |
b4abeb2bbceb5d759b87864116cabfab
|
|
| BLAKE2b-256 |
f2df570bd98390cb71e9063497134c9b2eafa9765a81517a8698c0498b8fe82d
|
File details
Details for the file exutils-0.1.5-py3-none-any.whl.
File metadata
- Download URL: exutils-0.1.5-py3-none-any.whl
- Upload date:
- Size: 5.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
200ce5bd4ef048250c47f8e34be8dadeaaccf7fb7eebbce665d4a204c89c13cc
|
|
| MD5 |
98f6e4cede3192f51dd9ea00e938b85a
|
|
| BLAKE2b-256 |
0e6270a38c2e67f492fa0a662dcaf613d4889a120c18c616d333fa78c18d58ae
|