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.0.tar.gz (2.8 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.0-py3-none-any.whl (3.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: exutils-0.1.0.tar.gz
  • Upload date:
  • Size: 2.8 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.0.tar.gz
Algorithm Hash digest
SHA256 3abb463ae0b76bcee05f1843a6cb2cd341eedac4c9ba50c6a319701bc5f45bb1
MD5 2279d290e52a3d473e109928c6bc2557
BLAKE2b-256 9ff140e647edb64a1170eed14b0020161f0f6ccd8279a92559d75142be5c4c0f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: exutils-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fbf695850b9be443a09cda75c72684807abfbefe96e8fa3246795bdad1164b89
MD5 61c39b349355c6c0c7f282f3a1c37e90
BLAKE2b-256 b672b6c519991060674826c3ff53be2a623170ae9f024cf4a96f9a7fa2e50a62

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