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)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
omniwrap-1.2.1-py3-none-any.whl
(15.1 kB
view details)
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
acdc71cd2ebf23fee9207c9cc176560de8812c415887d2bd0697e8953f562876
|
|
| MD5 |
8285584f76371b60baea98a67cbf6c36
|
|
| BLAKE2b-256 |
3df78f21a065ef693a5b8b1f2e05b890d488834d3fb72b6ea623713ac86928c9
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8ce22ff95bf2e18c6aefce056d65afc9590420ae41ad126f2f182810601bdf7a
|
|
| MD5 |
5fd50e857da79d6a58abf406439cd31d
|
|
| BLAKE2b-256 |
0a3837821966f23a3be79926992fb2607d40faa4569ad796580ae88eb06b939a
|