Skip to main content

Basic tools to administrate a bovine herd

Project description

bovine_tool

This package is deprecated with bovine 0.5.5 use python -m bovine_store instead.

bovine_tool provides a CLI interface to manage bovine.

Configuration

The default database connection is "sqlite://bovine.sqlite3". This can be overridden with the environment variable "BOVINE_DB_URL".

Quick start

To register a new user with a FediVerse handle use

python -m bovine_tool.register fediverse_handle [--domain DOMAIN]

the domain must be specified. This creates the account acct:fediverse_handle@DOMAIN.

Managing users

python -m bovine_tool.manage bovine_name

displays the user.

To add a did key for the Moo Client Registration Flow with a BovineClient use

python -m bovine_tool.manage bovine_name --did_key key_name did_key

Furthermore, using --properties the properties can be over written.

Cleaning the database

python -m bovine_tool.cleanup

to delete all remote objects older than 3 days. This should be expanded to make the variables configurable and delete a bunch of other stuff, e.g.

  • remove inbox, outbox entries older than 14 days
  • have a "timeline" of outbox entries to display on a public profile
  • remove all local entries not in inbox, outbox, or timeline
  • remove deleted items older than 1 month
  • make time frames configurable

Cleanup inbox collections

Try

delete from collectionitem where part_of in (select name from bovineactorendpoint where stream_name='INBOX') and created < (current_date - interval '7 day');

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_tool-0.5.6.tar.gz (3.4 kB view details)

Uploaded Source

Built Distribution

bovine_tool-0.5.6-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

Details for the file bovine_tool-0.5.6.tar.gz.

File metadata

  • Download URL: bovine_tool-0.5.6.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.4.2 CPython/3.11.3 Linux/6.1.0-13-amd64

File hashes

Hashes for bovine_tool-0.5.6.tar.gz
Algorithm Hash digest
SHA256 14e97d1f7a1641175f5fe2dafd97e319762b2b067c8e63542257591f673ff657
MD5 addd44bdcb300ebe57cd4c093e5d5ea9
BLAKE2b-256 6fe65f8076129057b2204574e75400339511cf7891cb857dd69fc6e13f20498f

See more details on using hashes here.

File details

Details for the file bovine_tool-0.5.6-py3-none-any.whl.

File metadata

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

File hashes

Hashes for bovine_tool-0.5.6-py3-none-any.whl
Algorithm Hash digest
SHA256 de15ea28eae224229b5df55c06456f3365e87689b2a2828fdb427b73b14aedc0
MD5 a6636e63bd7eaceff65acdb3c7d42b49
BLAKE2b-256 6c23930edcb358e833facbee5ab746bd3132627535340f9e32daa326ad81745c

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