Tooting from Python using #mastodonpy !
Tooting from Python using #mastodonpy !
@halcy Well, I follow the #mastodonpy tag and would use it for any questions here too.
However, it is slightly annoying, that the same tag is also used by lots of test messages.
(And yes: Anything that isn't just my incompetence is going to github issues anyways.)
I've been wondering for a while: People seem to often ask questions about "how do I do X with mastodon.py" or "why isn't my code, that uses mastodon.py, working" into the void, or in some general forum. I don't usually see those questions, so even if I could easily help, I have no means to. It'd be great if people tagged me into these types of questions, or if there was a better venue for it, maybe. I've been thinking like sure just open a github issue, even if it's just a "how do I do X" type question, but I think most people are hesitant to?
What would be the ideal way to improve this situation somewhat? Any suggestions welcome, but of course especially if you've been in that situation. #mastodonpy #mastodev
As expected, here's a quick Mastodon.py release that fixes some issues people found, mostly pagination related. Upgrading from 2.0.0 to this should be perfectly safe, it's bugfixes only~ Thank you to everyone who reported an issue or even contributed a PR to immediately fix it <3
* Changelog on GitHub: https://github.com/halcy/Mastodon.py/releases/tag/v2.0.1
* Docs: https://mastodonpy.readthedocs.io/en/v2.0.1/
* PyPi: https://pypi.org/project/Mastodon.py/2.0.1/
I've worked out the issues and now uploaded version 2.0 of the Mastodon.py Debian packages. As @halcy said in the main announcement, there are a lot of changes.
The other good thing is some optional dependencies are now available in Debian so they're included now too.
Today, I learned that PyScript is a thing, and that you can use it to run Mastodon.py entirely in your browser and build anything from a small basic tool to an entire client, using Python, that runs in the browser!
https://halcy.de/blog/2025/02/18/mastodonpy-in-the-browser/ #mastodev #mastodonpy
Hey, everyone! It took like 1.5 years, here is, finally, a proper new release for Mastodon.py! This was a lot of work! I'm so glad I finally got it across the line!
Docs: https://mastodonpy.readthedocs.io/en/2.0.0/
Github with changelog: https://github.com/halcy/Mastodon.py/releases/tag/2.0.0
This is a *massive* update. There's all the support for new endpoints up to 4.3.0, and large amounts of refactoring. The library is now fully typed, too, and thanks to that documentation has been massively improved!
Despite the major version bump, everything *should* be for the most part backward compatible. Existing code should not break, unless you're on Python 3.6 or below. I would still recommend being careful about upgrading without need. Expect a maintenance update once people actually start using this and find all the issues in the code that my tests didn't catch.
I use #logseq very badly, I think... but I was wondering if I could integrate it with saving my Mastodon posts and bookmarks. I'm playing with the idea of populating a page with my toots and adding the [[ ]] links to the journal day when the thing was published, so when I go to a journal page I see what I posted that day and it gives me some context on what I was thinking (and if I search for a toot I can go to the journal day). #mastodonpy
Tooting from Python using #mastodonpy !
Tooting from Python using #mastodonpy !
Anyone familiar with the python library for mastodon mastodon.py?
How do I create a newline in my post if I post through mastodon.status_post('text')?
Tooting from Python using #mastodonpy !
Is there a way to make a Masto bot reply when mentioned (basically a trigger event)?
#mastodonpy development: I want to create proper models for everything mastodon can return, and so I've started to take my previous docs and formalized and amended them a bit. The results so far are a big json file which at least contains every field of every object Mastodon.py functions can currently return, though much remains to do.
If you want to help: Pick any object, find the corresponding Mastodon docs on https://docs.joinmastodon.org , fill all missing fields, cross-check nullable and optional as well as descriptions and maybe polish them a little, and do a PR.
https://github.com/halcy/Mastodon.py/blob/master/srcgen/return_values.json
@halcy did you get to introduce new people to the Fediverse and #mastodonPy?
Tooting from Python using #mastodonpy !
#HelloWorld! I'm a bot here to guide us (specifically those in #Berlin) through the dark winter
I was created by @lavaeolus, who was inspired by @sunofseldo <3
My inner workings:
https://github.com/Schoeneh/sharing-is-caring/tree/main/Bots_mastodon/sunofberlin
Reuse and adaptation is strongly encouraged!
(GPL)
If you want some additional flavor text, please post your ideas here:
https://github.com/Schoeneh/snippets/issues/2
Tooting from Python using #mastodonpy