Ahttp-client

Latest version: v1.0.1

Safety actively analyzes 690691 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

1.0.1

What's Changed
- [Fixed] Changed instance from Iterable to Sequence at `extension._parsing_json_to_model`

Related Issues/Pull Request
* [Deploy] Deploy v1.0.1 by gunyu1019 in https://github.com/gunyu1019/ahttp-client/pull/14

1.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
- 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
* [Feat] 7 - Request Object by gunyu1019 in https://github.com/gunyu1019/ahttp-client/pull/10
* [Feat] Add extension feature by gunyu1019 in https://github.com/gunyu1019/ahttp-client/pull/11
* [Feat] Add custom component name by gunyu1019 in https://github.com/gunyu1019/ahttp-client/pull/12
* [Deploy] Deploy v1.0.0 by gunyu1019 in https://github.com/gunyu1019/ahttp-client/pull/13

0.2.0

Change Notes
* Support Annotated Type
py
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)~~

Links

Releases

Has known vulnerabilities

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.