Skip to main content
Archived

This project has been archived by its maintainers, and is no longer receiving any updates.

GUMX

An over-engineered Python lib for Gum.

pip install gumx

Binary management

The Gum binary is automatically installed from the original Gum repository when launching the module.

  • You can see the location of the binary with the gumx command.
  • If you want to specify a custom binary, use gumx --set path/to/gum.

Usage

This is quickstart guide. See the See the Gum tutorial for advanced info. All functions and arguments have type hints ease of use.

# Import library (Gum is automatically installed on first run here)
import gumx

# Pick item(s) in a list
response = gumx.choose(['blue', 'red', 'green'], header = 'Favorite color?')

# Confirm an actiono
assert gumx.confirm('Are you sure?', default = False)

# Select a file from a tree
file = gumx.file('.', style = {'height': 5})

# Prompt the user
password = gumx.input(prompt = 'Enter the password', password = True)

# Display a long file
gumx.pager('LICENSE')

# Make a fuzzy search
number = gumx.search(
    list('ABCDEFGHIJKLMNOPQRSTUVWXYZ')
    prompt = 'Whats your favorite letter?'
)

# Display a spinner
with gumx.spin():
    # Do a long task
    time.sleep(5)

# Prompt the user (multiple lines)
desc = gumx.write(header = 'Commit description', char_limit = 72)

TODO

  • Implement the gum style command
  • Fix gumx.spin
  • Optimize gumx.pager
  • Test binary installer on all platforms

LICENSE

GUMX is licensed under the MIT license. See the LICENSE file.

Metadata

Release files for gumx 0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for gumx 0.2
File Size Uploaded
gumx-0.2.tar.gz 9.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for gumx 0.2
File Interpreter ABI Platform
gumx-0.2-py3-none-any.whl Python 3 none any Details

Total release size: 22.3 kB

Release files / gumx-0.2.tar.gz

Download URL gumx-0.2.tar.gz
Size 9.6 kB
Tags Source
SHA-256 checksum
How to use checksums
8a6ffc43612ec96e7ef99b3e07fd68c73f38aaf7e48a6c2cbdeef100570ec617
BLAKE2b-256 checksum
How to use checksums
7547ecada9ec69ef57bd2ec157b50f632bd8be50b28b09cfa0a7bb53e3db5345
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.9.21

Release files / gumx-0.2-py3-none-any.whl

Download URL gumx-0.2-py3-none-any.whl
Size 12.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
700961a4a276575b1868284d1385088caa97374737c595466bae2cbb1a8e9d04
BLAKE2b-256 checksum
How to use checksums
32ac5501e2c06acde0d8023559ffaa169fc45807867ad0d0845614765ee1ff05
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.9.21

Release history Release notifications | RSS feed

This release

0.2 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page