This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Import Package/Module through HTTP/S repository
Type: enhancement Stage: resolved
Components: Extension Modules Versions: Python 3.7
process
Status: closed Resolution: later
Dependencies: Superseder:
Assigned To: Nosy List: brett.cannon, eric.snow, ncoghlan, operatorequals, r.david.murray
Priority: normal Keywords:

Created on 2017-08-23 10:18 by operatorequals, last changed 2022-04-11 14:58 by admin. This issue is now closed.

Repositories containing patches
https://github.com/operatorequals/httpimport
Messages (4)
msg300747 - (view) Author: John Torakis (operatorequals) * Date: 2017-08-23 10:18
A module presented in "https://github.com/operatorequals/httpimport" which provides functionality for package/module loading through HTTP/S, like the golang's "import github.com/someusr/somepkg/subpkg", but for any directory served with HTTP/S.

I believe that this module has to become a core feature, after, of course, the necessary scrutiny!
msg300755 - (view) Author: R. David Murray (r.david.murray) * (Python committer) Date: 2017-08-23 14:58
This kind of proposal should start with a discussion on the python-ideas mailing list.  You can reopen the issue if there is a consensus for moving forward...but I wouldn't be surprised if this was considered to be a PEP level proposal.
msg300773 - (view) Author: Nick Coghlan (ncoghlan) * (Python committer) Date: 2017-08-24 02:20
Note that we're highly unlikely to ever accept a PEP to provide this natively, as it couples the process of runtime module loading too tightly to what should be private organisational details of the software publication process (domain names, repository names, etc).

We already know from experience with Java component naming that these kinds of approaches simply don't age well for widely adopted software in a distributed development context, as they turn things that shouldn't have any software compatibility implications (renaming a development repository, moving to a different repository hosting provider, selling a company) into major API compatibility management headaches.

While there are some reasonable applications for the feature when it comes to private software modules that are used only within a single (relatively small) organisation, the existence of httpimport also shows that there aren't any further changes needed to the core import system to enable it.
msg300775 - (view) Author: R. David Murray (r.david.murray) * (Python committer) Date: 2017-08-24 03:30
Indeed, I personally can't imagine a circumstance in which I'd want to use this feature.  Even inside an org.  It also has security implications, which would also make it a harder sell.
History
Date User Action Args
2022-04-11 14:58:51adminsetgithub: 75447
2017-08-24 03:30:18r.david.murraysetmessages: + msg300775
2017-08-24 02:20:52ncoghlansetmessages: + msg300773
2017-08-23 14:58:14r.david.murraysetstatus: open -> closed

versions: + Python 3.7, - Python 2.7, Python 3.3, Python 3.4, Python 3.5, Python 3.6
nosy: + eric.snow, brett.cannon, ncoghlan, r.david.murray

messages: + msg300755
resolution: later
stage: resolved
2017-08-23 10:18:02operatorequalscreate