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.0.tar.gz (216.9 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.0-py3-none-any.whl (15.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: cattle_hugs-0.1.0.tar.gz
  • Upload date:
  • Size: 216.9 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.0.tar.gz
Algorithm Hash digest
SHA256 9fcbfa7b0fe0638a9618ccc057c0e895a18b661761b8161750b81c3ffeeada2c
MD5 911e60e8427c7676d70a82c66a87384b
BLAKE2b-256 c7d36172ce13e8de81629f876c77b6a02e620bea4ebde2525b8a4c5d049ddaf5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: cattle_hugs-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 15.6 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5bf40c3164c060fb3fcd102b5c4539baa0d3a9514174ef33b3af1d2fd4952f24
MD5 95cf71f102502d8cb4fa66c3d6ac47c1
BLAKE2b-256 fb81d4381c37978bb224da443453707f4a61f1337a084447a4fda58f5ba7cfc9

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