Skip to main content

Import Python modules straight from the cloud (e.g. GitHub) at runtime!

Project description

Import Python modules straight from the cloud (e.g. GitHub) at runtime!

Installation

  • pip: pip install cloud_import
  • no pip: copy cloud_import.py into your project

Usage

See examples/example1.py

Why?

This can be used to entirely skip the "deployment" step for internal tooling, that's not meant for distribution or public usage.

Originally by James Murphy - check out his video "You won't believe it! Import from the Cloud"

Limitations

  • No dependency handling
  • Fixed URL structure: the source code for module foo.bar must be accessible at <url>/foo/bar/*.py
  • Bad things will happen if the cloud source code changes while a package (with multiple modules) is being imported

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

cloud_import-0.4.tar.gz (3.5 kB view details)

Uploaded Source

File details

Details for the file cloud_import-0.4.tar.gz.

File metadata

  • Download URL: cloud_import-0.4.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.0

File hashes

Hashes for cloud_import-0.4.tar.gz
Algorithm Hash digest
SHA256 8dd65f39815d898952e6d1bf2813ca8d2886bbfee89e6241767c38510b74e3e4
MD5 7ddd161724a6e93edcb36516cb27996c
BLAKE2b-256 e56d3627dba215af7a80b769419782f6642a6e2f377629b4eeae78e1a0508a1e

See more details on using hashes here.

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