Skip to main content

Automatically wrap every function and method in your codebase.

Project description

omniwrap

Automatically wrap every function and method in your codebase with a single call.

See the main README for full documentation.

Installation

pip install omniwrap

Quick Start

from omniwrap import wrap_all

def log_calls(wrapped, instance, args, kwargs):
    print(f"Calling {wrapped.__qualname__}")
    return wrapped(*args, **kwargs)

wrap_all(log_calls)

License

Apache 2.0

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

omniwrap-1.2.0.tar.gz (53.2 kB view details)

Uploaded Source

Built Distribution

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

omniwrap-1.2.0-py3-none-any.whl (15.1 kB view details)

Uploaded Python 3

File details

Details for the file omniwrap-1.2.0.tar.gz.

File metadata

  • Download URL: omniwrap-1.2.0.tar.gz
  • Upload date:
  • Size: 53.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for omniwrap-1.2.0.tar.gz
Algorithm Hash digest
SHA256 b40b6321cecaa38d45fedeaed7997b7cf73e0d25d41e160fd29430f52145ffcd
MD5 31c0d8791bcc3f934de90af7d8b49454
BLAKE2b-256 b38696372777ec051873a76bc8cbf95697f6fb6525c72c51363aca3e6f72bce5

See more details on using hashes here.

File details

Details for the file omniwrap-1.2.0-py3-none-any.whl.

File metadata

  • Download URL: omniwrap-1.2.0-py3-none-any.whl
  • Upload date:
  • Size: 15.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for omniwrap-1.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 19940fd2e64c852c498caedd01d08c1ea973c5164b4395d7c8ca8d34e33a8736
MD5 a4cb447c9f596e2614a0db404c1acc2e
BLAKE2b-256 aa05a886126e8f7c6883538ea292c12f8a8a245fff16177ab04b378549dc360e

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