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.0.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.0-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

Details for the file gumsh_py-1.1.0.tar.gz.

File metadata

  • Download URL: gumsh_py-1.1.0.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.0.tar.gz
Algorithm Hash digest
SHA256 944b70310e45657ebcefe94e39925413b21ec93bdbdac26b1fb8700b3af14b8f
MD5 9730ef4c55f9cbc0421bf4bf54528d4b
BLAKE2b-256 8830e15177d66040a4bcc5cd6eeca6677d82278ceb78d22e31350883feffece4

See more details on using hashes here.

Provenance

The following attestation bundles were made for gumsh_py-1.1.0.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.0-py3-none-any.whl.

File metadata

  • Download URL: gumsh_py-1.1.0-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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a66c666d323ced8f583261c10d5f70f8100d09751b379cbe6b03d22fbd48e095
MD5 74e4cee78b561ef35821ea823bffe872
BLAKE2b-256 7b4312510a7949854557780351cb016b53a590fb6c07fc031b083c7c69ecaf3c

See more details on using hashes here.

Provenance

The following attestation bundles were made for gumsh_py-1.1.0-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