Re: Creating a framework for bots

Liste des GroupesRevenir à cl python 
Sujet : Re: Creating a framework for bots
De : sch (at) *nospam* fedora.email (Schimon Jehudah)
Groupes : comp.lang.python
Date : 21. Mar 2025, 11:37:02
Autres entêtes
Message-ID : <mailman.142.1742553443.2912.python-list@python.org>
References : 1 2
User-Agent : Claws Mail 4.3.1 (GTK 3.24.48; x86_64-pc-linux-gnu)
Good day.

I am studynig decorators, and I am yet to understand how to create a
dcorator for a function which is invoked upon an event.

That is, the function depends upon an event from the event system of
Slixmpp, and the external decorator should be invoked by it.

gemini://woodpeckersnest.space/~schapps/journal/2025-03-19-designing-a-framework-for-xmpp-chat-bots.gmi

From the frameworks of Flask, and FastAPI, I suppose that it should be
possible, and I do not understand that system yet to do so.

In the attached file you would see what I think that I want to do for
some of the functions that Slixmpp provides.

https://bpa.st/PDNA.

Please advise.

Regards,
Schimon

On Tue, 18 Mar 2025 08:24:29 +0200
Schimon Jehudah via Python-list <python-list@python.org> wrote:

Good day!
 
My name is Schimon, and I create software in a form of XMPP contacts
(i.e. bots) with chat and visual interfaces.
 
https://git.xmpp-it.net/sch
 
I already have three bots, and several ideas for other bots, including
BitTorrent, MPD, and even Chess.
 
gemini://woodpeckersnest.space/~schapps/journal/2024-05-23-slixfeed-news-bot.gmi
 
https://schapps.woodpeckersnest.eu/journal/2024-05-23-slixfeed-news-bot/#preview
 
The basic structure of all of the bots is almost identical.
 
Instead of repeating code and copy and paste my own templates, I was
thinking of creating a framework for creating XMPP bots, based on the
module Slixmpp, and perhaps also for IRC and MQTT.
 
I do not know how to design a framework yet.
 
I would appreciate guidance.
 
Kind regards,
Schimon

Date Sujet#  Auteur
21 Mar 25 o Re: Creating a framework for bots1Schimon Jehudah

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal