Skip to main content

Import python object from string and return the reference of the object.

Project description

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

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(".")

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 magic-import, version 0.1.3
Filename, size File type Python version Upload date Hashes
Filename, size magic-import-0.1.3.tar.gz (2.3 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