Skip to main content

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


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.post0.tar.gz (6.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

exutils-0.1.3.post0-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

Details for the file exutils-0.1.3.post0.tar.gz.

File metadata

  • Download URL: exutils-0.1.3.post0.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

Hashes for exutils-0.1.3.post0.tar.gz
Algorithm Hash digest
SHA256 67db8f8471e427e7f334e0c4b2cf91e5c2fb0f406eba156fd251a1637b26341a
MD5 7c95c1068acc53030aefb1a566f12cad
BLAKE2b-256 9198618d0b02a2e36bc4877d01d83cba23dce7093f0d32099929e8f30e68af17

See more details on using hashes here.

File details

Details for the file exutils-0.1.3.post0-py3-none-any.whl.

File metadata

  • Download URL: exutils-0.1.3.post0-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

Hashes for exutils-0.1.3.post0-py3-none-any.whl
Algorithm Hash digest
SHA256 e7a2b246de77846404c264a349923730228a6b5aa603523bd01cb9b8ecc74af8
MD5 84a45b3e38a020d6476d868ad8083d9a
BLAKE2b-256 fe268bceb8e6fe015bd4f97ca5e4e5914c38f9d7af62e962a3d4efa5f0f59061

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page