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.

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.

Source Distribution

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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file aspy-0.4.2.tar.gz.

File metadata

  • Download URL: aspy-0.4.2.tar.gz
  • Upload date:
  • Size: 5.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: Python-urllib/3.6

File hashes

Hashes for aspy-0.4.2.tar.gz
Algorithm Hash digest
SHA256 253928274b9c49ded6b71ef982c077c6e39651a5a00f0c0bf2b28d28f8dfe3f5
MD5 f02addbc7238aa1b6a5499596c492237
BLAKE2b-256 2953a04928d6ab157351d199d2371c867443fac433c6decb9f61c26d870ceeea

See more details on using hashes here.

File details

Details for the file aspy-0.4.2-py3-none-any.whl.

File metadata

  • Download URL: aspy-0.4.2-py3-none-any.whl
  • Upload date:
  • Size: 7.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: Python-urllib/3.6

File hashes

Hashes for aspy-0.4.2-py3-none-any.whl
Algorithm Hash digest
SHA256 07e152c7579610653d3ebe00bbf621e32492b2a47a3a18011630a59f6634b865
MD5 268c741e2b1fd681b7097708c9235b20
BLAKE2b-256 eb05be82af526e3d88b030b572544fb9c9ef835fe2a15d33a64924f6dd883bb3

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page