# pmenu
*Sleek dmenu alternative written in Python and powered by curses.*
<br>
<p align="center">
<img width="600" src="https://i.imgur.com/2omHG8y.png">
</p>
<br>
Comes in different flavors:
- The ```pmenu``` CLI, for your terminal and shell scripts. [[📂 GitHub]](https://github.com/Julynx/pmenu)
- The ```pmenu_lib``` package, for your Python projects. [[📦 PyPi]](https://pypi.org/project/pmenu-lib/) [[📂 GitHub]](https://github.com/Julynx/pmenu_lib)
You are now looking at the ```pmenu_lib``` Python package.
<br>
## Usage
The ```pmenu(list_of_options)``` function will display a menu and return the selected option as a ```str```, or ```None``` if the menu is closed without selecting an option.
```python
from pmenu_lib import pmenu
selected_option = pmenu(list_of_options)
```
<br>
## Menu bindings
- **Up arrow**: Highlight the previous menu entry.
- **Down arrow**: Highlight the next menu entry.
- **Enter**: Select the highlighted entry.
- **Esc**: Close the menu.
Raw data
{
"_id": null,
"home_page": "https://github.com/Julynx/pmenu_lib",
"name": "pmenu-lib",
"maintainer": "Julio Cabria",
"docs_url": null,
"requires_python": "",
"maintainer_email": "juliocabria@tutanota.com",
"keywords": "",
"author": "Julio Cabria",
"author_email": "juliocabria@tutanota.com",
"download_url": "https://files.pythonhosted.org/packages/83/48/5c14275a02564fbcb42b1947221ca849418d8f326ca4f74eed9b46ef6996/pmenu_lib-1.1.4.tar.gz",
"platform": null,
"description": "# pmenu\n*Sleek dmenu alternative written in Python and powered by curses.*\n\n<br>\n<p align=\"center\">\n <img width=\"600\" src=\"https://i.imgur.com/2omHG8y.png\">\n</p>\n<br>\n\nComes in different flavors:\n\n- The ```pmenu``` CLI, for your terminal and shell scripts. [[\ud83d\udcc2 GitHub]](https://github.com/Julynx/pmenu)\n- The ```pmenu_lib``` package, for your Python projects. [[\ud83d\udce6 PyPi]](https://pypi.org/project/pmenu-lib/) [[\ud83d\udcc2 GitHub]](https://github.com/Julynx/pmenu_lib)\n\nYou are now looking at the ```pmenu_lib``` Python package.\n\n<br>\n\n## Usage\nThe ```pmenu(list_of_options)``` function will display a menu and return the selected option as a ```str```, or ```None``` if the menu is closed without selecting an option.\n\n```python\nfrom pmenu_lib import pmenu\n\nselected_option = pmenu(list_of_options)\n```\n\n<br>\n\n## Menu bindings\n\n- **Up arrow**: Highlight the previous menu entry.\n- **Down arrow**: Highlight the next menu entry.\n- **Enter**: Select the highlighted entry.\n- **Esc**: Close the menu.\n",
"bugtrack_url": null,
"license": "GPLv2",
"summary": "Sleek dmenu alternative written in Python and powered by curses.",
"version": "1.1.4",
"project_urls": {
"Homepage": "https://github.com/Julynx/pmenu_lib"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "83485c14275a02564fbcb42b1947221ca849418d8f326ca4f74eed9b46ef6996",
"md5": "833ccd15feca6907fca3e33fc66e236a",
"sha256": "4157b82ef1dd6b2454763287411b9e098e1bb49d20f57b1da066a1de26d760e4"
},
"downloads": -1,
"filename": "pmenu_lib-1.1.4.tar.gz",
"has_sig": false,
"md5_digest": "833ccd15feca6907fca3e33fc66e236a",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 9657,
"upload_time": "2023-09-11T17:57:14",
"upload_time_iso_8601": "2023-09-11T17:57:14.897128Z",
"url": "https://files.pythonhosted.org/packages/83/48/5c14275a02564fbcb42b1947221ca849418d8f326ca4f74eed9b46ef6996/pmenu_lib-1.1.4.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-09-11 17:57:14",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "Julynx",
"github_project": "pmenu_lib",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "pmenu-lib"
}