-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from CrazyProger1/dev
0.0.2
- Loading branch information
Showing
21 changed files
with
208 additions
and
181 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -164,3 +164,7 @@ cython_debug/ | |
|
||
# MyPy | ||
.mypy_cache | ||
|
||
|
||
# Test File | ||
main.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
.PHONY: test | ||
test: | ||
poetry run python -m pytest tests/ | ||
|
||
.PHONY: build | ||
build: | ||
poetry build | ||
|
||
|
||
.PHONY: coverage | ||
coverage: | ||
poetry run coverage run -m pytest tests/ | ||
|
||
|
||
.PHONY: coverage-report | ||
coverage-report: coverage; | ||
poetry run coverage report -m | ||
|
||
|
||
.PHONY: format | ||
format: | ||
poetry run python -m black tests | ||
poetry run python -m black resty |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# Rest-Client Changelog | ||
|
||
## v0.0.2 | ||
|
||
- Serializer many schemas support | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[tool.poetry] | ||
name = "resty-client" | ||
version = "0.0.1" | ||
version = "0.0.2" | ||
description = "RestyClient is a simple, easy-to-use Python library for interacting with REST APIs using Pydantic's powerful data validation and deserialization tools." | ||
authors = ["CrazyProger1 <[email protected]>"] | ||
license = "MIT" | ||
|
@@ -12,12 +12,12 @@ packages = [ | |
[tool.poetry.dependencies] | ||
python = "^3.12" | ||
pydantic = "^2.5.3" | ||
httpx = "^0.26.0" | ||
|
||
[tool.poetry.group.dev.dependencies] | ||
mypy = "^1.8.0" | ||
ruff = "^0.1.14" | ||
pytest = "^7.4.4" | ||
httpx = "^0.26.0" | ||
black = "^24.4.0" | ||
|
||
[tool.ruff] | ||
exclude = [ | ||
|
@@ -50,7 +50,6 @@ show_error_codes = true | |
strict = true | ||
|
||
|
||
|
||
[build-system] | ||
requires = ["poetry-core"] | ||
build-backend = "poetry.core.masonry.api" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,8 @@ | ||
try: | ||
import httpx | ||
except ImportError: | ||
raise ImportError('Please install httpx to use httpx rest client') | ||
raise ImportError("Please install httpx to use httpx rest client") | ||
|
||
from .client import RESTClient | ||
|
||
__all__ = [ | ||
'RESTClient' | ||
] | ||
__all__ = ["RESTClient"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,6 @@ | ||
from .pagination import ( | ||
DjangoLimitOffsetPaginationMiddleware, | ||
DjangoPagePaginationMiddleware | ||
DjangoPagePaginationMiddleware, | ||
) | ||
|
||
__all__ = [ | ||
'DjangoLimitOffsetPaginationMiddleware', | ||
'DjangoPagePaginationMiddleware' | ||
] | ||
__all__ = ["DjangoLimitOffsetPaginationMiddleware", "DjangoPagePaginationMiddleware"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
from .manager import Manager | ||
|
||
__all__ = ['Manager'] | ||
__all__ = ["Manager"] |
Oops, something went wrong.