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.3.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.3.tar.gz.
File metadata
- Download URL: exutils-0.1.3.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 |
2629a98c63af048babd4d87301468a579099862491335609bc0368135500197d
|
|
| MD5 |
c7983efe633fa13cc85f5eeb89426c30
|
|
| BLAKE2b-256 |
37c893a0c9b8dc97b06089e791494a4d423c5251f7db6b1307da4e8cf783f73b
|
File details
Details for the file exutils-0.1.3-py3-none-any.whl.
File metadata
- Download URL: exutils-0.1.3-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 |
762cc206b20746df11d039303a0d7157d78ed55aa5269b50c3ac8607ffa6fe43
|
|
| MD5 |
4f9a197e807a7183991ff1d3e08e49b7
|
|
| BLAKE2b-256 |
92a218eb21171566668cfd204364459042f46cca48fec9ce7909cf1aaf99b100
|