Skip to content

Commit

Permalink
add readme
Browse files Browse the repository at this point in the history
  • Loading branch information
ponytailer committed Sep 24, 2024
1 parent 8c6eda8 commit 50ff9f9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,10 +107,16 @@ my_client.get(1, request_headers={"Authorization": "zzzzz"})
my_client.post(1, request_headers={"Authorization": "yyyyy"})
```

### v0.1.16: load config from toml to init client.
### v0.1.17: load config from toml to init client.

```python

# config.toml or pyproject.toml
[tool.pydantic_client.config]
base_url = "http://localhost/v1"
headers.authorization = "xxxxxxx"
headers.user = "xxxxxxx"

client = R.load_config_from_toml("config.toml")


Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "pydantic-client"
version = "0.1.16"
version = "0.1.17"
description = "Http client base pydantic, with requests or aiohttp"
authors = ["ponytailer <[email protected]>"]
readme = "README.md"
Expand Down

0 comments on commit 50ff9f9

Please sign in to comment.