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.

Source Distribution

http_import-0.1.2.tar.gz (7.3 kB view hashes)

Uploaded Source

Built Distribution

http_import-0.1.2-py2.py3-none-any.whl (6.6 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page