bovine-store


Namebovine-store JSON
Version 0.5.18 PyPI version JSON
download
home_pagehttps://codeberg.org/bovine/bovine
SummaryStore for ActivityPub activities, actors and objects
upload_time2025-02-07 18:11:32
maintainerNone
docs_urlNone
authorHelge
requires_python<4.0,>=3.11
licenseMIT
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            <!--
SPDX-FileCopyrightText: 2023 Helge

SPDX-License-Identifier: MIT
-->

# bovine_store

__Note__: Development of bovine_store will probably be discontinued

`bovine_store` is meant to be the module handling storing of
local ActivityPub objects and caching of remote ActivityPub
objects.

## Usage

bovine_store assumes that a database connection is initialized using [tortoise-orm](https://tortoise.github.io/). See `examples/basic_app.py` for how to do this in the context of a quart app.

## TODO

- [ ] When properties of actor are updated, send an update Activity
  - Doesn't fit into the current bovine framework ... bovine_store doesn't know how to send activities
- [ ] Generally rework the actor properties mechanism. It is currently not possible to emulate say Mastodon featured collection with it.
- [ ] bovine_store.models.BovineActorKeyPair needs renamings; and work, e.g. a future identity column should have a uniqueness constraint.
- [ ] Generally the code quality is not as high as it should be.

## Examples

A demonstration webserver can be seen using

```bash
poetry run python examples/basic_app.py
```

Note this is a very basic example. Instructions what the example does are
printed to the command line after start.

Note: This example creates two files `db.sqlite3`, which contains the
database and `context_cache.sqlite`, which contains the cache of json-ld
contexts.

## Running tests

For sqlite3

```bash
poetry run pytest
```

For postgres

```bash
BOVINE_DB_URL=postgres://postgres:secret@postgres:5432/postgres poetry run pytest
```

            

Raw data

            {
    "_id": null,
    "home_page": "https://codeberg.org/bovine/bovine",
    "name": "bovine-store",
    "maintainer": null,
    "docs_url": null,
    "requires_python": "<4.0,>=3.11",
    "maintainer_email": null,
    "keywords": null,
    "author": "Helge",
    "author_email": "helge.krueger@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/61/ee/3d27d1dff12f4f87c550bc17e456ba0c3154f87a7ff5113c41c5d2bdc6c3/bovine_store-0.5.18.tar.gz",
    "platform": null,
    "description": "<!--\nSPDX-FileCopyrightText: 2023 Helge\n\nSPDX-License-Identifier: MIT\n-->\n\n# bovine_store\n\n__Note__: Development of bovine_store will probably be discontinued\n\n`bovine_store` is meant to be the module handling storing of\nlocal ActivityPub objects and caching of remote ActivityPub\nobjects.\n\n## Usage\n\nbovine_store assumes that a database connection is initialized using [tortoise-orm](https://tortoise.github.io/). See `examples/basic_app.py` for how to do this in the context of a quart app.\n\n## TODO\n\n- [ ] When properties of actor are updated, send an update Activity\n  - Doesn't fit into the current bovine framework ... bovine_store doesn't know how to send activities\n- [ ] Generally rework the actor properties mechanism. It is currently not possible to emulate say Mastodon featured collection with it.\n- [ ] bovine_store.models.BovineActorKeyPair needs renamings; and work, e.g. a future identity column should have a uniqueness constraint.\n- [ ] Generally the code quality is not as high as it should be.\n\n## Examples\n\nA demonstration webserver can be seen using\n\n```bash\npoetry run python examples/basic_app.py\n```\n\nNote this is a very basic example. Instructions what the example does are\nprinted to the command line after start.\n\nNote: This example creates two files `db.sqlite3`, which contains the\ndatabase and `context_cache.sqlite`, which contains the cache of json-ld\ncontexts.\n\n## Running tests\n\nFor sqlite3\n\n```bash\npoetry run pytest\n```\n\nFor postgres\n\n```bash\nBOVINE_DB_URL=postgres://postgres:secret@postgres:5432/postgres poetry run pytest\n```\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Store for ActivityPub activities, actors and objects",
    "version": "0.5.18",
    "project_urls": {
        "Documentation": "https://bovine-store.readthedocs.io/en/latest/",
        "Homepage": "https://codeberg.org/bovine/bovine",
        "Repository": "https://codeberg.org/bovine/bovine"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "cd78908f72f7adae0b5aee4f9e9c5a473f2071aa64458340eb7c4e3ece0cea8b",
                "md5": "bec71bfcbd957f1557df1bf635ac6732",
                "sha256": "148da6e0769b7a5f09f34265a31a3a5833430cefb530a5ed6f3754f28f636bda"
            },
            "downloads": -1,
            "filename": "bovine_store-0.5.18-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "bec71bfcbd957f1557df1bf635ac6732",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "<4.0,>=3.11",
            "size": 33126,
            "upload_time": "2025-02-07T18:11:30",
            "upload_time_iso_8601": "2025-02-07T18:11:30.169204Z",
            "url": "https://files.pythonhosted.org/packages/cd/78/908f72f7adae0b5aee4f9e9c5a473f2071aa64458340eb7c4e3ece0cea8b/bovine_store-0.5.18-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "61ee3d27d1dff12f4f87c550bc17e456ba0c3154f87a7ff5113c41c5d2bdc6c3",
                "md5": "20b16a4175c8813e46a7adb1540753ee",
                "sha256": "dd48a3cba3a558f9940301df90723647579b8bbb964d33d66cf3e6b1ddc59688"
            },
            "downloads": -1,
            "filename": "bovine_store-0.5.18.tar.gz",
            "has_sig": false,
            "md5_digest": "20b16a4175c8813e46a7adb1540753ee",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": "<4.0,>=3.11",
            "size": 68584,
            "upload_time": "2025-02-07T18:11:32",
            "upload_time_iso_8601": "2025-02-07T18:11:32.106034Z",
            "url": "https://files.pythonhosted.org/packages/61/ee/3d27d1dff12f4f87c550bc17e456ba0c3154f87a7ff5113c41c5d2bdc6c3/bovine_store-0.5.18.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-02-07 18:11:32",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": true,
    "codeberg_user": "bovine",
    "codeberg_project": "bovine",
    "lcname": "bovine-store"
}
        
Elapsed time: 0.40171s