Best Keyboard and Pagination for the Kurigram Library.
Project description
PyKeyboard
Modern, Type-Safe Keyboard Library for Kurigram
PyKeyboard is a comprehensive Python library for creating beautiful and functional inline and reply keyboards for Telegram bots using Kurigram.
Installation
# Using pip
pip install pykeyboard-kurigram
# Using poetry
poetry add pykeyboard-kurigram
Quick Start
from pykeyboard import InlineKeyboard, InlineButton
# Create a simple inline keyboard
keyboard = InlineKeyboard()
keyboard.add(
InlineButton("👍 Like", "action:like"),
InlineButton("👎 Dislike", "action:dislike"),
InlineButton("📊 Stats", "action:stats")
)
# Use with Kurigram
await message.reply_text("What do you think?", reply_markup=keyboard.pyrogram_markup)
Features
- 🎯 Full Type Safety - Built with Pydantic v2 for runtime validation
- 🌍 50+ Languages - Comprehensive locale support with native language names and flags
- 🧪 100% Test Coverage - Extensive test suite with pytest
- 📦 JSON Serialization - Built-in keyboard serialization/deserialization
- 🚀 Modern Python - Uses latest Python features and best practices
- 🎨 Beautiful API - Intuitive, chainable methods for keyboard construction
- 🛡️ Error Handling - Comprehensive validation with descriptive error messages
Documentation
For comprehensive documentation, see the MkDocs site or check the examples.py file for sequential usage examples.
License
This project is licensed under the MIT License - see the LICENSE file for details.
Made with ❤️ for the Telegram bot development community
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
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 pykeyboard_kurigram-0.2.0.tar.gz.
File metadata
- Download URL: pykeyboard_kurigram-0.2.0.tar.gz
- Upload date:
- Size: 35.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.4 CPython/3.12.11 Linux/6.11.0-1018-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7fece780210d9f7f2dc9c78f8ac302bbc7b387e46e81bfea4c2b5539d21bd6ef
|
|
| MD5 |
62098d28b3620bf1077fc7002c2dd542
|
|
| BLAKE2b-256 |
28637439183abb3a31f21ac4eb870f5d84dbd482e249c31d4e784aef3675d47c
|
File details
Details for the file pykeyboard_kurigram-0.2.0-py3-none-any.whl.
File metadata
- Download URL: pykeyboard_kurigram-0.2.0-py3-none-any.whl
- Upload date:
- Size: 41.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.4 CPython/3.12.11 Linux/6.11.0-1018-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1e5dc838c9f74e36ffab3b7391371775961cb5c1731ce4a6a71b69a08ca81531
|
|
| MD5 |
42c126cf24101f1813e789fd9b59883c
|
|
| BLAKE2b-256 |
a8ef73b4adfe10c303ed08360718a1314acfb2188d5949be55e225ebcee02b26
|