diff --git a/README.md b/README.md index 46087d0..32cb674 100644 --- a/README.md +++ b/README.md @@ -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") diff --git a/pyproject.toml b/pyproject.toml index 171aaad..de6a243 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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 "] readme = "README.md"