Skip to main content

baleon

Simple, async-first Python framework for building Bale bots.

Install

pip install baleon

For local development:

pip install -e ".[dev]"

Quick start

from baleon import Bot

bot = Bot("TOKEN")

@bot.api.command("start")
async def start(message):
    await message.reply("Welcome to baleon")

@bot.api.on_message()
async def echo(message):
    if message.text:
        await message.reply(message.text)

bot.run()

Create a bot token with @botfather in Bale, then replace TOKEN.

Features (MVP)

  • Async-first API over https://tapi.bale.ai
  • Unified bot.api for handlers and Bot API methods
  • Long polling via bot.run()
  • Commands, messages, and callback queries
  • Reply helpers on Message and CallbackQuery

Docs

Official Bale Bot API: https://docs.bale.ai/

License

MIT

Metadata

Release files for baleon 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for baleon 0.0.1
File Size Uploaded
baleon-0.0.1.tar.gz 20.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for baleon 0.0.1
File Interpreter ABI Platform
baleon-0.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 35.5 kB

Release files / baleon-0.0.1.tar.gz

Download URL baleon-0.0.1.tar.gz
Size 20.0 kB
Tags Source
SHA-256 checksum
How to use checksums
bd38b96ca5bf5da54bb09707ff3bf8236e75dbc701ad3548d00f3b382ed7f768
BLAKE2b-256 checksum
How to use checksums
dffe2306e9056aa1768394570ec9e884663257ae557f914bc0a27b10a6ca69bb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.3

Release files / baleon-0.0.1-py3-none-any.whl

Download URL baleon-0.0.1-py3-none-any.whl
Size 15.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
25fe812fb620560ab701a0a6f738bce535c3cc59c2e5b2109775b9a4bed9fedb
BLAKE2b-256 checksum
How to use checksums
6401bce4290f3247fe92d5c80c5143652a2c026bf009e68deb29eedf2b6b47e9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.3

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page