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.5.3.tar.gz (33.5 kB view details)

Uploaded Source

Built Distribution

bovine_process-0.5.3-py3-none-any.whl (22.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: bovine_process-0.5.3.tar.gz
  • Upload date:
  • Size: 33.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.4.2 CPython/3.11.3 Linux/6.1.0-13-amd64

File hashes

Hashes for bovine_process-0.5.3.tar.gz
Algorithm Hash digest
SHA256 31c36e962c773610ea438b760d82a59f5a80da764379a4c681dc8376ac25013b
MD5 1383340e87c962b560d4165d689f2e2e
BLAKE2b-256 43e6e15e6e9f5bd85b2e074147a39203a3d2488488db45eb80557e1cfb3a87e9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: bovine_process-0.5.3-py3-none-any.whl
  • Upload date:
  • Size: 22.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.4.2 CPython/3.11.3 Linux/6.1.0-13-amd64

File hashes

Hashes for bovine_process-0.5.3-py3-none-any.whl
Algorithm Hash digest
SHA256 0e03012a61248136c9792e4a30c5f0e5b468802ef1730043e0db4038ba99ad5f
MD5 51225d63338814b525618bb39cd6eb76
BLAKE2b-256 ac65999fda06f5b72d5b2e31a1b326f79440bada19fbdd829cbdde027bf70c79

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