Skip to content

pombredanne/lazyload-1

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bpython starts up slowly in Python 2 at the moment due to importing requests taking a while - this is my temp solution

import lazyload
lazyload.make_lazy('requests')
import requests # nearly instant
requests.get    # takes 1.2 seconds

Seems to work in Python 2.7, 3.4, and 3.5 (maybe others too?)

Authors:

  • Thomas Ballinger
  • Joe Jevnik

About

hack for causing Python modules to be loaded lazily

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%