Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/thomasballinger/lazyload

hack for causing Python modules to be loaded lazily
https://github.com/thomasballinger/lazyload

Last synced: about 1 month ago
JSON representation

hack for causing Python modules to be loaded lazily

Awesome Lists containing this project

README

        

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