cloud-import


Namecloud-import JSON
Version 0.4 PyPI version JSON
download
home_pagehttps://github.com/Henri-J-Norden/py-cloud-import
SummaryImport Python modules straight from the cloud (e.g. GitHub) at runtime!
upload_time2023-12-16 17:22:58
maintainer
docs_urlNone
authorHenri J. Norden (originally by James Murphy)
requires_python
licenseMIT
keywords cloud import arbitrary code execution
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            
Import Python modules straight from the cloud (e.g. GitHub) at runtime!

## Installation
* pip: `pip install cloud_import`
* no pip: copy [cloud_import.py](cloud_import/could_import.py) into your project

## Usage
See [examples/example1.py](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](https://github.com/mCodingLLC/VideosSampleCode/blob/master/videos/133_cloud_imports/cloud_imports.py) - check out his video "[You won't believe it! Import from the Cloud](https://www.youtube.com/watch?v=2f7YKoOU6_g)"  

## 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 

    

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/Henri-J-Norden/py-cloud-import",
    "name": "cloud-import",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "CLOUD,IMPORT,ARBITRARY CODE EXECUTION",
    "author": "Henri J. Norden (originally by James Murphy)",
    "author_email": "",
    "download_url": "https://files.pythonhosted.org/packages/e5/6d/3627dba215af7a80b769419782f6642a6e2f377629b4eeae78e1a0508a1e/cloud_import-0.4.tar.gz",
    "platform": null,
    "description": "\r\nImport Python modules straight from the cloud (e.g. GitHub) at runtime!\r\n\r\n## Installation\r\n* pip: `pip install cloud_import`\r\n* no pip: copy [cloud_import.py](cloud_import/could_import.py) into your project\r\n\r\n## Usage\r\nSee [examples/example1.py](examples/example1.py)\r\n\r\n## Why?\r\nThis can be used to entirely skip the \"deployment\" step for internal tooling, that's not meant for distribution or public usage.\r\n\r\nOriginally by [James Murphy](https://github.com/mCodingLLC/VideosSampleCode/blob/master/videos/133_cloud_imports/cloud_imports.py) - check out his video \"[You won't believe it! Import from the Cloud](https://www.youtube.com/watch?v=2f7YKoOU6_g)\"  \r\n\r\n## Limitations\r\n* No dependency handling\r\n* Fixed URL structure: the source code for module `foo.bar` must be accessible at `<url>/foo/bar/*.py`\r\n* Bad things will happen if the cloud source code changes while a package (with multiple modules) is being imported \r\n\r\n    \r\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Import Python modules straight from the cloud (e.g. GitHub) at runtime!",
    "version": "0.4",
    "project_urls": {
        "Download": "https://github.com/Henri-J-Norden/py-cloud-import.git",
        "Homepage": "https://github.com/Henri-J-Norden/py-cloud-import"
    },
    "split_keywords": [
        "cloud",
        "import",
        "arbitrary code execution"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "e56d3627dba215af7a80b769419782f6642a6e2f377629b4eeae78e1a0508a1e",
                "md5": "7ddd161724a6e93edcb36516cb27996c",
                "sha256": "8dd65f39815d898952e6d1bf2813ca8d2886bbfee89e6241767c38510b74e3e4"
            },
            "downloads": -1,
            "filename": "cloud_import-0.4.tar.gz",
            "has_sig": false,
            "md5_digest": "7ddd161724a6e93edcb36516cb27996c",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 3524,
            "upload_time": "2023-12-16T17:22:58",
            "upload_time_iso_8601": "2023-12-16T17:22:58.657962Z",
            "url": "https://files.pythonhosted.org/packages/e5/6d/3627dba215af7a80b769419782f6642a6e2f377629b4eeae78e1a0508a1e/cloud_import-0.4.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-12-16 17:22:58",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "Henri-J-Norden",
    "github_project": "py-cloud-import",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "cloud-import"
}
        
Elapsed time: 0.17525s