Skip to main content

No project description provided

Project description

GistRun is a command-line tool that allows you to fetch and execute code from GitHub Gists. It provides a convenient way to run code snippets or scripts directly from Gists, without the need to clone or download the entire repository.

Use Cases

GistRun can be particularly useful in the following scenarios:

  • Reusing code snippets: Instead of rewriting the same code snippets for common tasks (e.g., utility functions, data processing scripts, etc.), you can store them in GitHub Gists and easily fetch and execute them using GistRun.

  • Sharing scripts: GistRun allows you to share scripts or code snippets with others by hosting them on GitHub Gists. Others can then execute your code using GistRun without needing to clone or download your entire repository.

  • Automating workflows: You can integrate GistRun into your automation scripts or continuous integration/deployment pipelines to fetch and execute scripts or tests directly from Gists, streamlining your workflows.

  • Learning and experimenting: GistRun provides a convenient way to execute code snippets from GitHub Gists, making it easier to learn from examples or experiment with new ideas without cluttering your local environment.

By leveraging GistRun, you can save time, avoid reinventing the wheel, and promote code reuse and collaboration within your team or community.

Installation

To install GistRun, run:

$ pip install gistrun

Usage

The main command to execute code from a GitHub Gist is gistrun exec:

$ gistrun exec octocat/my-gist

This command will fetch the gist named my-gist owned by the user octocat and execute the files it contains using the appropriate commands based on the file extensions.

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

gistrun-1.0.14.tar.gz (45.0 kB view details)

Uploaded Source

Built Distribution

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

gistrun-1.0.14-py3-none-any.whl (21.1 kB view details)

Uploaded Python 3

File details

Details for the file gistrun-1.0.14.tar.gz.

File metadata

  • Download URL: gistrun-1.0.14.tar.gz
  • Upload date:
  • Size: 45.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for gistrun-1.0.14.tar.gz
Algorithm Hash digest
SHA256 bbf4400aad5554a521afe560dd41ac0335ca61ef61104a9345fdfb6c5e6f1b71
MD5 ff53ef9327297ed62e686c3f9cb33e92
BLAKE2b-256 cadd96edc9907fc06fdcac38c090a620270032cfaf47c5901d1baec47d3a701e

See more details on using hashes here.

File details

Details for the file gistrun-1.0.14-py3-none-any.whl.

File metadata

  • Download URL: gistrun-1.0.14-py3-none-any.whl
  • Upload date:
  • Size: 21.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for gistrun-1.0.14-py3-none-any.whl
Algorithm Hash digest
SHA256 0ffc5eea06fa413c22123b6a510cd45025aead92bc827b43ed52f4fbb66ab93a
MD5 fb06a75c16e02805e65def2e063febd5
BLAKE2b-256 8478ed0bd29e74f27ecaecffe523e74bfa458f05e64a10fb87594f755cec199d

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