bovine-store


Namebovine-store JSON
Version 0.5.10 PyPI version JSON
download
home_pagehttps://codeberg.org/bovine/bovine
SummaryStore for ActivityPub activities, actors and objects
upload_time2024-02-10 14:07:39
maintainer
docs_urlNone
authorHelge
requires_python>=3.11,<4.0
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

`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": "",
    "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/87/c6/1badbda668a8d69c1110cab8cd992b362d409a0041e3e927557b30782d32/bovine_store-0.5.10.tar.gz",
    "platform": null,
    "description": "<!--\nSPDX-FileCopyrightText: 2023 Helge\n\nSPDX-License-Identifier: MIT\n-->\n\n# bovine_store\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.10",
    "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": "753ea137261a73476086ec76207b99f35721541e3949efc363938f524928ced6",
                "md5": "cdf05fceacc43c9deb84a8aa85a38981",
                "sha256": "1a121b183899a3befae502d6f2dc66a0ab0a82bd4e98506d330b0f5f743bcf3d"
            },
            "downloads": -1,
            "filename": "bovine_store-0.5.10-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "cdf05fceacc43c9deb84a8aa85a38981",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.11,<4.0",
            "size": 33030,
            "upload_time": "2024-02-10T14:07:37",
            "upload_time_iso_8601": "2024-02-10T14:07:37.576987Z",
            "url": "https://files.pythonhosted.org/packages/75/3e/a137261a73476086ec76207b99f35721541e3949efc363938f524928ced6/bovine_store-0.5.10-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "87c61badbda668a8d69c1110cab8cd992b362d409a0041e3e927557b30782d32",
                "md5": "e9fc1735681f678a456ffde08d5d3f4d",
                "sha256": "1a3a78db125a996aaad38b2849e7ad70ac8718289a869f0c499255502d768fa7"
            },
            "downloads": -1,
            "filename": "bovine_store-0.5.10.tar.gz",
            "has_sig": false,
            "md5_digest": "e9fc1735681f678a456ffde08d5d3f4d",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.11,<4.0",
            "size": 67076,
            "upload_time": "2024-02-10T14:07:39",
            "upload_time_iso_8601": "2024-02-10T14:07:39.533502Z",
            "url": "https://files.pythonhosted.org/packages/87/c6/1badbda668a8d69c1110cab8cd992b362d409a0041e3e927557b30782d32/bovine_store-0.5.10.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-02-10 14:07:39",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": true,
    "codeberg_user": "bovine",
    "codeberg_project": "bovine",
    "lcname": "bovine-store"
}
        
Elapsed time: 0.16716s