Metadata-Version: 2.4
Name: magic-import
Version: 0.1.3
Summary: Import python object from string and return the reference of the object.
Home-page: https://github.com/appstore-zencore/magic-import
Author: zencore
Author-email: dobetter@zencore.cn
License: MIT
Keywords: magic-import
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Requires: dictop
Requires-Dist: dictop
Dynamic: author
Dynamic: author-email
Dynamic: classifier
Dynamic: description
Dynamic: home-page
Dynamic: keywords
Dynamic: license
Dynamic: requires
Dynamic: requires-dist
Dynamic: summary

magic-import
============

.. image:: https://travis-ci.org/appstore-zencore/magic-import.svg?branch=master
    :target: https://travis-ci.org/appstore-zencore/magic-import


Import python object from string and return the reference of the object.
The object can be a class, instance, variable and anything else,
and can be from class, instance, module, global/local environment.


Install
-------

::

    pip install magic-import


Usage
-----

::

    from magic_import import import_from_string
    
    listdir = import_from_string("os.listdir")
    files = listdir(".")

