/activity-pub-test

Minimal ActivityPub server to learn about this protocol

Primary LanguagePythonMIT LicenseMIT

activity-pub-test

Minimal ActivityPub server to learn about this protocol.
Python version of 'How to implement a basic ActivityPub server' by Eugen Rochko.

How-To

  • Clone the repo and install Python dependencies
$ make install
  • Create Makefile.custom.config file and update user name you want to use and your server domain:
$ cp Makefile.custom.config.example Makefile.custom.config
$ nano Makefile.custom.config
  • Start the server:
$ make serve
  • To submit a reply to a toot, for instance to answer the toot in Eugen article:
$ curl -d '{ "message" : "Hi!" , "host": "mastodon.social", "toot": "@Gargron/100254678717223630"}' -H "Content-Type: application/json" -X POST https://<domain>/note

where domain is your ActivityPub server domain.