#mastodonpy — Public Fediverse posts
Live and recent posts from across the Fediverse tagged #mastodonpy, aggregated by home.social.
-
Well then: Instant new Mastodon.py release, v2.2.1 🐍🦣
Not much has changed from version 2.2.0 (which added support for interacting with all 4.5.0 Mastodon API functionality), the only change is the docs now point to the new JOSS paper for citing, which is a thing a few people have asked for. So here it is:
https://joss.theoj.org/papers/10.21105/joss.08946
(not a *very* exciting read, mind you, but it does cite Mastodon gGmbH, Akkoma Gang, GoToSocial Contributors and grunfink, which is funny to me because I feel that it nicely covers the Spectrum of Fedi Software Development Models)
Updated docs: https://mastodonpy.readthedocs.io/en/v2.2.1/
-
Worth mentioning: As part of this, I also updated the examples repo with some documentation of what those examples actually contain: https://github.com/halcy/MastodonpyExamples
That might be useful for a few people!
Of course, for specific functions, you can also always check the unit tests, they are pretty comprehensive.
-
Mastodon.py version 2.2.0 is now out! 🦣🐍
There's a quite a few bug fixes (thank you to everyone who reported and/or fixed something), and support for 4.5 functionality: Quotes as well as async refreshing! Also quite a bit of additional testing, coverage is now above 90%.
As usual, please report any bugs you see, I should have the time to do quick fixes and maintenance release in the near future hopefully.
* Changelog: https://github.com/halcy/Mastodon.py/releases/tag/v2.2.0
* Docs: https://mastodonpy.readthedocs.io/en/v2.2.0/
* PyPi: https://pypi.org/project/Mastodon.py/ -
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. 🤖
-
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. 🤖
-
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. 🤖
-
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. 🤖
-
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. 🤖
-
Tooting from Python using #mastodonpy but for a second time and it is going great.
-
-
-
-
Mastodon.py 2.1.4, with some fixes from @thcrt to type annotations, and for login on instances where .well-known 404s are not real 404s (observed on at least one Akkoma instance)
Thank you for the contributions! <3
-
Tootando diretamente do Python usando a #mastodonpy!
-
Tootando diretamente do Python usando a #mastodonpy!
-
https://github.com/halcy/Mastodon.py/releases/tag/v2.1.2 uh oh, ANOTHER followup, this time courtesy of @Bfordham , which will make the module not be broken when using GTS
-
And here is the instant followup version 2.1.1, mostly fixing some docs and type annotations:
* Changelog: https://github.com/halcy/Mastodon.py/releases/tag/v2.1.1
* Docs: https://mastodonpy.readthedocs.io/en/v2.1.1/ -
Well, I pushed through, here we are: Mastodon.py 2.1.0, with support for everything in Mastodon up to version 4.4.3, a bunch of new convenience methods, and some bugs fixed, is out! 🐍 :mastodon_oops:
Changelog: https://github.com/halcy/Mastodon.py/releases/tag/v2.1.0
Docs: https://mastodonpy.readthedocs.io/en/v2.1.0/edit: Small instant bugfix update https://icosahedron.website/@halcy/115054560750838725
-
@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.)
-
@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
-
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/ -
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
-
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.
-
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?...