pyxmenu
pyxmenu is a Python library for helping you create python plugins for xbar,
argos and ardos with ease!
The library wraps all the menu creation logic with classes and objects to let you create a plugin with a few lines of code and without dealing with string formatting complications.
Installation
Use the package manager pip to install pyxmenu.
pip install pyxmenu
Usage
from pyxmenu import Plugin, Item
# Create a new xbar plugin
plugin = Plugin(
# Set the title of the plugin
title=Item("My Plugin", font="Menlo", size=20),
# Add items to the plugin
items=[
Item("Hello", color="blue", href="https://github.com/labrador-team/pyxmenu")
]
).add_items(
# Add multiple items to the plugin
[
Item("World", color="red", key="shift+k"),
Item("Foo", color="green", alternative=Item("Bar", color="yellow")),
# Add item with submenu
Item("Baz", color="purple", children=[
Item("Qux"),
Item("Quux"),
]),
]
)
print(plugin)
Contributing
Please open an issue first to discuss what you would like to change. We welcome any and all criticism, feedback, and suggestions even if we may not agree.
Metadata
Release files for pyxmenu 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pyxmenu-0.0.1.tar.gz | 11.6 kB | Without provenance | Details for pyxmenu-0.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pyxmenu-0.0.1-py3-none-any.whl | Python 3 | none | any | Details for pyxmenu-0.0.1-py3-none-any.whl |
Total release size: 30.8 kB
Security for pyxmenu 0.0.1
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.