Processing of Side Effects of ActivityPub Activities for an ActivityPub Server
Project description
bovine_process
bovine_process
consists of the side effect logic of Activity objects. This means it contains the code, the logic that for an incoming object, one executes:
- Store object in bovine_store
- Add reference to inbox
- Perform side effects
- Enque object for bovine_pubsub
And a similar list of effects for outgoing objects, i.e
- Store object in bovine_store
- Add reference to outbox
- Perform side effects
- Send objects to follower's inbox
- Enque object for bovine_pubsub
The behavior defined in this package corresponds to 6. Client to Server Interactions and 7. Server to Server Interactions of the ActivityPub specification. However, only a small subset of side effects is implemented.
Implemented Side Effects
- Create, Update, Delete. Deletes are handled by replacing the object with a Tombstone. Various checks are performed to ensure only appropriate Updates happen.
- Specify Update checks
- Follow and Accept
- Outgoing Accept of Follow adds to followers
- Incoming Accept of Follows adds to following
- Implement other side effects, in particular Like, Announce, and inReplyTo
- Authority checks.
That's it. Currently, no collections for replies and likes are kept in bovine_store, so implementing these side effects cannot happen yet:
- Announce -> add to share collection
- Like -> add to likes collection
- Create with inReplyTo -> add to replies collection
Tests
The folder tests/data
contains test cases what side effects happen in the database for certain cases.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file bovine_process-0.2.5.tar.gz
.
File metadata
- Download URL: bovine_process-0.2.5.tar.gz
- Upload date:
- Size: 8.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.3.2 CPython/3.10.6 Linux/5.15.0-72-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8a4e71cd50606cb414dd64e627ae247d905510d4e3829acbce26dbf7e2e07be0 |
|
MD5 | 8d3170260fa83e7a5b93065a3799e2ab |
|
BLAKE2b-256 | 65ef806fecb6f25d0180c7b17c6146d6f01f20913ad2244ec256158dc48cd532 |
File details
Details for the file bovine_process-0.2.5-py3-none-any.whl
.
File metadata
- Download URL: bovine_process-0.2.5-py3-none-any.whl
- Upload date:
- Size: 16.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.3.2 CPython/3.10.6 Linux/5.15.0-72-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 89a7ee7d3f5463bcb522385869ef657772d0546b69103c429cb448de468d9a7f |
|
MD5 | a1bc68789936f754be78c546560ad390 |
|
BLAKE2b-256 | f7bd7df48b0521b27ca189ace7dde5904c1710cb6d1245218c15602874bea6d1 |