aett-mongodb


Nameaett-mongodb JSON
Version 1.1.0 PyPI version JSON
download
home_pageNone
SummaryMongoDB connector for aett event store
upload_time2024-04-28 12:40:09
maintainerNone
docs_urlNone
authorNone
requires_python>=3.10
licenseMIT License Copyright (c) 2024 python_eventstore Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
keywords events event store mongo mongodb
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Æt (Aett) is an Event Store for Python

[![Downloads](https://static.pepy.tech/badge/aett-mongodb)](https://pepy.tech/project/aett-mongodb)

Aett Mongo provides the ability to store and retrieve events from a MongoDB collection.

## Usage

To create an event stream to manage events, you can use the `PersistenceManagement` class.

```python
import pymongo.database
from aett.mongodb.EventStore import PersistenceManagement

# Set up a new event store
mgmt = PersistenceManagement(pymongo.database.Database(pymongo.MongoClient('mongodb://localhost:27017/'), 'test'))
mgmt.initialize()

# Drop the store
mgmt.drop()
```

The package also provides `CommitStore` and `SnapshotStore` classes that can be used to store and retrieve events. They
can be instantiated by providing a MongoDB database connection and specifying the configured table name.

```python
from aett.mongodb.EventStore import CommitStore, SnapshotStore
import pymongo.database

snapshot_store = SnapshotStore(pymongo.database.Database(pymongo.MongoClient('mongodb://localhost:27017/'), 'test'))
```

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "aett-mongodb",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.10",
    "maintainer_email": null,
    "keywords": "events, event store, mongo, mongodb",
    "author": null,
    "author_email": "Jacob Reimers <pypi@reimers.io>",
    "download_url": "https://files.pythonhosted.org/packages/79/6d/c545eaf9434513d0853e4c2062f6c1b4c14c23b64be36cbe64cc95140ed0/aett_mongodb-1.1.0.tar.gz",
    "platform": null,
    "description": "# \u00c6t (Aett) is an Event Store for Python\n\n[![Downloads](https://static.pepy.tech/badge/aett-mongodb)](https://pepy.tech/project/aett-mongodb)\n\nAett Mongo provides the ability to store and retrieve events from a MongoDB collection.\n\n## Usage\n\nTo create an event stream to manage events, you can use the `PersistenceManagement` class.\n\n```python\nimport pymongo.database\nfrom aett.mongodb.EventStore import PersistenceManagement\n\n# Set up a new event store\nmgmt = PersistenceManagement(pymongo.database.Database(pymongo.MongoClient('mongodb://localhost:27017/'), 'test'))\nmgmt.initialize()\n\n# Drop the store\nmgmt.drop()\n```\n\nThe package also provides `CommitStore` and `SnapshotStore` classes that can be used to store and retrieve events. They\ncan be instantiated by providing a MongoDB database connection and specifying the configured table name.\n\n```python\nfrom aett.mongodb.EventStore import CommitStore, SnapshotStore\nimport pymongo.database\n\nsnapshot_store = SnapshotStore(pymongo.database.Database(pymongo.MongoClient('mongodb://localhost:27017/'), 'test'))\n```\n",
    "bugtrack_url": null,
    "license": "MIT License  Copyright (c) 2024 python_eventstore  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:  The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.  THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ",
    "summary": "MongoDB connector for aett event store",
    "version": "1.1.0",
    "project_urls": {
        "Homepage": "https://github.com/jjrdk/aett"
    },
    "split_keywords": [
        "events",
        " event store",
        " mongo",
        " mongodb"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "22a65b2dcc98b071cb9a44a3c78653eda99391f106b63df7c820b12809b25688",
                "md5": "677e060f402267b982c3eb28ad3b0222",
                "sha256": "60c0ba8e38ce50ebf6053992596574845007a977a031c725e8729aad96b74e22"
            },
            "downloads": -1,
            "filename": "aett_mongodb-1.1.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "677e060f402267b982c3eb28ad3b0222",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.10",
            "size": 5735,
            "upload_time": "2024-04-28T12:40:07",
            "upload_time_iso_8601": "2024-04-28T12:40:07.017930Z",
            "url": "https://files.pythonhosted.org/packages/22/a6/5b2dcc98b071cb9a44a3c78653eda99391f106b63df7c820b12809b25688/aett_mongodb-1.1.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "796dc545eaf9434513d0853e4c2062f6c1b4c14c23b64be36cbe64cc95140ed0",
                "md5": "8845935a670c15a5c1830a3f91a34c86",
                "sha256": "f936d16662e44d76e5023329e1e1284ded7566d8a9076c352123e454cf86a684"
            },
            "downloads": -1,
            "filename": "aett_mongodb-1.1.0.tar.gz",
            "has_sig": false,
            "md5_digest": "8845935a670c15a5c1830a3f91a34c86",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.10",
            "size": 5201,
            "upload_time": "2024-04-28T12:40:09",
            "upload_time_iso_8601": "2024-04-28T12:40:09.775302Z",
            "url": "https://files.pythonhosted.org/packages/79/6d/c545eaf9434513d0853e4c2062f6c1b4c14c23b64be36cbe64cc95140ed0/aett_mongodb-1.1.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-04-28 12:40:09",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "jjrdk",
    "github_project": "aett",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "requirements": [],
    "lcname": "aett-mongodb"
}
        
Elapsed time: 0.39486s