UtilMeta

Weekly Pick

UtilMeta 是一个用于开发 API 服务的 Python 后端元框架,基于类型注解高效构建声明式接口与 ORM 查询,支持自动参数解析、OpenAPI 文档生成,并能与主流 Python 框架集成。

Check out UtilMeta on CurateClick

• Copy the embed code to showcase this product on your website

• Share on X to spread the word about this amazing tool

UtilMeta | 极简高效的 Python 后端元框架- 项目地址:https://github.com/utilmeta/utilmeta-py- 项目描述:UtilMeta 是一个用于开发 API 服务的后端元框架,基于 Python 类型注解标准高效构建声明式接口与 ORM 查询,能够自动解析请求参数与生成 OpenAPI 文档,高效开发 RESTful 接口,产出的代码简洁清晰,并且支持使用主流 Python 框架(django, flask, fastapi, starlette, sanic, tornado 等)作为运行时实现或渐进式整合,同时支持同步接口与异步接口 * 框架主页 * 文档 | 快速开始 * 文档 | 案例教程- 亮点: * UtilMeta 的声明式 ORM 能高效处理大部分 CRUD 场景,what you define is what you get,自动规避 N+1 关系查询问题,简洁高效 * UtilMeta 可以使用主流的 Python 框架作为运行时实现,仅需一个参数即可切换整个底层实现,你也可以从现有项目渐进式地集成 * UtilMeta 配套了一个全周期的 API 管理平台,可以一站式解决小团队的接口文档调试,日志查询,服务器监控,报警通知与事件管理等运维与管理需求- 示例代码:pythonfrom utilmeta.core import api, ormfrom django.db import modelsfrom .models import User, Articleclass UserSchema(orm.Schema[User]): username: str articles_num: int = models.Count('articles')class ArticleSchema(orm.Schema[Article]): id: int author: UserSchema content: strclass ArticleAPI(api.API): async def get(self, id: int) -> ArticleSchema: return await ArticleSchema.ainit(id)- 截图:imageimageimage

Latest Weekly Picks

pslscale.com favicon
Weekly Pick

Discover your PSL (Perceived Sexual Market Value) score with our AI-powered facial analysis

MILO

IPYNB to PDF Converter – Free & Secure

lejintian
www.reverie.im favicon
Weekly Pick

Dream It, Chat It, Create It

Louis
make.ink favicon
Weekly Pick

Your AI tattoo generator for pro-grade concepts

Leo Wade
sellfy.com favicon
Weekly Pick

A code-free online store builder to turn views into revenue. Sell digital products, subscriptions, and merch, without fees or hassle.

Maris
www.videotoblog.ai favicon
Weekly Pick

Convert videos into awesome blog posts.

Video To Blog
www.sellerpic.ai favicon
Weekly Pick

SellerPic is the all-in-one AI design platform for e-commerce

SellerPic
fastimage.ai favicon
Weekly Pick

Fast Image AI instantly transforms your photos into stunning styles like Ghibli, Sketch, and Pixar. Effortlessly control image elements and create amazing effects with just one click.

Fast AI Team