Metadata-Version: 2.1
Name: superglobals
Version: 0.0.17
Summary: globals() access anywhere. "We Do Anything, Anytime"
Home-page: https://github.com/sfinktah/superglobals
Author: Christopher Anderson
Author-email: sfinktah@github.spamtrak.org
License: MIT
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 2
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=2.7
Description-Content-Type: text/x-rst
License-File: LICENSE.txt

Easy access to globals() from inside a python module.

See: https://stackoverflow.com/questions/15959534/visibility-of-global-variables-in-imported-modules/69029612#69029612

Using superglobals
==================

.. code-block:: python

    import superglobals
    
    from superglobals import *

    superglobals()[var] = value

    setglobal('test', 123)
    defaultglobal('test', 456)
    assert(getglobal('test') == 123)

    setglobal('a.b.c', 7)
    > a['b']['c'] == 7

    setglobal('a\.b\.c', 8)
    > globals()['a.b.c'] == 8


Changelog
=========

0.0.10: initial release (2021-09-02)
0.0.13: added dotted object heirachy expansion (2021-09-13)


