Releases: gunyu1019/ahttp-client
Releases · gunyu1019/ahttp-client
v1.0.1
v1.0.0
What's Changed
- Objectify Request, not wrapper. (wrapper method to
RequestCore.__call__
) - Integrating Request and Component
- Add
extension.py
for experimental feature. - Support component instance instead of types for type definitions.
- Support custom name at component.
Used when the custom name must be different from the parameter name.- Add
Component.custom_name
class method for custom name - Add
Component.to_camel
class method for custom name - Add
Component.to_pascal
class method for custom name
- Add
- Rename this package called
ahttp-client
- Add
before_request
andafter_request
method at Session - Add
before_hook
andafter_hook
decoration at Request
This file is not related to features by default in theasync_client_decorator
. - Add
multiple_hook
decorator method - Add
get_pydantic_response_model
decorator method - Add
Component
class that different fromComponent (version 0.x.x)
The Header, Path, Body, Form and Query class extends thisComponent
. - [Fixed] Wrong directly_response condition
- [Fixed] Wrong type hinting at invoked hook.
- [Docs] Add More Type Hint.
- [Docs] Update README.md (Wrong Example)
Related Issues/Pull Request
- [Feat] #7 - Request Object by @gunyu1019 in #10
- [Feat] Add extension feature by @gunyu1019 in #11
- [Feat] Add custom component name by @gunyu1019 in #12
- [Deploy] Deploy v1.0.0 by @gunyu1019 in #13
v0.2.0
Change Notes
- Support Annotated Type
@request("GET", "/bus/station")
async def station_search_with_query(
self, response: aiohttp.ClientResponse,
name: Annotated[str, Query] # Before, "str | Query"
):
return await response.json()
- Fixed incorrect type when http component is generic type (ex. body type = dict[str, Any])
Change package name (async-client-decorator -> async-client)