#mastodonpy — Public Fediverse posts
Live and recent posts from across the Fediverse tagged #mastodonpy, aggregated by home.social.
-
Like you, @carlton, I'm still recovering from the intense days we've had. I was able to publish the post timeline so quickly because I automated the process with Python, Pelican, Jinja and Mastodo.py ... the main job was just publishing posts consistently throughout the event. 🤖
-
-
Tootando diretamente do Python usando a #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/ -
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.0This 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
-
I have written an experimental #mastodon client called #MyAlgo.
It allows for client side (ie under complete control of the user) implementation of algorithms. That is: Users can score and sort the toots in their timeline by whatever they feel is relevant to them.
If you are following more people then you can read, or if you want to spend less time with Mastodon, then MyAlgo might be useful for you.
It is written in python with #mastodonpy:
https://gitlab.com/HaraldG/myalgoDetails and Results: 🧵 1/3
-
I’m trying to hack together a scheduler so I can put six dozen captions in a queue and then leave for a vacation. I probably should create a Mastodon test account to test it, but I coudln’t wait, I had to try if posting via Mastodon.py actually works. #mastodonpy #python #scheduling
-
-
-
I am dealing with a not-so-weird scenario while testing my @feeder project: my personal instance is running in a #RaspberryPi and the #streaming endpoints get timeout from time to time. Nothing really to worry about.
I'd say it's something to cover, as I do by identifying, logging and restarting the listener job, but without screaming too much, timeouts are normal.
Happens that the #Mastodon #Python wrapper uses #six internally and when the timeout exception raises, six does not have it inheriting from BaseException (my wild guess) and then the actual Exception that reaches my code is "exceptions must derive from BaseException". Great.
I saw that the guys behind #mastodonpy have it already reported, so I just added my own traceback hoping to have it fixed soon.
https://github.com/halcy/Mastodon.py/issues/368
Yeah, and meanwhile, I will identify that as timeout and make my alarms to stop screaming 😅
-
-
-
-
-
-
Is there a way to make a Masto bot reply when mentioned (basically a trigger event)?
-
Tooting from Python using #mastodonpy !
-
Hé bien j'espère que Mastodon va tenir parce qu'il va falloir #déménager définitivement.
Je ne sais pas si je devrais changer d'instance, puisque social est à la fois un des plus sollicité est une des plus mal vues par les autres.
Ça m'embêterait de devoir recommencer un compte mais s'il n'y a pas de limite temporelle de poste je pourrais sûrement faire un script pour reposter mon #archive avec #mastodonpy.
-
Liebe #mastodonpy crowd,
Wer ist denn von der Journi-bubble schon hier zu finden ?
Konnte bisher nur die @taz finden. Gerne retweet und/oder in die comments taggen :-) #MastodonTipp -
And with that, the #code for #Mastoffline, my in-development personal #Mastodon client using #MastodonPy and #Kivy, has been published to #SourceHut: https://git.sr.ht/~fixato/Mastoffline
It's far from done, but I felt the code had matured enough from a simple proof of concept to see if Kivy was a suitable #Python #GUI library for me, to one of my #ScratchYourOwnItches #PetProjects that I will slowly work on when I feel like it, to warrant its own repo.
-
Simplified link preview cards have been added to #Mastoffline, complete with semi-transparent mouse-over tooltips that show where the link points to.
(Next step will be to apply these tooltips to all ref links.)
Thanks to @halcy's excellent #MastodonPy library, it's really simple to access all this extra information. :)
-
and so it begins?...