In the context of building Docker images, it is often required to download
stuff. If curl/wget is available, great, but often slim images don't
include that. The urllib could provide a very simple download functionality
(like http offers a simple server):
from urllib.request import urlopen
data = urlopen('https://.../install-poetry.py').read()
# print or save data
_______________________________________________
Python-ideas mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at
https://mail.python.org/archives/list/[email protected]/message/YI5V3NHA5Z7KMWEBTXETYVGTXFW7SY73/
Code of Conduct: http://python.org/psf/codeofconduct/