-
Update: Rocketry seems to not be maintained anymore.
If you're looking for an alternative with supporting pydantic v2, try out AioClock.
https://github.com/ManiMozaffar/aioclock
----
**Is your…
-
Is there a way to get a random record or order randomly with Ormar ORM?
I couldn't find anything about that in the documentation, so I tried SQLalchemy's `.order_by(func.rand())` and `.order_by(func.…
-
### Initial Checks
- [X] I have searched Google & GitHub for similar requests and couldn't find anything
- [X] I have read and followed [the docs](https://docs.pydantic.dev) and still think this feat…
-
Hi, I'm looking for a cross of Diango and FastAPI (read "Django building experience but lean and with first class pydantic and openapi support). Litestar and this repo in particular look like a great …
-
pip install fastapi
pip install uvicorn
教程
第一步
```python
from fastapi import FastAPI
app = FastAPI() # 创建API实例
@app.get("/")
async def root():
return {"message": "Hello World"}
```…
-
I'm unable to use `fields_optional='__all__'` in some models?
here are my models:
```python
class Topic(models.Model):
name = models.CharField(max_length=100, db_index=True)
certificate = …
-
**Describe the bug**
Given:
```python
@api.get("/items/{item_id}")
def read_item(request, item_id: Annotated[str, Field(examples=["an example"], title="Some Title", description="A description")]):…
-
# Pyre Bug
**Bug description**
I made a class in Pydantic and when i ran pyre check it gave uninitialized attribute [13] error while strict mode was not set to true.
**Expected behavior**
As pyr…
-
# Bug report
## What's wrong
When running django-stubs 5.0.2, mypy goes through without error. But when updating django-stubs to 5.0.3, I’m getting the following error:
`error: INTERNAL ERROR: …
-
During Version validation, `version.assets` is queried to understand the byte size and file count for a given `Version` object associated with a Dandiset.
For the `version.assets`, there are three …