90
submitted 1 year ago by maegul@hachyderm.io to c/fediverse@lemmy.ml

Someone’s started a Python wrapper around the lemmy API

https://github.com/db0/pythorhead (@db0)

Could make writing bots and other tools easier and quicker.

@fediverse @fediversenews

you are viewing a single comment's thread
view the rest of the comments
[-] makingStuffForFun@lemmy.ml 5 points 1 year ago

I'd love to write a bot for my own community. I used to use praw, when reddit was a thing.

Can you see your wrapper being used this way? If so, is it ready for this yet? If so, is there any example code or docs on this?

Thanks for your work, it's very much appreciated.

[-] db0@lemmy.dbzer0.com 4 points 1 year ago

Yes there isn't a reason not to use it as a bot. We don't have all the API endpoints yet as we add them usually as we need them, but if you need one we don't have, just open a PR or send an issue and we'll handle it.

this post was submitted on 28 Jun 2023
90 points (97.9% liked)

Fediverse

17671 readers
69 users here now

A community dedicated to fediverse news and discussion.

Fediverse is a portmanteau of "federation" and "universe".

Getting started on Fediverse;

founded 4 years ago
MODERATORS