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.1.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.1-py3-none-any.whl (15.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: omniwrap-1.2.1.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.1.tar.gz
Algorithm Hash digest
SHA256 acdc71cd2ebf23fee9207c9cc176560de8812c415887d2bd0697e8953f562876
MD5 8285584f76371b60baea98a67cbf6c36
BLAKE2b-256 3df78f21a065ef693a5b8b1f2e05b890d488834d3fb72b6ea623713ac86928c9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: omniwrap-1.2.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8ce22ff95bf2e18c6aefce056d65afc9590420ae41ad126f2f182810601bdf7a
MD5 5fd50e857da79d6a58abf406439cd31d
BLAKE2b-256 0a3837821966f23a3be79926992fb2607d40faa4569ad796580ae88eb06b939a

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