dheera/magicimport.py
View on GitHub ↗ ★ 95 Python
4 mentions on Hacker News by 1 person: 2 stories, 2 comments · first 2020-09-11 · latest 2022-11-02
20082026
-
…of one package to exist. I don't think it's impossible to do though with some additional work. https://github.com/dheera/magicimport.py Sample code: from magicimport import magicimport tornado = magicimport("tornado", version = "4.5")
comment by dheera · 2022-11-02 · in Dozens of malicious PyPI packages discovered targeting developers -
…version = "4.5") and you have exactly what you need, as long as there is an internet connection. https://github.com/dheera/magicimport.py
comment by dheera · 2021-07-24 · in How the Python import system works