Skip to main content

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

gumsh_py-1.1.1.tar.gz (5.4 kB view details)

Uploaded Source

Built Distribution

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

gumsh_py-1.1.1-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

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

Hashes for gumsh_py-1.1.1.tar.gz
Algorithm Hash digest
SHA256 1e9cd0d5e07073ba9190e50e2b9b768846049c99e9114ab96863bfc73e629343
MD5 a6b95d1f7c1166362543507040a38b65
BLAKE2b-256 c215e59e49fcadfcb59dce2ed238476787434a83a5a3e26e856685cb4f6c31ef

See more details on using hashes here.

Provenance

The following attestation bundles were made for gumsh_py-1.1.1.tar.gz:

Publisher: python-publish.yml on alexjhewitt/gumsh-py

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for gumsh_py-1.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 72b1361eee89616ca1c04f2c90ec8b63c2897b4775a3fa6b3e09ac97d7415d86
MD5 ee31a0488538d2847753265f897070a9
BLAKE2b-256 dbb1eae680411742c07223c34bf6b4e820127175e8238c6e87f9f4f8ce256f7f

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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