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. 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


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

Uploaded Source

Built Distribution

bovine_process-0.2.0-py3-none-any.whl (16.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: bovine_process-0.2.0.tar.gz
  • Upload date:
  • Size: 8.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.3.2 CPython/3.10.6 Linux/5.15.0-71-generic

File hashes

Hashes for bovine_process-0.2.0.tar.gz
Algorithm Hash digest
SHA256 239163b295d308de9ecd547f7844b51f5a506527093457f237c604d30413ae1b
MD5 88c6408db6d2989d79f6d60e87cab6b6
BLAKE2b-256 19e9d9e8bab4cfd1d4e5471e191f0b847b1760337964e19d8116a6ebc7db7de8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: bovine_process-0.2.0-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-71-generic

File hashes

Hashes for bovine_process-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 cbcf57a410474ab79bbb8ce36fe3fb10f18f3d2da9453eb6ebfc5d309415a81b
MD5 c1cf462b49d731ad6b933465d7ead4ec
BLAKE2b-256 7ed411104bd185ff31fe76e2b4f01d179e0d0aed3b573758a54fdc2ee8a26f8a

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