4 ms·
A while ago I have implemented something similar to that in Python, although specifying versions requires using function calls instead of imports. Turns out in
by mdzn 2y ago
A while ago I have implemented something similar to that in Python, although specifying versions requires using function calls instead of imports. Turns out in Python you can execute arbitrary code during imports via hooks, including calling out to pip to install a dependency.
https://github.com/miedzinski/import-pypi https://github.com/miedzinski/import-pypi