globals() access anywhere
Project description
Easy access to globals() from inside a python module.
Using superglobals
.. code-block:: python
import superglobals
from superglobals import *
superglobals()[var] = value
setglobal('test', 123)
defaultglobal('test', 456)
assert(getglobal('test') == 123)
Changelog
0.0.1: initial release (2021-09-02) 0.0.2: this document (2021-09-02)
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
superglobals-0.0.2.tar.gz
(1.6 kB
view hashes)