Skip to main content

Namespace promotion done right!

Project description


Python 3.7 Not production ready Travis status

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.


from exalt import promote

def baz():
    return bar

def foo():
    bar = "baz"

    return promote(baz, **locals())()


——————————————————————————— ↓ ———————————————————————————



pip3 install --user exalt


exalt heavily relies on CPython implementation details and probably shouldn't be used in a production environment.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for exalt, version 0.1.2
Filename, size File type Python version Upload date Hashes
Filename, size exalt-0.1.2-py3-none-any.whl (7.3 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size exalt-0.1.2.tar.gz (3.8 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page