pinq is a Python binding for the Rust inquire CLI prompt library. This tool lets you build easy-to-use command line prompts for text, passwords, selections, and more. Whether youβre gathering user input or creating forms, pinq simplifies the process.
Follow these steps to get started with pinq quickly. This guide assumes no prior programming knowledge.
To get pinq, visit this page to download the latest release:
On the Releases page, you will see different versions of pinq. Each version has files formatted for your operating system.
.exe..dmg file..tar.gz.Once youβve downloaded your version, follow these simple steps:
.exe file in your Downloads folder..dmg file.cd ~/Downloads.tar -xvzf yourfile.tar.gz.Once installed, you can use pinq in your terminal or command prompt. Open your terminal and start typing.
You can create a simple text prompt like this:
from pinq import prompt
response = prompt("What is your name?")
print(f"Hello, {response}!")
To ask for a password, use:
from pinq import prompt
password = prompt("Enter your password:", password=True)
print("Your password has been saved.")
For making choices, you can use a select prompt:
from pinq import prompt
favorite_color = prompt("Choose your favorite color:", choices=["Red", "Blue", "Green"])
print(f"You selected {favorite_color}.")
If you encounter any issues, consider the following solutions:
If you need help or want to share tips, you can interact with the community. Join our discussion on GitHub or check out the Issues section for common problems and solutions.
We welcome contributions! If you enjoy using pinq and want to help improve it:
Your input helps us make pinq better!
Now that you know how to use pinq, get started by visiting this page to download:
Enjoy building user-friendly command line applications!