Angets (Ankha's Gets): Functions for user input.
Project description
Angets (Ankha's Gets): Functions for user input.
Ever get tired of fine-tuning user input?
Well, this is the package for you!
At least it is for me since I made the whole thing in the first place...
Prerequisites
Python 3.10.x or newer.
Installation
pip install angets
Usage
Import Module.
from ankhas_greens import angets
Basic usage, One attempt with a prompt to the user.
input0 = angets.get_non_empty_string('Give me a response! ')
To get inputs with a bit more control.
Remember to set
verboseto True as no warning will be conveyed to the user otherwise.
input1 = angets.get_constrained_float(
wihtin=(6, 9),
interval='[]',
prompt='Now give me a number within said range!',
warning="Oops! Not within the bounds I'm afraid...",
verbose=True,
attempts=10
)
That is the gist of the main features.
It should be a useful utility tool to mitigate against invalid user inputs.
Problem?
Actually, I don't expect anyone else other than me to use this package.
But if you find it useful enough to want to contribute, be my guest!
Changes
Created: 19 February 2025.
Updated: None.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file angets-0.0.1b0.tar.gz.
File metadata
- Download URL: angets-0.0.1b0.tar.gz
- Upload date:
- Size: 6.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c4d6b62dcdd1c203297e6bb1343e7c45eade3cfd4839aa51e26de19fb3eca4fb
|
|
| MD5 |
6f7f223b42ad19303cd87af11bb71743
|
|
| BLAKE2b-256 |
cc14fd9c89093ddee023041baa2f2afba7ede0bd3e66cfadc6aa441dd0a405cb
|
File details
Details for the file angets-0.0.1b0-py3-none-any.whl.
File metadata
- Download URL: angets-0.0.1b0-py3-none-any.whl
- Upload date:
- Size: 6.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f1b4b6e6884330d1949d8c74703739ead78473b058c3a6040d5ff151a7b432ca
|
|
| MD5 |
516062b6a840c188e5f9fa444e0690db
|
|
| BLAKE2b-256 |
d141ed24892c1478b85bcfc4cb6193bae0686f521d0c1acd2b01d13006845a4c
|