aspy is a python library for producing Activity Streams 2.0 content. It doesn‘t have a lot of features (no extensions) but aims to be give correct results and be easy to understand.
At the moment, only supports writing activity streams.
The recommended way of manually installing aspy is via pip
pip3 install aspy
import aspy martin = aspy.Actor(id='http://www.test.example/martin') activity = aspy.Create( actor=martin, summary='Martin created an image', object='http://example.org/foo.jpg', ) # do this to serialize it json_string = str(activity)
We completely don’t support extension types at the moment.