Advanced Prompts
Project description
aprompt - Advanced Prompts
aprompt provides a large set of prompts and corresponding themes as well as support for testing prompts. aprompt is designed for creating own prompts and themes.
Available Prompts
- Text
- Secret
- Digit Code
- Integer
- Sort
- Choice
- Multiple Choice
- Confirmation
- Datetime
- Date
- Time
Features
- Creation of custom prompts.
- Creation of custom themes.
- Testing features.
- Examples and tutorials demonstrating the prompts.
Installation
pip install aprompt
Basic Usage
from aprompt import prompt, prompts
username = prompt(
"Please enter your username.",
prompts.text()
)
email = prompt(
"Please enter an email.",
prompts.text()
)
password = prompt(
"Please set a password.",
prompts.text(hide = True),
validate = lambda x: Exception("password too short") if len(x) < 7 else None,
)
Links
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
aprompt-2.0.0a0.tar.gz
(8.6 kB
view hashes)
Built Distribution
Close
Hashes for aprompt-2.0.0a0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0dbcbe62ebe651c7e35f99fe0419f03372ed4b7b482172b26bf946a8eda5b950 |
|
MD5 | 26c4be49c0e4258efef3d819255a8880 |
|
BLAKE2b-256 | 13c0e2101e458550f34caf141e6790f785f34dbc120f472a61d0737fb354c804 |