Metadata-Version: 2.1
Name: az-evgrid-pydantic-schema
Version: 0.2.0
Summary: Azure Event Grid の event schema  を Pydantic Model で提供
Home-page: https://github.com/nnashiki/az-evgrid-pydantic-schema
Author: Niten Nashiki
Author-email: n.nashiki.work@gmail.com
Requires-Python: >=3.9,<4.0
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Requires-Dist: datamodel-code-generator (>=0.13.0,<0.14.0)
Requires-Dist: pydantic (>=1.9.1,<2.0.0)
Project-URL: Repository, https://github.com/nnashiki/az-evgrid-pydantic-schema
Description-Content-Type: text/markdown

# az-evgrid-pydantic-schema
Azure Event Grid の event schema を Pydantic Model で提供

## 使い方

Azure Event Grid の event データ(json形式) を Pydantic Model Object にパースできます。  
現段階では以下のイベントに対応しています。

- 実装済みのイベント
    - Microsoft.Storage.BlobCreated イベント
         - https://docs.microsoft.com/ja-jp/azure/event-grid/event-schema-blob-storage?tabs=event-grid-event-schema#microsoftstorageblobcreated-event
         - https://docs.microsoft.com/ja-jp/azure/event-grid/event-schema?WT.mc_id=Portal-Microsoft_Azure_EventGrid

test ファイルの中身を見ると使い方がわかります。

## 開発方法

以下手順を実行して、ローカルソースを利用したテストができます。

```shell
$ poetry shell
$ poetry run task test
```

## publish

- `poetry build`
- `poetry publish` 
    - `poetry publish` すると user と password の確認が求められます。
- https://cocoatomo.github.io/poetry-ja/repositories/

