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.7.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.7.tar.gz.
File metadata
- Download URL: exutils-0.1.7.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 |
402d59947a7242f34e10c2916f2ee3ae6f2a2c3a6ba33fff6eac5d123cb61ab5
|
|
| MD5 |
54997c12116b06cf43357d3f715a745e
|
|
| BLAKE2b-256 |
54970ea3bd3c8666934eb495f5f13e384e01c6089070c72eec3784bc9bb1b129
|
File details
Details for the file exutils-0.1.7-py3-none-any.whl.
File metadata
- Download URL: exutils-0.1.7-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 |
49bb7048da1cd7f80ac42d24fb45a241972033e2f75302c92a0eb7b99a7a3634
|
|
| MD5 |
8e47b207a986261f7a3ee0ee89906b58
|
|
| BLAKE2b-256 |
5e159ce0c37a593a6977cab766d8c76feaa21e79530895c2858fa15ade7baac5
|