Name | aett-postgres JSON |
Version |
2.1.0
JSON |
| download |
home_page | None |
Summary | Postgres connector for aett event store |
upload_time | 2024-11-23 21:08:42 |
maintainer | None |
docs_url | None |
author | None |
requires_python | >=3.10 |
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. |
keywords |
events
event store
postgres
|
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-postgres)](https://pepy.tech/project/aett-postgres)
Aett Postgres provides the ability to store and retrieve events from a Postgres.
## Usage
To create an event stream to manage events, you can use the `PersistenceManagement` class.
```python
import psycopg
from aett.postgres.EventStore import PersistenceManagement
# Set up a new event store
mgmt = PersistenceManagement(psycopg.connect("host=localhost port=5432 dbname=aett user=aett password=aett"))
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 Postgres database connection and specifying the configured table name.
```python
from aett.postgres.EventStore import CommitStore, SnapshotStore
import pymongo.database
snapshot_store = SnapshotStore(psycopg.connect("host=localhost port=5432 dbname=aett user=aett password=aett"))
```
Raw data
{
"_id": null,
"home_page": null,
"name": "aett-postgres",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.10",
"maintainer_email": null,
"keywords": "events, event store, postgres",
"author": null,
"author_email": "Jacob Reimers <pypi@reimers.io>",
"download_url": "https://files.pythonhosted.org/packages/6d/cc/7aa432bde1384d494f9557eaf72b372dc40913e4959689e57a4dac318dba/aett_postgres-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-postgres)](https://pepy.tech/project/aett-postgres)\n\nAett Postgres provides the ability to store and retrieve events from a Postgres.\n\n## Usage\n\nTo create an event stream to manage events, you can use the `PersistenceManagement` class.\n\n```python\nimport psycopg\nfrom aett.postgres.EventStore import PersistenceManagement\n\n# Set up a new event store\nmgmt = PersistenceManagement(psycopg.connect(\"host=localhost port=5432 dbname=aett user=aett password=aett\"))\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 Postgres database connection and specifying the configured table name.\n\n```python\nfrom aett.postgres.EventStore import CommitStore, SnapshotStore\nimport pymongo.database\n\nsnapshot_store = SnapshotStore(psycopg.connect(\"host=localhost port=5432 dbname=aett user=aett password=aett\"))\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": "Postgres connector for aett event store",
"version": "2.1.0",
"project_urls": {
"Homepage": "https://github.com/jjrdk/aett"
},
"split_keywords": [
"events",
" event store",
" postgres"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "627ce496d5a7266bbfbccb4d4c1cf1ff31491d2a51f60c6b3e6bdb44ba8c3225",
"md5": "9652eed5774529d631be1cd0647caf6c",
"sha256": "c7a60416b21646831e85c168fd0576c94a60acafddf7da992e8c1fc127d3bb74"
},
"downloads": -1,
"filename": "aett_postgres-2.1.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "9652eed5774529d631be1cd0647caf6c",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.10",
"size": 5936,
"upload_time": "2024-11-23T21:08:40",
"upload_time_iso_8601": "2024-11-23T21:08:40.824647Z",
"url": "https://files.pythonhosted.org/packages/62/7c/e496d5a7266bbfbccb4d4c1cf1ff31491d2a51f60c6b3e6bdb44ba8c3225/aett_postgres-2.1.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "6dcc7aa432bde1384d494f9557eaf72b372dc40913e4959689e57a4dac318dba",
"md5": "68bc2046d641f957f14d85eab3461f31",
"sha256": "17c4dc85ccbab846e19e000daef080b290eaab218f28740fa034fa04916133fb"
},
"downloads": -1,
"filename": "aett_postgres-2.1.0.tar.gz",
"has_sig": false,
"md5_digest": "68bc2046d641f957f14d85eab3461f31",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.10",
"size": 6185,
"upload_time": "2024-11-23T21:08:42",
"upload_time_iso_8601": "2024-11-23T21:08:42.593797Z",
"url": "https://files.pythonhosted.org/packages/6d/cc/7aa432bde1384d494f9557eaf72b372dc40913e4959689e57a4dac318dba/aett_postgres-2.1.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-11-23 21:08:42",
"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-postgres"
}