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.4.tar.gz
(6.7 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.4.tar.gz.
File metadata
- Download URL: exutils-0.1.4.tar.gz
- Upload date:
- Size: 6.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
347f1e555cd937bcea32d1ead03cb105d21bfeff91950ecf93007ad638212cbc
|
|
| MD5 |
35bd7ebc5a561dace064387869afc5be
|
|
| BLAKE2b-256 |
d1c64b4813c69f4beb05e00fce685c08f00f0580642e1a5e2a7151db14dd0198
|
File details
Details for the file exutils-0.1.4-py3-none-any.whl.
File metadata
- Download URL: exutils-0.1.4-py3-none-any.whl
- Upload date:
- Size: 4.1 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 |
f03e7498587d509ba479032e81ff8e34afd9502634aca347f391c73447dac129
|
|
| MD5 |
30be4c5e3a752547da422db18f6e7695
|
|
| BLAKE2b-256 |
331a36af7b81a6c252b2338e6edcac644ce892d4f80f5583cab9a64c13ad29a6
|