Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

PyPI version Imports: isort Checked with mypy

About

Easy-dialogs is a framework for creating chatbots.

Easy-dialog facilitates the creation of relationships and transitions between scenes (states).

Based on aiogram, vkbottle.

Quickstart

  1. Install:
pip install easy-dialogs

or

pip install git+https://github.com/MaximZayats/easy-dialogs
  1. See examples

Usage

Simple Dialog example:

from dialog.telegram import Dialog, Scene, Router, Relation
from dialog.telegram.types import SimpleMessage


class MyDialog(Dialog):
    router = Router(Relation('MyDialog.scene1',
                             commands='start'))

    scene1 = Scene(messages=SimpleMessage(text='Inside the Scene 1'),
                   relations=Relation('MyDialog.scene2',
                                      text='scene2'))
    scene2 = Scene(messages=SimpleMessage(text='Inside the Scene 2'),
                   relations=Relation('MyDialog.scene1',
                                      text='scene1'))


dp = ...

Dialog.register_handlers(dp)

executor.start_polling(dp)  # aiogram default start method

Release files for easy-dialogs 0.3.8b0

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

Source distribution (sdist)

Source distribution for easy-dialogs 0.3.8b0
File Size Uploaded
easy-dialogs-0.3.8b0.tar.gz 11.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for easy-dialogs 0.3.8b0
File Interpreter ABI Platform
easy_dialogs-0.3.8b0-py3-none-any.whl Python 3 none any Details

Total release size: 27.6 kB

Release files / easy-dialogs-0.3.8b0.tar.gz

Download URL easy-dialogs-0.3.8b0.tar.gz
Size 11.9 kB
Tags Source
SHA-256 checksum
How to use checksums
e685131399bfc18a07f44bf8ca68bcddcf3d0ea5af89947a0abe85522a7fcc37
BLAKE2b-256 checksum
How to use checksums
c8b238ebbd67ae62ed53003f25232249e349c452c9d393a963ac1d6bedd6ce7a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.9.5

Release files / easy_dialogs-0.3.8b0-py3-none-any.whl

Download URL easy_dialogs-0.3.8b0-py3-none-any.whl
Size 15.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
edd197789066f223f289954fbdbf5a2447ee07531e52d5c3d8f8b7f753166d7e
BLAKE2b-256 checksum
How to use checksums
e67177af030c1296a9b0be2daa6e6e595009419dedf4e118f0e0a3cabaeb1ca5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.9.5
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