gumsh_py is a Python interface of charm.sh's shell tool called gum
Project description
gumsh_py
gumsh_py is a Python interface of charm.sh's shell tool called gum. Gum is used to create aesthetically pleasing shell scripts.
Installation
Install gum for your environment using the instructions. Then install my python package like so:
$ pip install gumsh-py
Usage
from gumsh_py import gumsh_py as gp
gumpy.choose(prompt="favorite languages?", options=["python", "javascript", "java", "c++", "c#"])
gumpy.spin(command="sleep 5", show_output=False, spinner="dot", text="Sleeping...")
print(gumpy.confirm(prompt="Are you positive?"))
gumpy.get_input(prompt="Enter your name:", placeholder="John Doe")
gumpy.log(text="Hello, World!", level="info", time="ansic")
Note
Not all command flag options in the gum library are given for each command. And not all commands are included. If this package picks up steam, I will consider adding support.
E.g. gum choose for example allows for a limit which I have included functionality for, but there are other options such as CursorPrefix that are not included for simplicity's sake.
To view flags that the Python package uses, go to the gum repository, choose the command you are using choose for example, and open the options.go file to view flag options.
Pypi
Pypi details.
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
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 gumsh_py-1.1.1.tar.gz.
File metadata
- Download URL: gumsh_py-1.1.1.tar.gz
- Upload date:
- Size: 5.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1e9cd0d5e07073ba9190e50e2b9b768846049c99e9114ab96863bfc73e629343
|
|
| MD5 |
a6b95d1f7c1166362543507040a38b65
|
|
| BLAKE2b-256 |
c215e59e49fcadfcb59dce2ed238476787434a83a5a3e26e856685cb4f6c31ef
|
Provenance
The following attestation bundles were made for gumsh_py-1.1.1.tar.gz:
Publisher:
python-publish.yml on alexjhewitt/gumsh-py
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
gumsh_py-1.1.1.tar.gz -
Subject digest:
1e9cd0d5e07073ba9190e50e2b9b768846049c99e9114ab96863bfc73e629343 - Sigstore transparency entry: 148749070
- Sigstore integration time:
-
Permalink:
alexjhewitt/gumsh-py@4e074cf5709dd5a480179a957b5f0f4dffcd6a54 -
Branch / Tag:
refs/tags/1.1.1 - Owner: https://github.com/alexjhewitt
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@4e074cf5709dd5a480179a957b5f0f4dffcd6a54 -
Trigger Event:
push
-
Statement type:
File details
Details for the file gumsh_py-1.1.1-py3-none-any.whl.
File metadata
- Download URL: gumsh_py-1.1.1-py3-none-any.whl
- Upload date:
- Size: 3.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
72b1361eee89616ca1c04f2c90ec8b63c2897b4775a3fa6b3e09ac97d7415d86
|
|
| MD5 |
ee31a0488538d2847753265f897070a9
|
|
| BLAKE2b-256 |
dbb1eae680411742c07223c34bf6b4e820127175e8238c6e87f9f4f8ce256f7f
|
Provenance
The following attestation bundles were made for gumsh_py-1.1.1-py3-none-any.whl:
Publisher:
python-publish.yml on alexjhewitt/gumsh-py
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
gumsh_py-1.1.1-py3-none-any.whl -
Subject digest:
72b1361eee89616ca1c04f2c90ec8b63c2897b4775a3fa6b3e09ac97d7415d86 - Sigstore transparency entry: 148749071
- Sigstore integration time:
-
Permalink:
alexjhewitt/gumsh-py@4e074cf5709dd5a480179a957b5f0f4dffcd6a54 -
Branch / Tag:
refs/tags/1.1.1 - Owner: https://github.com/alexjhewitt
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@4e074cf5709dd5a480179a957b5f0f4dffcd6a54 -
Trigger Event:
push
-
Statement type: