Results of 1 - 6 of about 6 for named (0.002 sec.)
- Status Codes 12832
- Status Codes You can import the status module from fastapi : from fastapi import status status is provided directly by Starlette. It contains a group of named constants (variables) with integer status codes. For example: 200: status.HTTP_20
... - https://man.mtool.work/fastapi/0.115/reference/status/
- FastAPI CLI 9779
- FastAPI CLI Warning The current page still doesn't have a translation for this language. But you can help translating it: Contributing . FastAPI CLI is a command line program that you can use to serve your FastAPI app, manage your FastAPI p
...FastAPI CLI takes the path to your Python program (e.g. main.py ) and automatically detects the FastAPI instance (commonly named app ), determines the correct import process, and then serves it. For production you would use fastapi run instead. ? Inte... - https://man.mtool.work/fastapi/0.115/fastapi-cli/
- OpenAPI Callbacks 8481
- OpenAPI Callbacks Warning The current page still doesn't have a translation for this language. But you can help translating it: Contributing . You could create an API with a path operation that could trigger a request to an external API cre
...bly the same developer that would be using your API). The process that happens when your API app calls the external API is named a "callback". Because the software that the external developer wrote sends a request to your API and then your API calls b... - https://man.mtool.work/fastapi/0.115/advanced/openapi-callbacks/
- Virtual Environments 8481
- Virtual Environments Warning The current page still doesn't have a translation for this language. But you can help translating it: Contributing . When you work in Python projects you probably should use a virtual environment (or a similar m
...on), try uv . Create a Project First, create a directory for your project. What I normally do is that I create a directory named code inside my home/user directory. And inside of that I create one directory per project. // Go to the home directory $ c... - https://man.mtool.work/fastapi/0.115/virtual-environments/
- Bigger Applications - Multiple Files 8042
- Bigger Applications - Multiple Files Warning The current page still doesn't have a translation for this language. But you can help translating it: Contributing . If you are building an application or a web API, it's rarely the case that you
...he submodule items directly, instead of importing just its variable router . This is because we also have another variable named router in the submodule users . If we had imported one after the other, like: from .routers.items import router from .rout... - https://man.mtool.work/fastapi/0.115/tutorial/bigger-applications/
- Simple OAuth2 with Password and Bearer 7165
- Simple OAuth2 with Password and Bearer Warning The current page still doesn't have a translation for this language. But you can help translating it: Contributing . Now let's build from the previous chapter and add the missing parts to have
...using) the client/user must send a username and password fields as form data. And the spec says that the fields have to be named like that. So user-name or email wouldn't work. But don't worry, you can show it as you wish to your final users in the fr... - https://man.mtool.work/fastapi/0.115/tutorial/security/simple-oauth2/
PREV
1
NEXT