Name | bovine-tool JSON |
Version |
0.5.6
JSON |
| download |
home_page | https://codeberg.org/bovine/bovine |
Summary | Basic tools to administrate a bovine herd |
upload_time | 2023-12-21 07:30:22 |
maintainer | |
docs_url | None |
author | Helge |
requires_python | >=3.11,<4.0 |
license | |
keywords |
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# 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
```bash
python -m bovine_tool.register fediverse_handle [--domain DOMAIN]
```
the domain must be specified. This creates the account `acct:fediverse_handle@DOMAIN`.
## Managing users
```bash
python -m bovine_tool.manage bovine_name
```
displays the user.
To add a did key for [the Moo Client Registration Flow](https://blog.mymath.rocks/2023-03-25/BIN2_Moo_Client_Registration_Flow) with a BovineClient use
```bash
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
```bash
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
```sql
delete from collectionitem where part_of in (select name from bovineactorendpoint where stream_name='INBOX') and created < (current_date - interval '7 day');
```
Raw data
{
"_id": null,
"home_page": "https://codeberg.org/bovine/bovine",
"name": "bovine-tool",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.11,<4.0",
"maintainer_email": "",
"keywords": "",
"author": "Helge",
"author_email": "helge.krueger@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/6f/e6/5f8076129057b2204574e75400339511cf7891cb857dd69fc6e13f20498f/bovine_tool-0.5.6.tar.gz",
"platform": null,
"description": "# bovine_tool\n\n__This package is deprecated with bovine 0.5.5 use `python -m bovine_store` instead__.\n\nbovine_tool provides a CLI interface to manage bovine.\n\n## Configuration\n\nThe default database connection is \"sqlite://bovine.sqlite3\". This can be overridden with the environment variable \"BOVINE_DB_URL\".\n\n## Quick start\n\nTo register a new user with a FediVerse handle use\n\n```bash\npython -m bovine_tool.register fediverse_handle [--domain DOMAIN]\n```\n\nthe domain must be specified. This creates the account `acct:fediverse_handle@DOMAIN`.\n\n## Managing users\n\n```bash\npython -m bovine_tool.manage bovine_name\n```\n\ndisplays the user.\n\nTo add a did key for [the Moo Client Registration Flow](https://blog.mymath.rocks/2023-03-25/BIN2_Moo_Client_Registration_Flow) with a BovineClient use\n\n```bash\npython -m bovine_tool.manage bovine_name --did_key key_name did_key\n```\n\nFurthermore, using `--properties` the properties can be over written.\n\n## Cleaning the database\n\n```bash\npython -m bovine_tool.cleanup\n```\n\nto 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.\n\n- remove inbox, outbox entries older than 14 days\n- have a \"timeline\" of outbox entries to display on a public profile\n- remove all local entries not in inbox, outbox, or timeline\n- remove deleted items older than 1 month\n- make time frames configurable\n\n## Cleanup inbox collections\n\nTry\n\n```sql\ndelete from collectionitem where part_of in (select name from bovineactorendpoint where stream_name='INBOX') and created < (current_date - interval '7 day');\n```\n",
"bugtrack_url": null,
"license": "",
"summary": "Basic tools to administrate a bovine herd",
"version": "0.5.6",
"project_urls": {
"Homepage": "https://codeberg.org/bovine/bovine",
"Repository": "https://codeberg.org/bovine/bovine"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "6c23930edcb358e833facbee5ab746bd3132627535340f9e32daa326ad81745c",
"md5": "a6636e63bd7eaceff65acdb3c7d42b49",
"sha256": "de15ea28eae224229b5df55c06456f3365e87689b2a2828fdb427b73b14aedc0"
},
"downloads": -1,
"filename": "bovine_tool-0.5.6-py3-none-any.whl",
"has_sig": false,
"md5_digest": "a6636e63bd7eaceff65acdb3c7d42b49",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.11,<4.0",
"size": 4854,
"upload_time": "2023-12-21T07:30:21",
"upload_time_iso_8601": "2023-12-21T07:30:21.699840Z",
"url": "https://files.pythonhosted.org/packages/6c/23/930edcb358e833facbee5ab746bd3132627535340f9e32daa326ad81745c/bovine_tool-0.5.6-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "6fe65f8076129057b2204574e75400339511cf7891cb857dd69fc6e13f20498f",
"md5": "addd44bdcb300ebe57cd4c093e5d5ea9",
"sha256": "14e97d1f7a1641175f5fe2dafd97e319762b2b067c8e63542257591f673ff657"
},
"downloads": -1,
"filename": "bovine_tool-0.5.6.tar.gz",
"has_sig": false,
"md5_digest": "addd44bdcb300ebe57cd4c093e5d5ea9",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.11,<4.0",
"size": 3355,
"upload_time": "2023-12-21T07:30:22",
"upload_time_iso_8601": "2023-12-21T07:30:22.743024Z",
"url": "https://files.pythonhosted.org/packages/6f/e6/5f8076129057b2204574e75400339511cf7891cb857dd69fc6e13f20498f/bovine_tool-0.5.6.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-12-21 07:30:22",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": true,
"codeberg_user": "bovine",
"codeberg_project": "bovine",
"lcname": "bovine-tool"
}