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.6.tar.gz (7.9 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.6-py3-none-any.whl (5.3 kB view details)

Uploaded Python 3

File details

Details for the file exutils-0.1.6.tar.gz.

File metadata

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

Hashes for exutils-0.1.6.tar.gz
Algorithm Hash digest
SHA256 38803b3364d4c890d104975fd38dc2b3fd2d9fda2decbbc7b80e676352980423
MD5 2090f615d04e99546e80f1cb6efc0e6f
BLAKE2b-256 d17edfc2ddea3d92701e1e5a5086c9af713f64a2e9dd6c9751d3ef7f0a935c3d

See more details on using hashes here.

File details

Details for the file exutils-0.1.6-py3-none-any.whl.

File metadata

  • Download URL: exutils-0.1.6-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

Hashes for exutils-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 ec77eab66d35ce74b5463af42e32059817a43c2bd5a0f324092b6885a3c36972
MD5 911f1e6ff7fec22da98695a03613d710
BLAKE2b-256 d6deb0305430ba9806e773a4fe3653c46e24efbc7645dba1172a9e716e21a3bd

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