Follow

ActivityPub, Python 

If I don't want to implement ActivityPub from scratch, and I need it to be S2S compatible with Mastodon, is there a nice Python library I can use to quickly stand up a server and play with it?

· · Web · 6 · 17 · 8

ActivityPub, Python 

@emacsen I'd also be interested in this, if you manage to find anything. A quick skim of GitHub only reveals client-side implementations.

re: ActivityPub, Python 

@faoluin @emacsen I haven't tried it yet, but this seems pretty easy to use even though there's no proper documentation. It has everything abstracted and even includes flask and tornado support

github.com/dsblank/activitypub

re: ActivityPub, Python 

@izalia @faoluin

Will check it out. The challenge is that while AP itself is easy, there are so many additional layers that software (Mastodon in particular) assumes that makes compatibility hard. I'll need to see if this thing has the same issues.

@Emacsen This lib by @Jason Robinson 🐍🍻 may perhaps be your thing? https://github.com/jaywink/federation. If I'm not mistaken you'll be able to interact with more than just activitypub instances though.

@harald @jaywink

I can look again but the Federation library is not what I want, because it has a design and scope that's outside of AP and my specific needs already need to be tuned to AP, so I worry it would be an even bigger pain with Federation.

@Emacsen That makes sense, just thought I'd mention it just in case.

re ActivityPub, Python 

@emacsen there's a thing called kepi for django

re ActivityPub, Python 

@astraluma Wow this looks good. Thank you!

ActivityPub, Python 

@emacsen maybe you can take a look at github.com/BasixKOR/awesome-ac there might be a fit for your needs.

ActivityPub, Python 

@arthurlutz its tricky. AP itself isn't hard. You can implement core AP in an afternoon or less. But making something that talks to other modern AP servers is hard.

I'll check out the libraries you've pointed to but I'll need to go through each one. That's why I asked if people had first hand experience

re: ActivityPub, Python 

@emacsen I use little-boxes in reel2bits, unfortunately it is not maintained anymore even if it is pretty good :(
hasn't found any alternative that doesn't require shit like mongodb or other

https://github.com...

re: ActivityPub, Python 

@dashie

Will check it out. I don't need active maintenance because I'll just be using it to make a proof of concept demo.

Sign in to participate in the conversation
Mastodon

The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!