R

Ravina • 3.96K Points
Extraordinary

Q. What does `BaseSettings` class in FastAPI provide?

  • (A) WebSocket interface
  • (B) CORS management
  • (C) Environment variable support using Pydantic
  • (D) Database transaction manager
  • Correct Answer - Option(C)
  • Views: 26
  • Filed under category Fast API
  • Hashtags:

Explanation by: Ravina
`BaseSettings` from Pydantic helps read environment variables and settings into a model.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.