Skip to main content

The import module uses HTTP from the Internet

Project description

http_import

pip install http_import

  • 远程内存加载Python模块
import sys
import http_import

sys.path.append('http://localhost:8000')
http_import.install_path_hook()
import requests
print(dir(requests))
  • 开启http服务,python3 -m http.server

demo

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for http-import, version 0.1.2
Filename, size File type Python version Upload date Hashes
Filename, size http_import-0.1.2-py2.py3-none-any.whl (6.6 kB) File type Wheel Python version py2.py3 Upload date Hashes View
Filename, size http_import-0.1.2.tar.gz (7.3 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page