Skip to main content

Store for ActivityPub activities, actors and objects

Project description

bovine_store

bovine_store is meant to be the module handling storing of local ActivityPub objects and caching of remote ActivityPub objects.

Usage

bovine_store assumes that a database connection is initialized using tortoise-orm. See examples/basic_app.py for how to do this in the context of a quart app.

TODO

  • When properties of actor are updated, send an update Activity
    • Doesn't fit into the current bovine framework ... bovine_store doesn't know how to send activities
  • Generally rework the actor properties mechanism. It is currently not possible to emulate say Mastodon featured collection with it.
  • bovine_store.models.BovineActorKeyPair needs renamings; and work, e.g. a future identity column should have a uniqueness constraint.
  • Generally the code quality is not as high as it should be.

Examples

A demonstration webserver can be seen using

poetry run python examples/basic_app.py

Note this is a very basic example. Instructions what the example does are printed to the command line after start.

Note: This example creates two files db.sqlite3, which contains the database and context_cache.sqlite, which contains the cache of json-ld contexts.

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_store-0.3.0.tar.gz (23.4 kB view details)

Uploaded Source

Built Distribution

bovine_store-0.3.0-py3-none-any.whl (35.4 kB view details)

Uploaded Python 3

File details

Details for the file bovine_store-0.3.0.tar.gz.

File metadata

  • Download URL: bovine_store-0.3.0.tar.gz
  • Upload date:
  • Size: 23.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.3.2 CPython/3.10.6 Linux/5.15.0-76-generic

File hashes

Hashes for bovine_store-0.3.0.tar.gz
Algorithm Hash digest
SHA256 2e85d769192bc0c5790ee27990aba896547835e0aec57b99483974f86e43fa42
MD5 5dccc0c7116a529278ed686514b83c03
BLAKE2b-256 dc3d99ad2f56c5104159be62cbb0f79f960a40f110ba9065357f21a4554bb157

See more details on using hashes here.

File details

Details for the file bovine_store-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: bovine_store-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 35.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.3.2 CPython/3.10.6 Linux/5.15.0-76-generic

File hashes

Hashes for bovine_store-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4afa8d6ec8ad9c75cef5be011b5408e81e71df37a1ff232e2b8fd33910f707a4
MD5 98ff7702aff9218875f06e4d5f5f10e5
BLAKE2b-256 e31ce98820a2288bdd64056a7f73193780ebcf0dd5a8b9d63dc811bdf5b7b6f5

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