Skip to main content

Aspy

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

Metadata

Release files for aspy 0.4.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for aspy 0.4.2
File Size Uploaded
aspy-0.4.2.tar.gz 5.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for aspy 0.4.2
File Interpreter ABI Platform
aspy-0.4.2-py3-none-any.whl Python 3 none any Details

Total release size: 12.8 kB

Release files / aspy-0.4.2.tar.gz

Download URL aspy-0.4.2.tar.gz
Size 5.5 kB
Tags Source
SHA-256 checksum
How to use checksums
253928274b9c49ded6b71ef982c077c6e39651a5a00f0c0bf2b28d28f8dfe3f5
BLAKE2b-256 checksum
How to use checksums
2953a04928d6ab157351d199d2371c867443fac433c6decb9f61c26d870ceeea
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via Python-urllib/3.6

Release files / aspy-0.4.2-py3-none-any.whl

Download URL aspy-0.4.2-py3-none-any.whl
Size 7.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
07e152c7579610653d3ebe00bbf621e32492b2a47a3a18011630a59f6634b865
BLAKE2b-256 checksum
How to use checksums
eb05be82af526e3d88b030b572544fb9c9ef835fe2a15d33a64924f6dd883bb3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via Python-urllib/3.6

Release history Release notifications | RSS feed

This release

0.4.2 This release

2 release files

0.4.1

2 release files

0.4.0

1 release file

0.3.0

1 release file

0.2.2

1 release file

0.2.1

1 release file

0.2.0

1 release file

0.1.1

1 release file

0.1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page