Skip to content
This repository has been archived by the owner on Oct 28, 2024. It is now read-only.

Commit

Permalink
update doc
Browse files Browse the repository at this point in the history
  • Loading branch information
allmonday committed Feb 25, 2024
1 parent f44f9e4 commit e31d96b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,13 @@
What is composable pattarn? https://github.com/allmonday/composable-development-pattern

4 steps from root data to view data
![](./doc/concept.png)

## Install

```shell
pip install pydantic-resolve
pip install pydantic2-resolve
```

## Code snippets
Expand All @@ -29,7 +32,7 @@ pip install pydantic-resolve
```python
import asyncio
from pydantic import BaseModel
from pydantic_resolve import Resolver
from pydantic2_resolve import Resolver

async def query_age(name):
print(f'query {name}')
Expand Down Expand Up @@ -77,7 +80,7 @@ asyncio.run(simple())
import asyncio
from typing import List
from pydantic import BaseModel
from pydantic_resolve import Resolver, LoaderDepend as LD
from pydantic2_resolve import Resolver, LoaderDepend as LD

async def batch_person_age_loader(names: List[str]):
print(names)
Expand Down
Binary file added doc/concept.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit e31d96b

Please sign in to comment.