Skip to main content

An activity streams 2 library

Project description

Build Status Coverage Status Documentation Project on PyPI

Note

Aspy has been renamed to activitystreams2.

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.

Examples

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)

Caveats

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

Alternatives

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.

Changes

0.4.2

  • Add more name-change documentation

0.4.1

  • Document upcoming name change
  • Drop PBR and switch to using a package

0.4

  • Add rudimentary support for extension properties

0.3

  • Fix bug printing collections with only 1 item

0.2.0

  • Add support for ActivityPub extension

0.1.0

  • 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.

Files for aspy, version 0.4.2
Filename, size & hash File type Python version Upload date
aspy-0.4.2-py3-none-any.whl (7.3 kB) View hashes Wheel 3.6
aspy-0.4.2.tar.gz (5.5 kB) View hashes Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page