Skip to content

noahmorrison/limp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

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

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages