Import python module over the internet/multiple protocols or dynamically create module
问题 Is it possible to import a Python module from over the internet using the http ( s ), ftp , smb or any other protocol? If so, how? If not, why? I guess it's about making Python use more the one protocol(reading the filesystem) and enabling it to use others as well. Yes I agree it would be many folds slower, but some optimization and larger future bandwidths would certainly balance it out. E.g.: import site site.addsitedir("https://bitbucket.org/zzzeek/sqlalchemy/src