Skip to main content

A general Python ActivityPub library

Project description

# activitypub

This module is designed to be a generally useful ActivityPub library in Python. It targets three different levels of use:

* ActivityPub object API
* ActivityPub database API
* Webserver

The first two levels can be used indpendently, or together. They can best be used toegether using a Manager:

```python
>>> from activitypub import Manager
>>> from activitypub.database import DummyDatabase
>>> db = DummyDatabase()
>>> manager = Manager(database=db)
>>> p = manager.Person(id="alyssa")
>>> p.to_dict()
{'@context': 'https://www.w3.org/ns/activitystreams',
'endpoints': {},
'followers': 'https://example.com/alyssa/followers',
'following': 'https://example.com/alyssa/following',
'id': 'https://example.com/alyssa',
'inbox': 'https://example.com/alyssa/inbox',
'liked': 'https://example.com/alyssa/liked',
'likes': 'https://example.com/alyssa/likes',
'outbox': 'https://example.com/alyssa/outbox',
'type': 'Person',
'url': 'https://example.com/alyssa'}
```


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

activitypub-0.0.1.tar.gz (18.2 kB view details)

Uploaded Source

Built Distribution

activitypub-0.0.1-py2.py3-none-any.whl (23.8 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file activitypub-0.0.1.tar.gz.

File metadata

  • Download URL: activitypub-0.0.1.tar.gz
  • Upload date:
  • Size: 18.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for activitypub-0.0.1.tar.gz
Algorithm Hash digest
SHA256 95616d062089bf044e4700a91aa55c12abc287f29b6cb934e3898f58a409f02b
MD5 2475ecb3dfbffe483d0b7f4dba4ed8ec
BLAKE2b-256 d96e491eda9e3dd3e3ccde8596a0ffb8440b61a9bfe9e0460992f9e23348aa34

See more details on using hashes here.

Provenance

File details

Details for the file activitypub-0.0.1-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for activitypub-0.0.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 93fc25a0d9fdd73a325887b6ab7273b0c5bb4347a6fe176b8518fe019245d922
MD5 e8b1b8406445337caa0b4ec3b9711816
BLAKE2b-256 52a19873782acaa46f4fd7b7869b031ff3ffc11a39fcfc701c6f27cf295abf09

See more details on using hashes here.

Provenance

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