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)
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.0-py3-none-any.whl
(15.1 kB
view details)
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b40b6321cecaa38d45fedeaed7997b7cf73e0d25d41e160fd29430f52145ffcd
|
|
| MD5 |
31c0d8791bcc3f934de90af7d8b49454
|
|
| BLAKE2b-256 |
b38696372777ec051873a76bc8cbf95697f6fb6525c72c51363aca3e6f72bce5
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
19940fd2e64c852c498caedd01d08c1ea973c5164b4395d7c8ca8d34e33a8736
|
|
| MD5 |
a4cb447c9f596e2614a0db404c1acc2e
|
|
| BLAKE2b-256 |
aa05a886126e8f7c6883538ea292c12f8a8a245fff16177ab04b378549dc360e
|