- Parameters
aiohttp_extracts
integration: Forked the original repo and fixed somes bugs
aiohttp_extracts
integration: Added support for parameter extraction usingaiohttp_extracts
. This improves handling of request parameters and enhances the overall flexibility of the framework.- Parameter Types: Introduced new parameter types for request handling:
Header
Query
Param
Cookie
File
- These parameters provide more granular control over request data extraction and improve the ease of defining endpoints.
- Response Types: Introduced new response classes:
JSONResponse
(usingmsgspec
)ORJSONResponse
HTMLResponse
RedirectResponse
- These responses improve content handling and response formatting for various use cases. By default all response are JSONResponse.
- Parameter Extraction: Imported and adapted
fetch_fn_params
fromaiohttp_extract
to suit the current use case, ensuring more efficient and consistent parameter extraction. - Controller Class Defaults: The
Controller
class now includes a default route prefix (/
), simplifying route definitions and minimizing the need for redundant configuration. - Service Class Scope: The
Service
class is now set with a default scope (SingletonScope
), promoting better resource management and optimizing service lifecycles. - File Parameter Handling: Implemented support for the
File
parameter type, leveraging theaiohttp_extract
library. This allows seamless file handling in requests.
- Cli folder. It's a seperate project -> aiostipy-cli
- Controllers are classes with prefix
- Route are simple functions, they become RouteDef in the Application class
- opyoid as dependecy injector
- mgspec as json encoder and decoder
- uvloop as asyncio event loop
- poetry.lock
- Now the app runs AND accepts requests