fastapi-utils
fastapi-utils copied to clipboard
Reusable utilities for FastAPI
Bumps [actions/upload-pages-artifact](https://github.com/actions/upload-pages-artifact) from 2 to 3. Release notes Sourced from actions/upload-pages-artifact's releases. v3.0.0 Changelog Use v4 upload-artifact tag @robherley (#80) Upload pages artifact with upload-artifact v4-beta @konradpabjan (#78) To deploy...
Bumps [jinja2](https://github.com/pallets/jinja) from 3.1.2 to 3.1.4. Release notes Sourced from jinja2's releases. 3.1.4 This is the Jinja 3.1.4 security release, which fixes security issues and bugs but does not otherwise...
Bumps [idna](https://github.com/kjd/idna) from 3.6 to 3.7. Release notes Sourced from idna's releases. v3.7 What's Changed Fix issue where specially crafted inputs to encode() could take exceptionally long amount of time...
I'm currently working on merging back fastapi-restful into this repo. Afterward, I'll continue with deprecating Python 3.7 and setting Pydantic v2 as the default version of fastapi-utils Then, I will...
I've found implementations here on PR, but they all contain disruptive changes that make Pydentic 2 mandatory or define new functions without tests. I propose to implement this support in...
Hello **Describe the solution you'd like** I would like to be able to use async database session manager. A async version of FastAPISessionMaker.
Bumps [ruff](https://github.com/astral-sh/ruff) from 0.1.8 to 0.6.2. Release notes Sourced from ruff's releases. 0.6.2 Release Notes Preview features [flake8-simplify] Extend open-file-with-context-handler to work with other standard-library IO modules (SIM115) (#12959) [ruff]...
Bumps [sqlalchemy](https://github.com/sqlalchemy/sqlalchemy) from 2.0.23 to 2.0.32. Release notes Sourced from sqlalchemy's releases. 2.0.32 Released: August 5, 2024 general [general] [bug] [regression] Restored legacy class names removed from sqlalalchemy.orm.collections.*, including _orm.MappedCollection,...
In fastapi Document: ``` @app.get("/items/{item_id}/public", response_model=Item, response_model_exclude={"tax"}) async def read_item_public_data(item_id: str): return items[item_id] ``` We can use response_model_exclude In fastapi-utils: ``` class MyApi(Resource): def __init__(self, mongo_client): self.mongo = mongo_client @set_responses(ResponseModel)...