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
Close
Hashes for activity_tools-0.0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f6eac6d141dc88ba0ac203c02d45c6c8b9c463d77f76c495d187d0caeeb18696 |
|
MD5 | 6aacf127424de01367eb6a6991df254a |
|
BLAKE2b-256 | cbeaf3e9115bb7b40783e8d44ee580ad04d275180cf72a9f850ddfb22bb3a391 |