Skip to content

Commit

Permalink
Update to v0.7.0
Browse files Browse the repository at this point in the history
  • Loading branch information
jjrdk committed Apr 7, 2024
1 parent 6a7a589 commit 1718137
Show file tree
Hide file tree
Showing 10 changed files with 94 additions and 11 deletions.
4 changes: 2 additions & 2 deletions aett_domain/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ include = ["aett.domain"]

[project]
name = "aett-domain"
version = "0.6.0"
version = "0.7.0"
description = "Domain modeling types aett event store"
readme = "README.md"
authors = [{ name = "Jacob Reimers", email = "pypi@reimers.io" }]
Expand All @@ -23,7 +23,7 @@ classifiers = [
keywords = ["events", "event store", "ddd", "domain"]
dependencies = [
'multipledispatch >= 1.0.0',
'aett-eventstore>=0.6.0'
'aett-eventstore>=0.7.0'
]
requires-python = ">=3.10"

Expand Down
6 changes: 3 additions & 3 deletions aett_dynamodb/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ include = ["aett.dynamodb"]

[project]
name = "aett-dynamodb"
version = "0.6.0"
version = "0.7.0"
description = "DynamoDB connector for aett event store"
readme = "README.md"
authors = [{ name = "Jacob Reimers", email = "pypi@reimers.io" }]
Expand All @@ -22,8 +22,8 @@ classifiers = [
]
keywords = ["events", "event store", "dynamodb"]
dependencies = [
'aett-domain >= 0.6.0',
'boto3[crt]~=1.34.64'
'aett-domain >= 0.7.0',
'boto3[crt]~=1.34.79'
]
requires-python = ">=3.10"

Expand Down
2 changes: 1 addition & 1 deletion aett_eventstore/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ include = ["aett.eventstore"]

[project]
name = "aett-eventstore"
version = "0.6.0"
version = "0.7.0"
description = "Event store for Python"
readme = "README.md"
authors = [{ name = "Jacob Reimers", email = "pypi@reimers.io" }]
Expand Down
4 changes: 2 additions & 2 deletions aett_mongo/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ include = ["aett.mongodb"]

[project]
name = "aett-mongodb"
version = "0.6.0"
version = "0.7.0"
description = "MongoDB connector for aett event store"
readme = "README.md"
authors = [{ name = "Jacob Reimers", email = "pypi@reimers.io" }]
Expand All @@ -22,7 +22,7 @@ classifiers = [
]
keywords = ["events", "event store", "mongo", "mongodb"]
dependencies = [
'aett-domain >= 0.6.0',
'aett-domain >= 0.7.0',
'pymongo~=4.6.2'
]
requires-python = ">=3.10"
Expand Down
4 changes: 2 additions & 2 deletions aett_postgres/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ include = ["aett.postgres"]

[project]
name = "aett-postgres"
version = "0.6.0"
version = "0.7.0"
description = "Postgres connector for aett event store"
readme = "README.md"
authors = [{ name = "Jacob Reimers", email = "pypi@reimers.io" }]
Expand All @@ -22,7 +22,7 @@ classifiers = [
]
keywords = ["events", "event store", "postgres"]
dependencies = [
'aett-domain >= 0.6.0',
'aett-domain >= 0.7.0',
'psycopg-binary~=3.1.18'
]
requires-python = ">=3.10"
Expand Down
21 changes: 21 additions & 0 deletions aett_s3/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
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.
1 change: 1 addition & 0 deletions aett_s3/MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# MANIFEST.in
25 changes: 25 additions & 0 deletions aett_s3/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Æt (Aett) is an Event Store for Python

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

Aett S3 provides the ability to store and retrieve events from an S3 bucket.

## Usage

To create an event stream to manage events, you will need to create a bucket, which will serve as the root storage.

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.s3 import CommitStore, SnapshotStore, S3Config
from aett.eventstore import TopicMap

config = S3Config(bucket='test',
endpoint_url='http://localhost:9000',
use_tls=False,
aws_access_key_id='minioadmin',
aws_secret_access_key='minioadmin')
commit_store = CommitStore(s3_config=config, topic_map=TopicMap())
snapshot_store = SnapshotStore(s3_config=config)
```
36 changes: 36 additions & 0 deletions aett_s3/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# pyproject.toml

[build-system]
requires = ["setuptools>=69.1.1", "wheel"]
build-backend = "setuptools.build_meta"

[tool.setuptools.packages.find]
where = ["src/"]
include = ["aett.s3"]

[project]
name = "aett-s3"
version = "0.7.0"
description = "S3 connector for aett event store"
readme = "README.md"
authors = [{ name = "Jacob Reimers", email = "pypi@reimers.io" }]
license = { file = "LICENSE" }
classifiers = [
"License :: OSI Approved :: MIT License",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
]
keywords = ["events", "event store", "s3"]
dependencies = [
'aett-domain >= 0.7.0',
'boto3[crt]~=1.34.79'
]
requires-python = ">=3.10"

[project.optional-dependencies]
dev = ["pip-tools", "pytest", "behave"]

[project.urls]
Homepage = "https://github.com/jjrdk/aett"

[project.scripts]
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
setuptools~=69.1.1
protobuf~=5.26.0rc2
grpc~=1.0.0
boto3[crt]~=1.34.64
boto3[crt]~=1.34.79

typing~=3.7.4.3
behave~=1.2.6
Expand Down

0 comments on commit 1718137

Please sign in to comment.