Skip to main content

Nice-prompts.

Generate nice looking prompts for your cli applications.

PyPI PyPI - Python Version Read the Docs

Install from PyPi:

$ pip3 install nice-prompts

Demo (select 1, select at least 2 with max 2, select any amount):

import nice_prompts

n = nice_prompts.NicePrompt()

print(n.selection({"I like pizza": "Good taste",
    "I respectfully disagree with the opinion of liking pizza": "Fair enough, good day",
    "I hate pizza": "Bad sport 👎"})) # Select one from the keys, return the value

print(n.multiselection({"I like pizza": "Good taste",
    "I respectfully disagree with the opinion of liking pizza": "Fair enough, good day",
    "I hate pizza": "Bad sport 👎"}, amount=2, required=2)) # Select multiple from the keys, return the values. You must select 2


print(n.multiselection({"I like pizza": "Good taste",
    "I respectfully disagree with the opinion of liking pizza": "Fair enough, good day",
    "I hate pizza": "Bad sport 👎"}, required=0))  # Select multiple from the keys, return the values. No max, can be left blank

Demo

Metadata

Release files for nice-prompts 0.4.3

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

Source distribution (sdist)

Source distribution for nice-prompts 0.4.3
File Size Uploaded Provenance Actions
nice-prompts-0.4.3.tar.gz 7.7 kB Without provenance Details for nice-prompts-0.4.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for nice-prompts 0.4.3
File Interpreter ABI Platform Actions
nice_prompts-0.4.3-py3-none-any.whl Python 3 none any Details for nice_prompts-0.4.3-py3-none-any.whl

Total release size: 15.8 kB

Release files / nice-prompts-0.4.3.tar.gz

Download URL nice-prompts-0.4.3.tar.gz
Size 7.7 kB
Tags Source
SHA-256 checksum
How to use checksums
eb73c79e60e7134e5070ed7086206f925ca41bfa4a4e9551e503069b55a83665
BLAKE2b-256 checksum
How to use checksums
ef12cc13ab4f2ba0925a46da7dc84b7055eb5716ab874092ff84d19a8f2285cb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.13

Release files / nice_prompts-0.4.3-py3-none-any.whl

Download URL nice_prompts-0.4.3-py3-none-any.whl
Size 8.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
105a266020c42917deaead7ee4754c261975ef30f6e8ff6e5d0a0119c2126ee9
BLAKE2b-256 checksum
How to use checksums
32d5b36b5fc1fb2d8b9f55656181930129febefe89c34584f5b2719f8632bd41
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.13

Security for nice-prompts 0.4.3

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