# fastapi_pony_2 **Repository Path**: dykhmily/fastapi_pony_2 ## Basic Information - **Project Name**: fastapi_pony_2 - **Description**: Fastapi + pony ORM - **Primary Language**: Python - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 9 - **Forks**: 0 - **Created**: 2020-06-18 - **Last Updated**: 2025-07-07 ## Categories & Tags **Categories**: database-dev **Tags**: None ## README # fastapi_pony_2 **Fastapi + pony 实践二**:使用自定义中间件,在每次请求之前,将db_session加载到全局的Request中,请求之后释放db_session。 需注意: 1. 在src/models中,每次增加一个库表模块,都需要在models的\__ini__t.py中import下。 2. 自定义中间件需要在utils/\__init__.py中import下 Fastapi + pony 另一种实现方法参见:**[Fastapi + pony 实践一](https://github.com/superxuu/fastapi_pony)**