Skip to main content

No project description provided

Project description

cattle_hugs

cattle_hugs is an interaction management extension for cattle_grid. The goal of cattle_hugs is to provide some of the primitives needed to interact with the rest of the Fediverse.

Features

The two features of this extension are:

  • Keep track of information used to display an actor, i.e. ObjectMetaInfo from muck_out
  • Allow the tracking of interactions, e.g. replies and likes

There are some derived features such as providing API endpoints to retrieve this data. However, the above two features consider the goals of this extension.

We note that cattle_hugs is for public information.

Methods

The methods to implement something should be exported from cattle_hugs and the used pydantic models from cattle_hugs.types.

The information on this may change.

Including in cattle_grid

Currently the cattle_grid extension has no configuration and can be included by installing the package cattle-hugs and then adding

[[extensions]]
module = "cattle_hugs"

to your extensions.toml file.

Development

Running tests

One can run the tests via

uv run pytest

Running BDD Tests

First one needs to download the fediverse-features via

uv run python -mfediverse_features

This downloads

features/fediverse-features/
└── w3c
    ├── ap_likes.feature
    ├── ap_replies.feature
    └── ap_shares.feature

Then one can run the tests with

docker compose up --wait
docker compose run --name runner --rm cattle_grid_app ./test_shell.sh
behave

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

cattle_hugs-0.1.1.tar.gz (226.0 kB view details)

Uploaded Source

Built Distribution

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

cattle_hugs-0.1.1-py3-none-any.whl (16.5 kB view details)

Uploaded Python 3

File details

Details for the file cattle_hugs-0.1.1.tar.gz.

File metadata

  • Download URL: cattle_hugs-0.1.1.tar.gz
  • Upload date:
  • Size: 226.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.11 {"installer":{"name":"uv","version":"0.9.11"},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Alpine Linux","version":"3.22.2","id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for cattle_hugs-0.1.1.tar.gz
Algorithm Hash digest
SHA256 d817f3c0704293a2e4806eb44c1a65bc75724cfaf5ce6b71849b0810ebcb479b
MD5 177f44f50fedb68783e60a3700bd7fcd
BLAKE2b-256 5530b856da7db8068a1f565a330140f9717acbef24fe227b1ae3bb6290991562

See more details on using hashes here.

File details

Details for the file cattle_hugs-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: cattle_hugs-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 16.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.11 {"installer":{"name":"uv","version":"0.9.11"},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Alpine Linux","version":"3.22.2","id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for cattle_hugs-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 24f1302cda3a825c7b0df905d61c56b6dad6f9f047aa4520d5b6360f2bde1655
MD5 b5d4356dfa3c03e5b45758661fb66230
BLAKE2b-256 67bb6fdd4bb0c094b777796bba9113d524db998564fdfb948f46715e884188bd

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