Skip to content

Commit

Permalink
Fix: readme
Browse files Browse the repository at this point in the history
  • Loading branch information
CrazyProger1 committed Jan 26, 2024
1 parent 6d432b9 commit 9966332
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
<a href="https://github.com/CrazyProger1/RestyClient/blob/master/LICENSE"><img alt="GitHub" src="https://img.shields.io/github/license/CrazyProger1/RestyClient"></a>
<a href="https://github.com/CrazyProger1/RestyClient/releases/latest"><img alt="GitHub release (latest by date)" src="https://img.shields.io/github/v/release/CrazyProger1/RestyClient"></a>
<a href="https://pypi.org/project/resty-client/"><img alt="PyPI - Downloads" src="https://img.shields.io/pypi/dm/resty-client"></a>
<a><img src="https://img.shields.io/pypi/status/resty-client" alt="Status"></a>
</p>

RestyClient is a simple, easy-to-use Python library for interacting with REST APIs using Pydantic's powerful data
Expand Down Expand Up @@ -119,7 +118,7 @@ async def main():

## Status

``0.0.1`` - INDEV
``0.0.1`` - RELEASED

## Licence

Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ packages = [
[tool.poetry.dependencies]
python = "^3.12"
pydantic = "^2.5.3"
httpx = "^0.26.0"

[tool.poetry.group.dev.dependencies]
mypy = "^1.8.0"
Expand Down
4 changes: 4 additions & 0 deletions resty/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
try:
import pydantic
except ImportError:
raise ImportError("Please install pydantic to use resty-client package")
2 changes: 1 addition & 1 deletion resty/clients/httpx/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
try:
import httpx
except ImportError:
raise ImportError('You should to install httpx to use httpx rest client')
raise ImportError('Please install httpx to use httpx rest client')

from .client import RESTClient

Expand Down

0 comments on commit 9966332

Please sign in to comment.