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.0a1.tar.gz
(8.7 kB
view hashes)
Built Distribution
Close
Hashes for aprompt-2.0.0a1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fb564bf8d3dbf6caf8daf0d9cb98b1a9612fb27e8ac85741d7e214931f03b9c3 |
|
MD5 | 0a8b655ccfb08fdf2467f4277047b1d8 |
|
BLAKE2b-256 | 25dad4a7383aa8654547eada199fa900b3f83a04b7da8e30ea95577896d9b2bd |