A wrapper for callable functions with environments to register pre- and post-processing functions checks and modifications.
Project description
WrapEnv
An environment that can hold several callable functions along with pre- and post-processing functions and auxilary environment. It is intended to be used as a wrapper for a function that is to be called in a different environment than the one it was defined in.
Installation
As usual, you can install the package using pip:
pip install wrapenv
Usage
The package provides an instance of the class ENVIRONMENT that can be used as a decorator for functions that
are to be wrapped. As the instance is a global variable, it can be used from anywhere in the code (even in other modules).
The example in the EXAMPLES folder demonstrates how to use the ENVIRONMENT instance to wrap a
function that is to be called in a different environment than the one it was defined in.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
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
File details
Details for the file wrapenv-0.1.4.tar.gz.
File metadata
- Download URL: wrapenv-0.1.4.tar.gz
- Upload date:
- Size: 3.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.5.0 CPython/3.11.3 Windows/10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4a8c40077c9db7f480a565d3c89b3ec06cef7982450a4ce662fba14b95d53e0a
|
|
| MD5 |
c8aec26119b091bfc636909e82e44c08
|
|
| BLAKE2b-256 |
f571d246cc8af31acc0e4265e6b6c9ffb2ab8d3c91f1cb59be3f658250a93eab
|
File details
Details for the file wrapenv-0.1.4-py3-none-any.whl.
File metadata
- Download URL: wrapenv-0.1.4-py3-none-any.whl
- Upload date:
- Size: 4.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.5.0 CPython/3.11.3 Windows/10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
011bf47e2064da70eb4a39488a0395abbcc85eb817636fb5cfd167aa9d92a6b6
|
|
| MD5 |
e52e5342fdb2fa3a25ef5e62f0f082fe
|
|
| BLAKE2b-256 |
882286e154cbdfe1bf6ca9850012334d0872858f5ec45a6aaf603b57196294b7
|