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 -- python-ideas@python.org
To unsubscribe send an email to python-ideas-le...@python.org
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at 
https://mail.python.org/archives/list/python-ideas@python.org/message/YI5V3NHA5Z7KMWEBTXETYVGTXFW7SY73/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to