Skip to content

Releases: gunyu1019/ahttp-client

v1.0.1

05 Mar 13:21
756d506
Compare
Choose a tag to compare

What's Changed

  • [Fixed] Changed instance from Iterable to Sequence at extension._parsing_json_to_model

Related Issues/Pull Request

v1.0.0

05 Mar 12:00
Compare
Choose a tag to compare

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
  • Rename this package called ahttp-client
  • Add before_request and after_request method at Session
  • Add before_hook and after_hook decoration at Request
    This file is not related to features by default in the async_client_decorator.
  • Add multiple_hook decorator method
  • Add get_pydantic_response_model decorator method
  • Add Component class that different from Component (version 0.x.x)
    The Header, Path, Body, Form and Query class extends this Component.
  • [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

v0.2.0

31 Jan 13:53
1fa338a
Compare
Choose a tag to compare

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)