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.0.1.tar.gz (50.4 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.0.1-py3-none-any.whl (13.4 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for omniwrap-1.0.1.tar.gz
Algorithm Hash digest
SHA256 0b387331baec6ace1da14f0fe6855239b1e1e83234387ba20647bb495d305f0c
MD5 7ce5f010ccab38c530cf9aa8acaa7952
BLAKE2b-256 07559b54ea1d1af23ce5ce64183d3f512ecef9037d8af2ab6f6cc85ef0a28bb0

See more details on using hashes here.

Provenance

The following attestation bundles were made for omniwrap-1.0.1.tar.gz:

Publisher: publish.yml on omniviser/omniray

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

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

File hashes

Hashes for omniwrap-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 700d21a447239cf8a704a417f6bffb7ebbcd3bc3b44f9e9e86dab470190dc764
MD5 570b0db0fcc7f07be87d935d81d02cbb
BLAKE2b-256 c2ca85807d4e6b6d0cb79856326da9ce2278d71b00aff6e575f110fea4ed64b7

See more details on using hashes here.

Provenance

The following attestation bundles were made for omniwrap-1.0.1-py3-none-any.whl:

Publisher: publish.yml on omniviser/omniray

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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