コンテンツにスキップ
per page, with , order by , clip by
Results of 1 - 10 of about 26 for make (0.004 sec.)
Development - Contributing 12398
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 ... re interactively the regions of code that are covered by the tests, and notice if there is any region missing. Docs First, make sure you set up your environment as described above, that will install all the requirements. Docs live During local develo ... e site. Docs for tests Most of the tests actually run against the example source files in the documentation. This helps to make sure that: The documentation is up-to-date. The documentation examples can be run as is. Most of the features are covered ... comment will be added to the discussion. If you translate pages, add a single pull request per page translated. That will make it much easier for others to review it. To check the 2-letter code for the language you want to translate, you can use the ...
https://man.mtool.work/fastapi/0.115/contributing/
Generate Clients 11307
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, ... r true commitment to FastAPI and its community (you), as they not only want to provide you a good service but also want to make sure you have a good and healthy framework , FastAPI. ? For example, you might want to try: Speakeasy Stainless liblab The ... I uses the function name , the path , and the HTTP method/operation to generate that operation ID, because that way it can make sure that the operation IDs are unique. But I'll show you how to improve that next. ? Custom Operation IDs and Better Meth ... od Names You can modify the way these operation IDs are generated to make them simpler and have simpler method names in the clients. In this case you will have to ensure that each operation ID is ...
https://man.mtool.work/fastapi/0.115/advanced/generate-clients/
Repository Management Tasks 10761
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 ... "imperative", like giving an order. So, instead of Adding support for teleporting use Add support for teleporting . Try to make the title descriptive about what it achieves. If it's a feature, try to describe it, for example Add support for teleporti ... e same GitHub Action latest-changes uses one label in the PR to decide the section in the release notes to put this PR in. Make sure you use a supported label from the latest-changes list of labels : breaking : Breaking Changes Existing code will bre ... in mind that this label is not used by the latest-changes GitHub Action, so it won't be used in the release notes. Please make sure one of the labels above is added. Add Labels to Translation PRs When there's a PR for a translation, apart from addin ...
https://man.mtool.work/fastapi/0.115/management-tasks/
Custom Request and APIRoute class 9951
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 ... mpressed request bodies. Automatically logging all request bodies. Handling custom request body encodings Let's see how to make use of a custom Request subclass to decompress gzip requests. And an APIRoute subclass to use that custom request class. C ... : sum ( numbers )} Create a custom GzipRoute class Next, we create a custom subclass of fastapi.routing.APIRoute that will make use of the GzipRequest . This time, it will overwrite the method APIRoute.get_route_handler() . This method returns a func ... = Body ()): return sum ( numbers ) If an exception occurs, the Request instance will still be in scope, so we can read and make use of the request body when handling the error: Python 3.8+ from typing import Callable , List from fastapi import Body , ...
https://man.mtool.work/fastapi/0.115/how-to/custom-request-and-route/
Async Tests 9687
Async Tests Warning The current page still doesn't have a translation for this language. But you can help translating it: Contributing . You have already seen how to test your FastAPI applications using the provided TestClient . Up to now, ... ckend successfully wrote the correct data in the database, while using an async database library. Let's look at how we can make that work. pytest.mark.anyio If we want to call asynchronous functions in our tests, our test functions have to be asynchr ... sponse . json () == { "message" : "Tomato" } This is the equivalent to: response = client . get ( '/' ) ...that we used to make our requests with the TestClient . Tip Note that we're using async/await with the new AsyncClient - the request is asynchr ...
https://man.mtool.work/fastapi/0.115/advanced/async-tests/
Deploy FastAPI on Cloud Providers 9687
Deploy FastAPI on Cloud Providers Warning The current page still doesn't have a translation for this language. But you can help translating it: Contributing . You can use virtually any cloud provider to deploy your FastAPI application. In m ... r true commitment to FastAPI and its community (you), as they not only want to provide you a good service but also want to make sure you have a good and healthy framework , FastAPI. ? You might want to try their services and follow their guides: Plat ...
https://man.mtool.work/fastapi/0.115/deployment/cloud/
Request Files 9406
Request Files Warning The current page still doesn't have a translation for this language. But you can help translating it: Contributing . You can define files to be uploaded by the client using File . Info To receive uploaded files, first ... install python-multipart . Make sure you create a virtual environment , activate it, and then install it, for example: $ pip install python-multipart This ... Technical Details FastAPI 's UploadFile inherits directly from Starlette 's UploadFile , but adds some necessary parts to make it compatible with Pydantic and the other parts of FastAPI. What is "Form Data" The way HTML forms ( <form></form> ) sends ... the data to the server normally uses a "special" encoding for that data, it's different from JSON. FastAPI will make sure to read that data from the right place instead of JSON. Technical Details Data from forms is normally encoded using t ...
https://man.mtool.work/fastapi/0.115/tutorial/request-files/
Repository Management 9141
Repository Management Here's a short description of how the FastAPI repository is managed and maintained. Owner I, @tiangolo , am the creator and owner of the FastAPI repository. ? I normally give the final review to each PR before merging ... them. I make the final decisions on the project, I'm the BDFL . ? Team There's a team of people that help manage and maintain the proje ...
https://man.mtool.work/fastapi/0.115/management/
Release Notes 9141
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 ... rkflow . PR #12457 by @alejsdev . ? Update team, include YuriiMotov ?. PR #12453 by @tiangolo . ? Refactor label-approved, make it an internal script instead of an external GitHub Action. PR #12280 by @tiangolo . ? Fix smokeshow, checkout files on CI ... others. PR #12117 by @tiangolo . Internal ⏪️ Temporarily revert "✨ Add support for Pydantic models in Form parameters" to make a checkpoint release. PR #12128 by @tiangolo . Restored by PR #12129 . ✨ Add support for Pydantic models in Form parameter ... s. PR #12127 by @tiangolo . Reverted by PR #12128 to make a checkpoint release with only refactors. Restored by PR #12129 . 0.112.3 This release is mainly internal refactors, it sh ...
https://man.mtool.work/fastapi/0.115/release-notes/
Virtual Environments 8877
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 ... .venv/Scripts/activate Tip Every time you install a new package in that environment, activate the environment again. This makes sure that if you use a terminal ( CLI ) program installed by that package, you use the one from your virtual environment ... solved by just upgrading pip first. Tip You would normally do this once , right after you create the virtual environment. Make sure the virtual environment is active (with the command above) and then run: $ python -m pip install --upgrade pip ---> 1 ... ith the packages you installed there. $ python main.py Hello World Configure Your Editor You would probably use an editor, make sure you configure it to use the same virtual environment you created (it will probably autodetect it) so that you can get ...
https://man.mtool.work/fastapi/0.115/virtual-environments/
PREV 1 2 3 NEXT