Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

pyxmenu

Package Overview
Dependencies
Maintainers
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pyxmenu

A python utility for creating xbar, argos and ardos menus.

  • 0.0.1
  • PyPI
  • Socket score

Maintainers
2

pyxmenu

PyPI PyPI - Downloads

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.

FAQs


Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc