
Security News
npm ‘is’ Package Hijacked in Expanding Supply Chain Attack
The ongoing npm phishing campaign escalates as attackers hijack the popular 'is' package, embedding malware in multiple versions.
A simple library for creating interactive selection menus in terminal applications.
select_options is a Python library for creating interactive selection menus in terminal applications. Designed for personal use, but open to proposals and contributions.
A simple library to make a beautiful appearance on the console to select one or various options.
Install via pip:
pip install select_options
Or install from source:
git clone https://github.com/Gerry1402/select.git
cd select
pip install .
For every type of iterable except dict
, the menu shows the string representation of each item. If items are not stringifiable, use a dict
where the key is the displayed content and the value is the result.
Example:
from select_options import Select
options = ["Option 1", "Option 2", "Option 3"]
selected = Select(options, prompt="Choose an option")
single = selected.run()
print(f"You selected: {single_selected}")
select.prompt = "Choose one or various options"
selected.multiselect = True
multi = selected.run()
Tested on Windows 11. Compatibility with other OS/environments is not guaranteed.
MIT License
Gerard Vello
Email: gerard.vello@gmail.com
This is the base color for Multi-select and Single-select.
This are the colors that appear on the Multi-select, the blue are the selected ones and the purple is the current position over a selected option.
Contributions, suggestions, and issues are welcome. Feel free to open a pull request or issue on GitHub.
FAQs
A simple library for creating interactive selection menus in terminal applications.
We found that select-options 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.
Security News
The ongoing npm phishing campaign escalates as attackers hijack the popular 'is' package, embedding malware in multiple versions.
Security News
A critical flaw in the popular npm form-data package could allow HTTP parameter pollution, affecting millions of projects until patched versions are adopted.
Security News
Bun 1.2.19 introduces isolated installs for smoother monorepo workflows, along with performance boosts, new tooling, and key compatibility fixes.