peyk
An aiogram-style async bot library for Telegram, Bale, and Rubika.
10-line quickstart
from peyk import Bot
bot = Bot("TOKEN", platform="telegram")
@bot.command("start")
async def start(message):
await message.answer("Hello from peyk!")
@bot.message()
async def echo(message):
await message.answer(message.text or "")
bot.run()
platform= is selected once when the bot is created; handlers, filters, keyboards, and normalized message objects stay platform-neutral.
Install
pip install peyk
For development:
pip install -e ".[dev]"
Documentation
- Capabilities — audited feature support and UNKNOWN areas.
- Migration from aiogram — import mapping, compatible surfaces, and Peyk-specific differences.
- Quickstart — simple
bot.run()first, then Dispatcher/Router. - Examples — runnable examples using public imports.
Tests
pytest
The test suite is offline and uses local/fake servers and in-memory/fakeredis fixtures.
Project record
See docs/decisions.md for the architectural decision record and capability evidence.
Publishing
See PUBLISHING.md for the one-time GitHub/PyPI setup and
the release checklist for every version after that.
License
MIT — see LICENSE.
Release files for peyk 1.0.0.post35457076637
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| peyk-1.0.0.post35457076637.tar.gz | 1.2 MB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| peyk-1.0.0.post35457076637-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 2.1 MB
Release files / peyk-1.0.0.post35457076637.tar.gz
| Download URL | peyk-1.0.0.post35457076637.tar.gz |
|---|---|
| Size | 1.2 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
64d7889ca715883202bcb1add85d8370e0896abb5ab35e63810bcc78edb34c83
|
|
BLAKE2b-256 checksum How to use checksums |
9235c17de9ed2e7d10d05cc46ce5808dd2b10c44d57ab1d2414eb819cd9b0aaa
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 19, 2026.
Transparency logRelease files / peyk-1.0.0.post35457076637-py3-none-any.whl
| Download URL | peyk-1.0.0.post35457076637-py3-none-any.whl |
|---|---|
| Size | 849.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
04f0d84bf6f63ecae2ec508e90d6ab96dc939bfb053b5942ddd67338fc670bf1
|
|
BLAKE2b-256 checksum How to use checksums |
1c50f4a43533850c4b6ce3f79121d66ad649de4cfbf1cc31b2ed3d6d543dc637
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 19, 2026.
Transparency log