Skip to main content

ActivityPub building blocks for Python

Project description

activity-tools

This project contains building blocks that can be used to create ActivityPub applications.

Actor

This generates basic actor that contains the needed bits to make Mastodon happy.

import activity-tools

actor_domain = "example.com"
actor_user = "alice"
public_key = ...

actor = activity-tools.actor.Actor(actor_domain, actor_user, public_key)

actor_dict = actor.run()

A few values like inbox URL defaults to https://{actor_domain}/users/{actor_user}/inbox. You can change this easily:

actor.inbox = f"https://{self.domain}/actor/{self.username}/in"
actor.outbox = f"https://{self.domain}/actor/{self.username}/out"
actor_dict = actor.run()

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

activity_tools-0.0.4-py3-none-any.whl (4.0 kB view hashes)

Uploaded Python 3

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