Cope 2.5.0
My personal "standard library" of all the generally useful code I've written for various projects over the years
|
Some useful abstractions of imports. More...
Functions | |
def | lazy_import (str name) |
Import a package upon being used, instead of immediately. | |
def | ensure_imported (package, str pip_name=...) |
A decorator to ensure that package is not None, and if it is, raise an ImportError telling the user what package needs to be installed. | |
def | try_import (str name, str pip_name=..., bool err=False) |
Try to import a package, if it exists. | |
Some useful abstractions of imports.