コンテンツにスキップ
per page, with , order by , clip by
Results of 1 - 10 of about 13 for internal (0.006 sec.)
Release Notes 13443
Release Notes Latest Changes 0.115.11 Fixes ? Add docs examples and tests (support) for Annotated custom validations, like AfterValidator , revert #13440 . PR #13442 by @tiangolo . New docs: Query Parameters and String Validations - Custom ... Validation . Translations ? Add Russian translation for docs/ru/docs/tutorial/middleware.md . PR #13412 by @alv2017 . Internal ? Update FastAPI GitHub topic repositories. PR #13439 by @tiangolo . ? Update FastAPI People - Contributors and Translator ... s. PR #13432 by @tiangolo . ? Update FastAPI People - Sponsors. PR #13433 by @tiangolo . 0.115.10 Fixes ♻️ Update internal annotation usage for compatibility with Pydantic 2.11. PR #13314 by @Viicos . Upgrades ⬆️ Bump Starlette to allow up to 0. ... x.md . PR #13328 by @ceb10n . ? Add Russian translation for docs/ru/docs/advanced/websockets.md . PR #13279 by @Rishat-F . Internal ✅ Fix a minor bug in the test tests/test_modules_same_name_body/test_main.py . PR #13411 by @alv2017 . ? Use wrangler-acti ...
https://man.mtool.work/fastapi/0.115/release-notes/
Bigger Applications - Multiple Files 11542
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 ... __init__.py │ ├── main.py │ ├── dependencies.py │ └── routers │ │ ├── __init__.py │ │ ├── items.py │ │ └── users.py │ └── internal │ ├── __init__.py │ └── admin.py Tip There are several __init__.py files: one in each directory or subdirectory. This is w ... s.items . The same with app/routers/users.py , it's another submodule: app.routers.users . There's also a subdirectory app/internal/ with another file __init__.py , so it's another "Python subpackage": app.internal . And the file app/internal/admin.py is ... another submodule: app.internal.admin . The same file structure with comments: . ├── app # "app" is a Python package │ ├── __init__.py # this file makes " ...
https://man.mtool.work/fastapi/0.115/tutorial/bigger-applications/
Repository Management Tasks 10328
Repository Management Tasks These are the tasks that can be performed to manage the FastAPI repository by team members . Tip This section is useful only to a handful of people, team members with permissions to manage the repository. You can ... y features or refactors. But in some cases there's an actual bug. refactor : Refactors This is normally for changes to the internal code that don't change the behavior. Normally it improves maintainability, or enables future features, etc. upgrade : Upgr ... final users, they would end up receiving the upgrade in their code base once they update. But this is not for upgrades to internal dependencies used for development, testing, docs, etc. Those internal dependencies, normally in requirements.txt files or ... GitHub Action versions should be marked as internal , not upgrade . docs : Docs Changes in docs. This includes updating the docs, fixing typos. But it doesn't include changes ...
https://man.mtool.work/fastapi/0.115/management-tasks/
Using Dataclasses 8445
Using Dataclasses Warning The current page still doesn't have a translation for this language. But you can help translating it: Contributing . FastAPI is built on top of Pydantic , and I have been showing you how to use Pydantic models to d ... st ( "/items/" ) async def create_item ( item : Item ): return item This is still supported thanks to Pydantic , as it has internal support for dataclasses . So, even with the code above that doesn't use Pydantic explicitly, FastAPI is using Pydantic to ... and await . This path operation function is not returning dataclasses (although it could), but a list of dictionaries with internal data. FastAPI will use the response_model parameter (that includes dataclasses) to convert the response. You can combine d ...
https://man.mtool.work/fastapi/0.115/advanced/dataclasses/
Advanced Middleware 8041
Advanced Middleware Warning The current page still doesn't have a translation for this language. But you can help translating it: Contributing . In the main tutorial you read how to add Custom Middleware to your application. And then you al ... app , some_config = "rainbow" ) But FastAPI (actually Starlette) provides a simpler way to do it that makes sure that the internal middlewares handle server errors and custom exception handlers work properly. For that, you use app.add_middleware() (as i ...
https://man.mtool.work/fastapi/0.115/advanced/middleware/
Custom Docs UI Static Assets (Self-Hosting) 8041
Custom Docs UI Static Assets (Self-Hosting) Warning The current page still doesn't have a translation for this language. But you can help translating it: Contributing . The API docs use Swagger UI and ReDoc , and each of those need some Jav ... username } " } Include the custom docs Now you can create the path operations for the custom docs. You can reuse FastAPI's internal functions to create the HTML pages for the docs, and pass them the needed arguments: openapi_url : the URL where the HTML ... same way as with a custom CDN, now you can create the path operations for the custom docs. Again, you can reuse FastAPI's internal functions to create the HTML pages for the docs, and pass them the needed arguments: openapi_url : the URL where the HTML ...
https://man.mtool.work/fastapi/0.115/how-to/custom-docs-ui-assets/
Settings and Environment Variables 7970
Settings and Environment Variables Warning The current page still doesn't have a translation for this language. But you can help translating it: Contributing . In many cases your application could need some external settings or configuratio ... ic configuration. You can read more at Pydantic Model Config . Info In Pydantic version 1 the configuration was done in an internal class Config , in Pydantic version 2 it's done in an attribute model_config . This attribute takes a dict , and to get aut ... ser , } Then for any subsequent call of get_settings() in the dependencies for the next requests, instead of executing the internal code of get_settings() and creating a new Settings object, it will return the same object that was returned on the first c ...
https://man.mtool.work/fastapi/0.115/advanced/settings/
Development - Contributing 7830
Development - Contributing Warning The current page still doesn't have a translation for this language. But you can help translating it: Contributing . First, you might want to see the basic ways to help FastAPI and get help . Developing If ... set up your environment. Virtual environment Follow the instructions to create and activate a virtual environment for the internal code of fastapi . Install requirements using pip After activating the environment, install the required packages: $ pip in ...
https://man.mtool.work/fastapi/0.115/contributing/
Custom Request and APIRoute class 7830
Custom Request and APIRoute class Warning The current page still doesn't have a translation for this language. But you can help translating it: Contributing . In some cases, you may want to override the logic used by the Request and APIRout ... dler for RequestValidationError ( Handling Errors ). But this example is still valid and it shows how to interact with the internal components. We can also use this same approach to access the request body in an exception handler. All we need to do is ha ...
https://man.mtool.work/fastapi/0.115/how-to/custom-request-and-route/
Generate Clients 7759
Generate Clients Warning The current page still doesn't have a translation for this language. But you can help translating it: Contributing . As FastAPI is based on the OpenAPI specification, you get automatic compatibility with many tools, ... ./src/client --client axios That command will generate code in ./src/client and will use axios (the frontend HTTP library) internally. Try Out the Client Code Now you can import and use the client code, it could look like this, notice that you get autoco ... msService . createItemItemsPost ({ name : "Plumbus" , price : 5 }) ...that's because the client generator uses the OpenAPI internal operation ID for each path operation . OpenAPI requires that each operation ID is unique across all the path operations , ...
https://man.mtool.work/fastapi/0.115/advanced/generate-clients/
PREV 1 2 NEXT