Skip to main content

Tiny ActivityPub framework written in Python, both database and server agnostic.

Project description

# Little Boxes

<a href=""><img src="" alt="Build Status"></a>
<a href=""><img src="" /></a>
<a href=""><img src="" alt="License"></a>

Tiny [ActivityPub]( framework written in Python, both database and server agnostic.

**Still in early development, and not published on PyPI yet.**

## Getting Started

from little_boxes import activitypub as ap

from mydb import db_client

class MyBackend(BaseBackend):

def __init__(self, db_connection):
self.db_connection = db_connection

def inbox_new(self, as_actor, activity):
# Save activity as "as_actor"
# [...]

def post_to_remote_inbox(self, as_actor, payload, recipient):
# Send the activity to the remote actor
# [...]

db_con = db_client()
my_backend = MyBackend(db_con)


me = ap.Person({}) # Init an actor
outbox = ap.Outbox(me)

follow = ap.Follow(actor=me, object='http://iri-i-want-follow')

## Projects using Little Boxes

- []( (using MongoDB as a backend)

## Contributions

TODO: document Mypy, flake8 and black.

PRs are welcome, please open an issue to start a discussion before your start any work.

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

little_boxes-0.1.0.tar.gz (13.3 kB view hashes)

Uploaded source

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page