A fast, convenient bot framework for Telegram.
Project description
Wonda 🍄
Wonda is a Telegram bot framework. It strikes a perfect balance between simple and advanced and makes bot development a breeze. Its concepts are easy to understand and extend. And, with immediate support for latest Bot API versions, it always stays up to the standard.
Install
pip install wonda
A stable version of Wonda can be installed using this command. Add --pre
to the command to install a pre-release version.
Features
Ever wanted to build a bot? You can do that in only 6 lines of code.
from wonda import Bot, Message
bot = Bot("your-token")
@bot.on.message()
async def handler(m: Message) -> None:
await m.answer("Hello world!")
bot.run_forever()
You can already format text, upload files, and make use of an advanced state system to build complex interactions. More features are expected to come! Check out the examples.
Customization
Wonda ships with few dependencies by default. To customize your experience, you may want to install some extra dependencies on top.
Speed up event loop
pip install uvloop
Wonda supports uvloop, an event loop implementation which makes I/O 2-4x quicker.
Replace default JSON module
pip install orjson
Swap out the module that is used under the hood to manipulate JSON and increase speed up to 5 times.
Display tracebacks in greater detail
pip install rich
Check out rich, a library which provides amazing rich text capabilities for your logs.
Contrubuting
This framework is a robust solution for what it's worth, but the API may be unstable for a while. That means it's not yet ready for production use.
So, if you like our work, help us develop this amazing project! Here are some ways you can help.
With code
Contributions are welcome! File a ticket if you have something to say about the state of the framework.
With finances
There are a couple options available for monetary help. Click Sponsor to see them. Thank you!
License
This project exists thanks to the amazing work done by timoniq. Code is licensed under MIT. Copyright (c) 2022-2024 kikimaradoni
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
File details
Details for the file wonda-0.7.1.tar.gz
.
File metadata
- Download URL: wonda-0.7.1.tar.gz
- Upload date:
- Size: 81.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.12.4 Darwin/23.4.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 643c6f9a7378422b7835c385c5634c261854c13fc6aab4be7bba7aadcfa74764 |
|
MD5 | fd2107b2bca8afbd77ed777405ec08ce |
|
BLAKE2b-256 | 252bc5ef2d91b9297255224cfebd39e774b6bd652181704c8be1409121bcf28a |
Provenance
File details
Details for the file wonda-0.7.1-py3-none-any.whl
.
File metadata
- Download URL: wonda-0.7.1-py3-none-any.whl
- Upload date:
- Size: 104.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.12.4 Darwin/23.4.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fc3e27f216dae9375c9f87f4fde07f8049f0aad0aec9614cee68c545367bd0a1 |
|
MD5 | bd302488c05ed7f2089a5034fc7c8e9f |
|
BLAKE2b-256 | 1f9dede648e6bcb5ade81ce15328bd596d437da854899361f022ceba806b159a |