Python Decorators #5
Labels
No labels
bug
contribution welcome
duplicate
enhancement
good first issue
help wanted
invalid
question
upstream
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Reference
marvin8/longwei#5
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
DeltaChat
Project "deltabot-cli-py" provides Python Decorators to facilitate the utilization of module "deltachat2" to realize automated services.
https://github.com/deltachat-bot/deltabot-cli-py (decorators)
https://github.com/adbenitez/deltachat2 (decorators)
XMPP
Project "slixbot" provides Python Decorators to facilitate the utilization of module "slixmpp" to realize automated services.
https://codeberg.org/nicoco/slixbot (decorators)
https://codeberg.org/poezio/slixmpp (no decorators)
I created something similar, which was not yet realized into Python Decorators.
https://git.xmpp-it.net/sch/Slixfeed/src/branch/master/src/slixfeed/interface/xmpp
ActivityPub
This is my current implementation with Longwei, and I intend to extend it further in project Slixfeed.
https://git.xmpp-it.net/sch/Rivista/src/branch/main/src/rivista/interface/activitypub
It might be good to either create a new project, as with "slixbot"; or, to add such "wrappers" in project Longwei itself, as with "deltachat2".
Interesting idea... I'll have to take some time to look more into this.
I am starting to look at this.
Before I decide on scope and approach, it would help to understand what you're actually trying to build in Slixfeed (or wherever you'd use this).
A few questions:
What events do you care about? Mentions, all notifications, home-timeline updates, something else?
What does your ideal API look like? For example, is this what you have in mind:
Or would a lower-level async iterator be sufficient:
Polling or streaming? The Mastodon streaming API uses SSE (Server-Sent Events). Is that what you'd want, or are you thinking of a polling helper that periodically checks for new notifications?
Existing code? You mentioned similar functionality was created but not yet turned into decorators in Slixfeed — is there code we could look at to understand the pattern you're after?