Skip to main content

deltabot-cli for Python

Latest Release CI Code style: black

Library to speedup Delta Chat bot development.

With this library you can focus on writing your event/message processing logic and let us handle the repetitive process of creating the bot CLI.

Install

pip install deltabot-cli

Usage

Example echo-bot written with deltabot-cli:

from deltachat2 import MessageData, events
from deltabot_cli import BotCli

cli = BotCli("echobot")

@cli.on(events.RawEvent)
def log_event(bot, accid, event):
    bot.logger.info(event)

@cli.on(events.NewMessage)
def echo(bot, accid, event):
    msg = event.msg
    bot.rpc.send_msg(accid, msg.chat_id, MessageData(text=msg.text))

if __name__ == "__main__":
    cli.start()

If you run the above script you will have a bot CLI, that allows to configure and run a bot. A progress bar is displayed while the bot is configuring, and logs are pretty-printed.

For more examples check the examples folder.

Metadata

Release files for deltabot-cli 9.1.0

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

Source distribution (sdist)

Source distribution for deltabot-cli 9.1.0
File Size Uploaded
deltabot_cli-9.1.0.tar.gz 26.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for deltabot-cli 9.1.0
File Interpreter ABI Platform
deltabot_cli-9.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 39.7 kB

Release files / deltabot_cli-9.1.0.tar.gz

Download URL deltabot_cli-9.1.0.tar.gz
Size 26.2 kB
Tags Source
SHA-256 checksum
How to use checksums
3aebe2877f04c63aedf31defa7b43692f950cc52826e1877858a9b37364616eb
BLAKE2b-256 checksum
How to use checksums
4db80f4567e97e01283b13799f0e9f1f1f7ae64529da3bdc7fb689928c9d7c78
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.6

Release files / deltabot_cli-9.1.0-py3-none-any.whl

Download URL deltabot_cli-9.1.0-py3-none-any.whl
Size 13.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e9739c3bf554568f3f5b43eca6149ede78c3bfa531e4a666d3493f7d927e5052
BLAKE2b-256 checksum
How to use checksums
cbff855930caa9f6cdf932f10c837436ace51a63952bacd0d4411db366972412
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.6

Release history Release notifications | RSS feed

This release

9.1.0 This release

2 release files

9.0.0

2 release files

8.1.2

2 release files

8.1.1

2 release files

8.1.0

2 release files

8.0.0

2 release files

7.2.0

2 release files

7.1.0

2 release files

7.0.0

2 release files

6.2.1

2 release files

6.2.0

2 release files

6.1.1

2 release files

6.1.0

2 release files

6.0.1

2 release files

6.0.0

2 release files

5.0.0

2 release files

4.0.1

2 release files

4.0.0

2 release files

3.2.4

2 release files

3.2.3

2 release files

3.2.2

2 release files

3.2.1

2 release files

3.1.1

2 release files

3.1.0

2 release files

3.0.0

2 release files

2.0.0

2 release files

1.0.0

2 release files

0.2.0

2 release files

0.1.0

2 release files

0.0.0

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