Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
✨ Questionary is a Python library for effortlessly building pretty command line interfaces ✨
import questionary
questionary.text("What's your first name").ask()
questionary.password("What's your secret?").ask()
questionary.confirm("Are you amazed?").ask()
questionary.select(
"What do you want to do?",
choices=["Order a pizza", "Make a reservation", "Ask for opening hours"],
).ask()
questionary.rawselect(
"What do you want to do?",
choices=["Order a pizza", "Make a reservation", "Ask for opening hours"],
).ask()
questionary.checkbox(
"Select toppings", choices=["foo", "bar", "bazz"]
).ask()
questionary.path("Path to the projects version file").ask()
Used and supported by
Questionary supports the following input prompts:
There is also a helper to print formatted text for when you want to spice up your printed messages a bit.
Use the package manager pip to install Questionary:
$ pip install questionary
✨🎂✨
import questionary
questionary.select(
"What do you want to do?",
choices=[
'Order a pizza',
'Make a reservation',
'Ask for opening hours'
]).ask() # returns value of selection
That's all it takes to create a prompt! Have a look at the documentation for some more examples.
Documentation for Questionary is available here.
Please open an issue with enough information for us to reproduce your problem. A minimal, reproducible example would be very helpful.
Contributions are very much welcomed and appreciated. Head over to the documentation on how to contribute.
Questionary is written and maintained by Tom Bocklisch and Kian Cross.
It is based on the great work by Oyetoke Toby and Mark Fink.
Licensed under the MIT License. Copyright 2021 Tom Bocklisch.
FAQs
Python library to build pretty command line user prompts ⭐️
We found that questionary demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.