pyxbarr
pyxbarr is a Python library for helping you create python plugins for xbar with ease!
The library wraps all the xbar 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 foobar.
pip install pyxbarr
Usage
import pyxbarr
# Create a new xbar plugin
plugin = pyxbarr.Plugin(
# Set the title of the plugin
title=pyxbarr.Item("My Plugin", font="Menlo", size=20),
# Add items to the plugin
items=[
pyxbarr.Item("Hello", color="blue", href="https://github.com/gohadar/pyxbarr")
]
).add_items(
# Add multiple items to the plugin
[
pyxbarr.Item("World", color="red", key="shift+k"),
pyxbarr.Item("Foo", color="green", alternative=pyxbarr.Item("Bar", color="yellow")),
# Add item with submenu
pyxbarr.Item("Baz", color="purple", children=[
pyxbarr.Item("Qux"),
pyxbarr.Item("Quux"),
]),
]
)
print(plugin)
Contributing
Please open an issue first to discuss what you would like to change. I welcome any and all criticism, feedback, and suggestions even if I may not agree.
Metadata
Release files for pyxbarr 0.0.2
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 |
|---|---|---|---|---|
| pyxbarr-0.0.2.tar.gz | 12.0 kB | Without provenance | Details for pyxbarr-0.0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pyxbarr-0.0.2-py3-none-any.whl | Python 3 | none | any | Details for pyxbarr-0.0.2-py3-none-any.whl |
Total release size: 31.1 kB
Release files / pyxbarr-0.0.2.tar.gz
| Download URL | pyxbarr-0.0.2.tar.gz |
|---|---|
| Size | 12.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c5ddb07da77dbbc1525ce6b77c5377ab7de3f2cde9de48cdad6e545ab829c7f0
|
|
BLAKE2b-256 checksum How to use checksums |
adf4fae73e5499773f834a8508fa5a5f0ea2b59cdd5bb085cdf2322d4d634217
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.0 CPython/3.12.2
|
Release files / pyxbarr-0.0.2-py3-none-any.whl
| Download URL | pyxbarr-0.0.2-py3-none-any.whl |
|---|---|
| Size | 19.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
cf47e6a5e3711e05fabf9de909bfdcae383f5b73b1e8c233ff1bf6f87e964014
|
|
BLAKE2b-256 checksum How to use checksums |
214e48b12f4aa861410aed81f3cefb4f16b08d948d1a1d9d032b85a879c04f31
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.0 CPython/3.12.2
|
Security for pyxbarr 0.0.2
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.