extremely easy tests based on HTTPX and pytest.Many extra features (thanks to Starlette) as:.GraphQL integration with Strawberry and other libraries.More advanced (but equally easy) techniques for declaring deeply nested JSON models (thanks to Pydantic). Security and authentication, including support for OAuth2 with JWT tokens and HTTP Basic auth.A very powerful and easy to use Dependency Injection system.How to set validation constraints as maximum_length or regex.Declaration of parameters from other different places as: headers, cookies, form fields and files.Spoiler alert: the tutorial - user guide includes: and see how your editor will auto-complete the attributes and know their types:įor a more complete example including more features, see the Tutorial - User Guide. -reload: make the server restart after code changes.app: the object created inside of main.py with the line app = FastAPI().main: the file main.py (the Python "module").About the command uvicorn main:app -reload. INFO: Uvicorn running on (Press CTRL+C to quit) INFO: Started reloader process INFO: Started server process INFO: Waiting for application startup. Some of them are getting integrated into the core Windows product and some Office products." I'm actually planning to use it for all of my team's ML services at Microsoft. * estimation based on tests on an internal development team, building production applications. Standards-based: Based on (and fully compatible with) the open standards for APIs: OpenAPI (previously known as Swagger) and JSON Schema.With automatic interactive documentation. Multiple features from each parameter declaration.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |