aett-mongodb


Nameaett-mongodb JSON
Version 2.1.0 PyPI version JSON
download
home_pageNone
SummaryMongoDB connector for aett event store
upload_time2024-11-23 21:07:59
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/b1/a9/9a75bef2fe4da230005c25b5f6a8551d719df2fb5872e000b04b8c41eeea/aett_mongodb-2.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": "2.1.0",
    "project_urls": {
        "Homepage": "https://github.com/jjrdk/aett"
    },
    "split_keywords": [
        "events",
        " event store",
        " mongo",
        " mongodb"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "5fd841cbc8f30b5833485b95676d1610b31f60dc027c5e8c36fdfdadf3c0b50c",
                "md5": "f217a227faba968361b074c8b7a8439a",
                "sha256": "6ff71f65d335cbae760f7aede6eda67a3197d35c03a7bf383140969a87bf97e9"
            },
            "downloads": -1,
            "filename": "aett_mongodb-2.1.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "f217a227faba968361b074c8b7a8439a",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.10",
            "size": 5836,
            "upload_time": "2024-11-23T21:07:56",
            "upload_time_iso_8601": "2024-11-23T21:07:56.421899Z",
            "url": "https://files.pythonhosted.org/packages/5f/d8/41cbc8f30b5833485b95676d1610b31f60dc027c5e8c36fdfdadf3c0b50c/aett_mongodb-2.1.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "b1a99a75bef2fe4da230005c25b5f6a8551d719df2fb5872e000b04b8c41eeea",
                "md5": "e82cd2a8885c4009d677ab74256a8aa3",
                "sha256": "baa324a2dbb8b32450be51d68125fe9f1ee30153c00fdeee5e468c4fb6963e67"
            },
            "downloads": -1,
            "filename": "aett_mongodb-2.1.0.tar.gz",
            "has_sig": false,
            "md5_digest": "e82cd2a8885c4009d677ab74256a8aa3",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.10",
            "size": 5298,
            "upload_time": "2024-11-23T21:07:59",
            "upload_time_iso_8601": "2024-11-23T21:07:59.062697Z",
            "url": "https://files.pythonhosted.org/packages/b1/a9/9a75bef2fe4da230005c25b5f6a8551d719df2fb5872e000b04b8c41eeea/aett_mongodb-2.1.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-11-23 21:07:59",
    "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.37502s