Metadata-Version: 2.4
Name: angzarr-client
Version: 0.1.3
Summary: Python client library for Angzarr gRPC services
Project-URL: Homepage, https://github.com/benjaminabbitt/angzarr
Project-URL: Repository, https://github.com/benjaminabbitt/angzarr
Project-URL: Documentation, https://github.com/benjaminabbitt/angzarr/tree/main/client/python
Author: Benjamin Abbitt
License-Expression: AGPL-3.0-only
License-File: LICENSE
Keywords: angzarr,cqrs,event-sourcing,grpc
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: GNU Affero General Public License v3
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Requires-Python: >=3.10
Requires-Dist: grpcio>=1.60.0
Requires-Dist: protobuf>=4.25.0
Provides-Extra: dev
Requires-Dist: pytest-asyncio>=0.23.0; extra == 'dev'
Requires-Dist: pytest>=8.0.0; extra == 'dev'
Description-Content-Type: text/markdown

# angzarr-client

Python client library for Angzarr CQRS/ES framework.

## Installation

```bash
pip install angzarr-client
```

## Usage

```python
from angzarr_client import DomainClient

# Connect to a domain's aggregate coordinator
client = DomainClient("localhost:1310")

# Build and execute a command
response = client.command("order", root_id) \
    .with_command("CreateOrder", create_order_msg) \
    .execute()

# Query events
events = client.query("order", root_id) \
    .get_event_book()
```

## License

AGPL-3.0 - See [LICENSE](LICENSE) for details.
