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.8.tar.gz (8.0 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.8-py3-none-any.whl (5.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: exutils-0.1.8.tar.gz
  • Upload date:
  • Size: 8.0 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.8.tar.gz
Algorithm Hash digest
SHA256 67b2ee1220b52aedacc7370da8477d048b001ce02e42860f8a002b69f9f9d012
MD5 3bc2efa104e66318cdbc56ebb75cfac8
BLAKE2b-256 3a76e526f8b103c52020f580d7b795b565207d7a70c570f1fac541289bb81cde

See more details on using hashes here.

File details

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

File metadata

  • Download URL: exutils-0.1.8-py3-none-any.whl
  • Upload date:
  • Size: 5.4 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.8-py3-none-any.whl
Algorithm Hash digest
SHA256 398b4671af2eeddb70c5de57ab1ddb47ba4007c2c3983ac5706666a9bbc528b2
MD5 904d981840a9a0abbf729a4574b52293
BLAKE2b-256 fbf63c8059c9694ba2b25f596ac1dc7878fb63c48c33076623f000f1204a6f77

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