exalt provides a convenient way to dynamically create closures and bind them to a custom namespace. This is primarily useful for preserving an execution-context when calling into a different function.
Example
from exalt import promote
def baz():
return bar
def foo():
bar = "baz"
return promote(baz, **locals())()
print(foo())
——————————————————————————— ↓ ———————————————————————————
baz
Installation
pip3 install --user exalt
Disclaimer
exalt heavily relies on CPython implementation details and probably shouldn't be used in a production environment.
Metadata
Release files for exalt 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| exalt-0.1.2.tar.gz | 3.8 kB | Without provenance | Details for exalt-0.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| exalt-0.1.2-py3-none-any.whl | Python 3 | none | any | Details for exalt-0.1.2-py3-none-any.whl |
Total release size: 11.0 kB
Release files / exalt-0.1.2.tar.gz
| Download URL | exalt-0.1.2.tar.gz |
|---|---|
| Size | 3.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b4ede875580506c288524e199e3ef69b688dfb18073e06fe121569d164e8f8fa
|
|
BLAKE2b-256 checksum How to use checksums |
0390beecaced2ca141dfbafa713bba2909833a6142d15b49a6bf6e4d922488a2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/0.12.10 CPython/3.7.1 Darwin/18.0.0
|
Release files / exalt-0.1.2-py3-none-any.whl
| Download URL | exalt-0.1.2-py3-none-any.whl |
|---|---|
| Size | 7.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d91272c1d1fb02f75c7cda3a0c4ba8da199a53586530cba325381e4d473a73d0
|
|
BLAKE2b-256 checksum How to use checksums |
676aa45bbc9663923ed9f23a2ee9911b687f02e1c9a35dd2faeb4360d9992769
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/0.12.10 CPython/3.7.1 Darwin/18.0.0
|
Security for exalt 0.1.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.