Skip to content

probml/deimport

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

deimport

A simple package to "deimport" already imported python packages.

Installing using PyPi:

pip install deimport

Usage

from deimport.deimport import deimport
deimport(foo,verbose=True)

Limitations:

deimport removes the module and its submodules from the globals and sys.modules. sometimes that trips the python module loading cache. if that happens all you have to do is something like :

try:
  import foo
except:
  import foo

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages