Color-aware button helpers for Bale bots
Project description
caler-bale
Advanced keyboard helpers for Bale bots.
Features
- callback buttons
- url buttons
- inline query buttons
- selector keyboards
- toggle rows
- pager keyboards
- confirm/cancel keyboards
- social rows
- menu keyboard adapter
- dict serialization
- bale adapters
- ergonomic chaining
Example
from caler_bale import Button, ButtonStyle, Keyboard
kb = (
Keyboard()
.add_row(
Button.callback("شروع", "start", style=ButtonStyle.ROCKET, icon="🚀"),
Button.url_button("وبسایت", "https://example.com", style=ButtonStyle.INFO, icon="🌐"),
)
.add_row(
Button.inline_query("جستجو", "hello", style=ButtonStyle.GHOST, icon="🔎"),
Button.callback("حذف", "delete", style=ButtonStyle.DANGER, icon="🗑️"),
)
)
print(kb.to_dict())
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
caler_bale-0.1.2.tar.gz
(6.9 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file caler_bale-0.1.2.tar.gz.
File metadata
- Download URL: caler_bale-0.1.2.tar.gz
- Upload date:
- Size: 6.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ac6d84b20f8f484df91ea3fed5ec56ad5c90dce84711390d3adb989efe5b0f57
|
|
| MD5 |
37fc77eb81604106ad04c2b74799e4c2
|
|
| BLAKE2b-256 |
706d8be8f2fc2f64e7fa58d37d1c830b7b2b20404e17db174cc0321e1756df03
|
File details
Details for the file caler_bale-0.1.2-py3-none-any.whl.
File metadata
- Download URL: caler_bale-0.1.2-py3-none-any.whl
- Upload date:
- Size: 8.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b66c4892bd339b2b384e2a196015d57528d247d0abdd911cd5942146bdbd4278
|
|
| MD5 |
271f9694f26e4fe101b0d02e522722b4
|
|
| BLAKE2b-256 |
06c92b80e6273d28a58a713ef16ca578441fec9701f4cda202e0c45558dea951
|