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.1.post3.tar.gz (6.6 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.1.post3-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

Details for the file exutils-0.1.1.post3.tar.gz.

File metadata

  • Download URL: exutils-0.1.1.post3.tar.gz
  • Upload date:
  • Size: 6.6 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.1.post3.tar.gz
Algorithm Hash digest
SHA256 67b84c8bccca64eddcfa6b097bc43d592001c8b0986ff7a64874e00cce0ecad9
MD5 c4dc05c5a157e121c87ebb3ef3e3cdf0
BLAKE2b-256 b8b6436fec18a1edc11925cbc8b7c94ab3938b4fa6a2bfa7879db5e2e5af6ae6

See more details on using hashes here.

File details

Details for the file exutils-0.1.1.post3-py3-none-any.whl.

File metadata

  • Download URL: exutils-0.1.1.post3-py3-none-any.whl
  • Upload date:
  • Size: 4.0 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.1.post3-py3-none-any.whl
Algorithm Hash digest
SHA256 828e441ba507d2b0095e3528fef799f649556b6aa76ff48f53bbe93509b7264e
MD5 171e6a26630468e9e00981667fdb6e33
BLAKE2b-256 6a9cc48307edd902f1c4a0ce40874e7d2957a00c1f05b894bd5e7ef57d8fb815

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