Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/thomasballinger/lazyload
hack for causing Python modules to be loaded lazily
https://github.com/thomasballinger/lazyload
Last synced: about 2 months ago
JSON representation
hack for causing Python modules to be loaded lazily
- Host: GitHub
- URL: https://github.com/thomasballinger/lazyload
- Owner: thomasballinger
- License: mit
- Created: 2015-03-03T18:34:04.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2015-03-10T14:47:37.000Z (almost 10 years ago)
- Last Synced: 2024-10-10T19:11:12.219Z (2 months ago)
- Language: Python
- Size: 129 KB
- Stars: 52
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
- starred-awesome - lazyload - hack for causing Python modules to be loaded lazily (Python)
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 secondsSeems to work in Python 2.7, 3.4, and 3.5 (maybe others too?)
Authors:
* Thomas Ballinger
* Joe Jevnik