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.

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

aspy-0.2.1-py3-none-any.whl (6.7 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for aspy-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 322ca03bd73909d52e0c57bd7091c7177b9b9f994a8ddfa1846e21a818fac207
MD5 5f9e10a2a39d3e1f4301f3e9c3b9a56e
BLAKE2b-256 fb66e43b0c16b5d00a24165e5506d8d566b281ed70c75ae645d6a74aba7c125d

See more details on using hashes here.

Supported by

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