Skip to main content

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 on objects, i.e. basic crud

  • Like, Dislike, EmojiReact -> add to likes collection; Undo removes

  • Announce -> add to share collection; Undo removes

  • The same person can Like, Announce, etc.. multiple times

  • Create with inReplyTo -> add to replies collection; Delete removes

  • Follow and Accept

    • Outgoing Accept of Follow adds to followers
    • Incoming Accept of Follows adds to following
  • Specify Update checks

  • Authority checks.

  • Refactor for easier customization / extension. Adding a new side effect currently requires publishing a new package. This should not be the case.

Tests

The folder tests/data contains test cases what side effects happen in the database for certain cases.

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

bovine_process-0.4.0.tar.gz (11.2 kB view details)

Uploaded Source

Built Distribution

bovine_process-0.4.0-py3-none-any.whl (20.5 kB view details)

Uploaded Python 3

File details

Details for the file bovine_process-0.4.0.tar.gz.

File metadata

  • Download URL: bovine_process-0.4.0.tar.gz
  • Upload date:
  • Size: 11.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.3.2 CPython/3.10.12 Linux/5.15.0-83-generic

File hashes

Hashes for bovine_process-0.4.0.tar.gz
Algorithm Hash digest
SHA256 8bae40c9a541703e2541ba4b05033d874e28b8c455f3ea2774ba57c1d7293405
MD5 63dc6e75d216560e0e6580a79103ec32
BLAKE2b-256 6480adb60321a9cdc7b4bc14f182b019e6f3521e3fe4b82b6592be3d8e4a3c23

See more details on using hashes here.

File details

Details for the file bovine_process-0.4.0-py3-none-any.whl.

File metadata

  • Download URL: bovine_process-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 20.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.3.2 CPython/3.10.12 Linux/5.15.0-83-generic

File hashes

Hashes for bovine_process-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 812fa4e759bd301c9c0ee2adba2da12ea12166b175019af24da2dc3d4a766db9
MD5 d7a6216b192f61fe8c5ecdbc49346909
BLAKE2b-256 57abbe128325caf37d877ca96dce7fc268f6fb2fc0c05757ba601d0ced286573

See more details on using hashes here.

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