Skip to main content

Twidge

Simple terminal widgets for simple people.

This package is mostly intended for my own personal use, but have at it.

Quick Start

Install

python -m pip install twidge

CLI

# Echo keypresses
python -m twidge echo

# ... as bytes
python -m twidge echobytes

# Edit text
python -m twidge edit 'Hello World'

# Form input
python -m twidge form name,email,username,password

# Template input
python -m twidge template "Hello, my name is {name} and I live in {town}. I prefer {language:('Python', 'JavaScript')}"

Python

from twidge.widgets import *

# Echo keypresses
Echo().run()

# ... as bytes
EchoBytes().run()

# Edit strings
content = Close(EditString('Hello World!')).run()

# Form input
user_info = Close(Form(['Name', 'EMail', 'Username', 'Password'])).run()

# Template input
result = Close(EditTemplate("Hello, my name is {name} and I live in {town}. I prefer {language:('Python', 'JavaScript')}")).run()

Metadata

Release files for twidge 1.2.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 twidge 1.2.2
File Size Uploaded Provenance Actions
twidge-1.2.2.tar.gz 13.1 kB Without provenance Details for twidge-1.2.2.tar.gz

Built distribution (wheel)

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

Total release size: 30.2 kB

Release files / twidge-1.2.2.tar.gz

Download URL twidge-1.2.2.tar.gz
Size 13.1 kB
Tags Source
SHA-256 checksum
How to use checksums
113e0cc3ab7372047ecd05fd95f19af2da5fed4f29296fd31b4172b811fb327c
BLAKE2b-256 checksum
How to use checksums
5ce3ecd7b48fe694bceec2c542d989eee1d5a86e87836dac881c2503ed70eb23
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.4

Release files / twidge-1.2.2-py3-none-any.whl

Download URL twidge-1.2.2-py3-none-any.whl
Size 17.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c1fc1edcb44b0814b5155e1ca3bb622a7fd050ca8e82e58ed8fc479044fd5a44
BLAKE2b-256 checksum
How to use checksums
8736d32d62fa9540a088418740c7996401baf12074d9f397cf5a5bd6e4d88f1a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.4

Security for twidge 1.2.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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