Skip to main content

Import module from Github Gist

This project has been archived.

The maintainers of this project have marked this project as archived. No new releases are expected.

Project description

Import Gist

Downloads a Python script from a GitHub Gist and imports it as a module.

Usage

from import_gist as import_gist

your_module = import_gist(<GIST_URL>)
# Or
module_name = import_gist(name=<MODULE_NAME>, url=<GIST_URL>)

Parameters

  • url (str): The raw URL of the Gist.
  • name (str, optional): The name to assign to the module. If None, it defaults to the filename in the URL.

Returns

  • module: The imported module.

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

import_gist-0.1.0-py3-none-any.whl (2.4 kB view details)

Uploaded Python 3

File details

Details for the file import_gist-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: import_gist-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 2.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.4

File hashes

Hashes for import_gist-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 deb6462e7f0da914ab3904428aacc86867148c3ec1b00a0553d2d278c83eb020
MD5 29b3a3a79e2788e3f5570c6e98d2749b
BLAKE2b-256 9a7130994f6d66a1a54744af3cb55a66e0611b0e1ee2702e0d45fa6cc263bd21

See more details on using hashes here.

Supported by

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