Metadata-Version: 1.1
Name: safescope
Version: 0.1.2
Summary: Python package for preventing use of variables from enclosing scope.
Home-page: https://github.com/havakv/safescope
Author: Haavard Kvamme
Author-email: haavard.kvamme@gmail.com
License: BSD license
Description-Content-Type: UNKNOWN
Description: =========
        safescope
        =========
        
        
        .. image:: https://img.shields.io/pypi/v/safescope.svg
                :target: https://pypi.python.org/pypi/safescope
        
        .. image:: https://img.shields.io/travis/havakv/safescope.svg
                :target: https://travis-ci.org/havakv/safescope
        
        .. image:: https://readthedocs.org/projects/safescope/badge/?version=latest
                :target: https://safescope.readthedocs.io/en/latest/?badge=latest
                :alt: Documentation Status
        
        .. image:: https://pyup.io/repos/github/havakv/safescope/shield.svg
             :target: https://pyup.io/repos/github/havakv/safescope/
             :alt: Updates
        
        
        Python package for preventing use of variables from enclosing scope.
        
        
        * Free software: BSD license
        * Documentation: https://safescope.readthedocs.io.
        
        Install
        --------
        
        ::
        
            pip install safescope
        
        
        Features
        --------
        
        This is a package that can be used for preventing functions from using global variables,
        or variables from enclosing scopes.
        The functionality is only meant for use in notebooks, and not real code.
        Arguably, use of this package incurrage bad programming habits...
        
        Quickstart:
        ::
        
            from safescope import assert_local_vars
        
            a = 0
        
            @assert_local_vars
            def foo():
                b = 5
                return a + b
        
        This should raise an error explaining that a is not in the function scope.
        
        Credits
        ---------
        
        This package was created with Cookiecutter_ and the `audreyr/cookiecutter-pypackage`_ project template.
        
        .. _Cookiecutter: https://github.com/audreyr/cookiecutter
        .. _`audreyr/cookiecutter-pypackage`: https://github.com/audreyr/cookiecutter-pypackage
        
        
        
        =======
        History
        =======
        
        0.1.0 (2018-01-11)
        ------------------
        
        * First release on PyPI.
        
Keywords: safescope
Platform: UNKNOWN
Classifier: Development Status :: 2 - Pre-Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: BSD License
Classifier: Natural Language :: English
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 2.6
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.3
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
