|
|
Subscribe / Log in / New account

Remote package/module imports through HTTP/S

From:  John Torakis <john.torakis-Re5JQEeQqe8AvxtiuMwx3w-AT-public.gmane.org>
To:  python-ideas-+ZN9ApsXKcEdnm+yROfE0A-AT-public.gmane.org
Subject:  Remote package/module imports through HTTP/S
Date:  Wed, 23 Aug 2017 19:55:00 +0300
Message-ID:  <58b95461-9c9e-23bf-3167-548545584fdf@gmail.com>

Hello all!

Today I opened an issue in bugs.python.org
(http://bugs.python.org/issue31264) proposing a module I created for
remote package/module imports through standard HTTP/S.

The concept is that, if a directory is served through HTTP/S (the way
SimpleHTTPServer module serves directories), a Finder/Loader object can
fetch Python files from that directory using HTTP requests, and finally
load them as modules (or packages) in the running namespace.

The repo containing a primitive (but working) version of the
Finder/Loader, also contains self explanatory examples (in the README.md):

https://github.com/operatorequals/httpimport


My proposal is that this module can become a core Python feature,
providing a way to load modules even from Github.com repositories,
without the need to "git clone - setup.py install" them.


Other languages, like golang, provide this functionality from their
early days (day one?). Python development can be greatly improved if a
"try before pip installing" mechanism gets in place, as it will add a
lot to the REPL nature of the testing/experimenting process.



Thank you for your time,

John Torakis, IT Security Researcher



P.S: It is my first time in this mailing list and generally Python
contribution. Please be tolerant!


_______________________________________________
Python-ideas mailing list
Python-ideas-+ZN9ApsXKcEdnm+yROfE0A@public.gmane.org
https://mail.python.org/mailman/listinfo/python-ideas
Code of Conduct: http://python.org/psf/codeofconduct/



to post comments


Copyright © 2017, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds