Simple keyboard helpers for aiogram 3.x
Project description
aio-kb
Simple and flexible keyboard helpers for aiogram 3.x.
Install
pip install aio-kb
Usage
from aio_kb import reply_kb, inline_kb, Btn
menu = reply_kb([
["Start", "Help"],
["About"]
])
inline = inline_kb([
[Btn("Website", url="https://example.com")],
[Btn("Click", callback="click")]
])
Features
- Reply keyboard
- Inline keyboard
- URL buttons
- Callback buttons
- Web App buttons
- Contact request button
- Location request button
- Pagination keyboard
- Back / Close buttons
- Yes / No buttons
- Custom button texts
Examples
Reply keyboard
from aio_kb import reply_kb
keyboard = reply_kb([
["Menu", "Help"],
["About"]
])
Inline keyboard
from aio_kb import inline_kb, Btn
keyboard = inline_kb([
[Btn("Open site", url="https://example.com")],
[Btn("Profile", callback="profile")]
])
Yes / No keyboard
from aio_kb import yes_no_kb
keyboard = yes_no_kb(
yes_text="✅ Yes",
no_text="❌ No"
)
Custom language
keyboard = yes_no_kb(
yes_text="✅ Ha",
no_text="❌ Yo‘q"
)
Build
pip install build twine
python -m build
Upload to PyPI
twine upload dist/*
License
MIT
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
aio_kb-0.1.0.tar.gz
(1.6 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 aio_kb-0.1.0.tar.gz.
File metadata
- Download URL: aio_kb-0.1.0.tar.gz
- Upload date:
- Size: 1.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
923cc37093b6e7f4780c5fbbd565404a1a1756320f2fa91c1e4bfcfa58c4548d
|
|
| MD5 |
ac9cc49037544599c45c123dbbea1a90
|
|
| BLAKE2b-256 |
d5d09c42c54c2f1d858bbb9d60fea317cac2f9a22753317119cd11aea598d76e
|
File details
Details for the file aio_kb-0.1.0-py3-none-any.whl.
File metadata
- Download URL: aio_kb-0.1.0-py3-none-any.whl
- Upload date:
- Size: 1.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
38c4e700948a3d51016943a69f9901b51cc9971dac7b75ec8f8ea65cc15010a3
|
|
| MD5 |
2907ef1ba922c822906d079ca536b141
|
|
| BLAKE2b-256 |
bc4fede3300c5527070da1cd6c071af1a07f710409fbe2d8903bfabc2606a582
|