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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for bovine_tool-0.5.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 22a357c8259e5ea973e928bbb737f891fb3234ff42d62eb447bf3190e51a781c |
|
MD5 | af528869a2c67bdaf33bb90939f1eb3a |
|
BLAKE2b-256 | 7029e033daae3727f5e8caaa8f2caa780b5163540339d62aa7c42cfdebbe1897 |