Skip to main content

Processing of Side Effects of ActivityPub Activities for an ActivityPub Server

Project description

bovine_process

Note: Development of bovine_process will probably be discontinued

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

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

bovine_process-0.5.15-py3-none-any.whl (26.8 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for bovine_process-0.5.15.tar.gz
Algorithm Hash digest
SHA256 f4f8869a726973859737dab198038b8060c380bb26b69b4f424ea2f03a5691e5
MD5 c4a91e969ebd9ddf7fddae35939bd8f3
BLAKE2b-256 b4f20ad7655bb92bc1513e073cc8d50cbb8467856b0298faf6cfeb9edf819796

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for bovine_process-0.5.15-py3-none-any.whl
Algorithm Hash digest
SHA256 6db599dab90e6905a199fb78ce62e38051b4f3b88b3b6f8875239365f93ecd55
MD5 5e44317e36a555e7e9e13d291674dd24
BLAKE2b-256 5ca3b2b3ddf4e87ba3edeab786227707d4ef5d954fef397bb8af5b670d6c4936

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page