r/FastAPI • • Oct 15 '21

Question Pydantics relation with FastAPI?

I was just wondering what the deal is with Pydantic. Is it built into FastAPI or is it just like a closely tied partner library?

Mentioned everywhere in the docs and at first I thought these were FastAPI features, but realized they were actually from this other library.

For example could you run FastAPI and all it's features without using any Pydantic? (Not that I want to, just curious). I feel like the dependency injector system might depend on it but not sure.

1 Upvotes

10 comments sorted by

View all comments

0

u/[deleted] Oct 16 '21

[deleted]

1

u/AlabamaSky967 Oct 16 '21

That's what I found when using it. It seems like all the features in fastapi are actually Pydantic 😅

0

u/[deleted] Oct 16 '21

[deleted]

1

u/AlabamaSky967 Oct 16 '21

Thanks for the clarification!