[New-bugs-announce] [issue45466] Simple curl/wget-like download functionality in urllib (like http offers server)
Tom Pohl
report at bugs.python.org
Thu Oct 14 02:15:12 EDT 2021
New submission from Tom Pohl <thomas.pohl at gmail.com>:
In the context of building Docker images, it is often required to download stuff. If curl/wget are available, great, but often slim images don't offer 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
If there's some interest, I could open a PR.
----------
components: Library (Lib)
messages: 403888
nosy: tom.pohl
priority: normal
severity: normal
status: open
title: Simple curl/wget-like download functionality in urllib (like http offers server)
type: enhancement
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue45466>
_______________________________________
More information about the New-bugs-announce
mailing list