MCPcopy Create free account
hub / github.com/tortoise/tortoise-orm / users_create

Function users_create

examples/blacksheep/server.py:34–36  ·  view source on GitHub ↗
(user: UserPydanticIn)

Source from the content-addressed store, hash-verified

32
33@app.router.post("/")
34async def users_create(user: UserPydanticIn) -> UserPydanticOut:
35 user = await Users.create(**user.model_dump(exclude_unset=True))
36 return created(await UserPydanticOut.from_tortoise_orm(user))
37
38
39@app.router.patch("/{id}")

Callers

nothing calls this directly

Calls 2

from_tortoise_ormMethod · 0.80
createMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…