Run scripts from Github on the fly
Project description
Run scripts from GitHub, npx-style.
Usage
ghx rshk/ghx-example
In its most basic form, it will make a shallow copy of the specified GitHub repository and run a script from it.
By default, it will look for an executable named bin/run inside the repo folder.
Run a different script:
ghx rshk/ghx-example/bin/two
Or from a different branch:
ghx -b foobar rshk/ghx-example
Installation
You need a Python 3 interpreter and pip installed.
pip install ghx
Or install in the user home directory (usually ~/.local):
pip install --user ghx
(Make sure you have ~/.local/bin in your PATH)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ghx-0.1.1.tar.gz.
File metadata
- Download URL: ghx-0.1.1.tar.gz
- Upload date:
- Size: 3.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0aeedff46d7e17e54baa4b36fcc5e9470ac0fb6ad00ad402cd4bd5f924fc3aae
|
|
| MD5 |
525364b4f8b74798a3f157b65cc01091
|
|
| BLAKE2b-256 |
2587c5572f0d491cb1931d2c3a82145e73e42e30fccdaba31c70de8c9940b146
|
File details
Details for the file ghx-0.1.1-py3-none-any.whl.
File metadata
- Download URL: ghx-0.1.1-py3-none-any.whl
- Upload date:
- Size: 3.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8cc8e1a0f074a270b31776abe81caaebf32f608fbf8720def45da44eca34031c
|
|
| MD5 |
9b5421aee1d726e61679db2c42280d65
|
|
| BLAKE2b-256 |
853afed515e7c1895823efde2d351b04ff4ae0d6717e895656f9c937b71b631b
|