Skip to content

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

limp

Lazy imports in python

Just add import limp to the top of your imports and they'll only be imported when you use the module

#!/usr/bin/python

import limp  # Lazy imports begin now

import json
import sys

print('json' in sys.modules)  # False
print(', '.join(json.loads('["Hello", "World!"]')))
print('json' in sys.modules)  # True

About

Lazy imports in python

Resources

Stars

10 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages