Skip to main content

An activity streams 2 library

Project description

Build Status Coverage Status Documentation Project on PyPI

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.


import aspy

martin = aspy.Actor(id='http://www.test.example/martin')
activity = aspy.Create(
    summary='Martin created an image',
# do this to serialize it
json_string = str(activity)


We completely don’t support extension types at the moment.


The only python Activity Streams 2 library I know of is activipy. It supports extension types, but it‘s still pre-alpha and seems to have been forgotten.



  • Add more name-change documentation


  • Document upcoming name change

  • Drop PBR and switch to using a package


  • Add rudimentary support for extension properties


  • Fix bug printing collections with only 1 item


  • Add support for ActivityPub extension


  • Initial version

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

aspy-0.4.2.tar.gz (5.5 kB view hashes)

Uploaded source

Built Distribution

aspy-0.4.2-py3-none-any.whl (7.3 kB view hashes)

Uploaded 3 6

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page