🌐 Update translations for ru (update-and-add) by tiangolo · Pull Request #15152 · fastapi/fastapi
Conversation
🌐 Update translations for ru (update-and-add)
This PR was created automatically using LLMs.
It uses the prompt file https://github.com/fastapi/fastapi/blob/master/docs/ru/llm-prompt.md.
In most cases, it's better to make PRs updating that file so that the LLM can do a better job generating the translations than suggesting changes in this PR.
📝 Docs preview
Last commit 39537c2 at: https://a5b9614b.fastapitiangolo.pages.dev
Modified Pages
- https://a5b9614b.fastapitiangolo.pages.dev/ru/ - (before) - (English)
- https://a5b9614b.fastapitiangolo.pages.dev/ru/_llm-test/ - (before) - (English)
- https://a5b9614b.fastapitiangolo.pages.dev/ru/advanced/ - (before) - (English)
- https://a5b9614b.fastapitiangolo.pages.dev/ru/advanced/additional-responses/ - (before) - (English)
- https://a5b9614b.fastapitiangolo.pages.dev/ru/advanced/additional-status-codes/ - (before) - (English)
- https://a5b9614b.fastapitiangolo.pages.dev/ru/advanced/advanced-dependencies/ - (before) - (English)
- https://a5b9614b.fastapitiangolo.pages.dev/ru/advanced/async-tests/ - (before) - (English)
- https://a5b9614b.fastapitiangolo.pages.dev/ru/advanced/behind-a-proxy/ - (before) - (English)
- https://a5b9614b.fastapitiangolo.pages.dev/ru/advanced/custom-response/ - (before) - (English)
- https://a5b9614b.fastapitiangolo.pages.dev/ru/advanced/dataclasses/ - (before) - (English)
- https://a5b9614b.fastapitiangolo.pages.dev/ru/advanced/events/ - (before) - (English)
- https://a5b9614b.fastapitiangolo.pages.dev/ru/advanced/generate-clients/ - (before) - (English)
- https://a5b9614b.fastapitiangolo.pages.dev/ru/advanced/json-base64-bytes/ - (before) - (English)
- https://a5b9614b.fastapitiangolo.pages.dev/ru/advanced/middleware/ - (before) - (English)
- https://a5b9614b.fastapitiangolo.pages.dev/ru/advanced/openapi-callbacks/ - (before) - (English)
- https://a5b9614b.fastapitiangolo.pages.dev/ru/advanced/openapi-webhooks/ - (before) - (English)
- https://a5b9614b.fastapitiangolo.pages.dev/ru/advanced/path-operation-advanced-configuration/ - (before) - (English)
- https://a5b9614b.fastapitiangolo.pages.dev/ru/advanced/response-change-status-code/ - (before) - (English)
- https://a5b9614b.fastapitiangolo.pages.dev/ru/advanced/response-cookies/ - (before) - (English)
- https://a5b9614b.fastapitiangolo.pages.dev/ru/advanced/response-directly/ - (before) - (English)
- https://a5b9614b.fastapitiangolo.pages.dev/ru/advanced/response-headers/ - (before) - (English)
- https://a5b9614b.fastapitiangolo.pages.dev/ru/advanced/security/ - (before) - (English)
- https://a5b9614b.fastapitiangolo.pages.dev/ru/advanced/security/http-basic-auth/ - (before) - (English)
- https://a5b9614b.fastapitiangolo.pages.dev/ru/advanced/security/oauth2-scopes/ - (before) - (English)
- https://a5b9614b.fastapitiangolo.pages.dev/ru/advanced/settings/ - (before) - (English)
- https://a5b9614b.fastapitiangolo.pages.dev/ru/advanced/stream-data/ - (before) - (English)
- https://a5b9614b.fastapitiangolo.pages.dev/ru/advanced/strict-content-type/ - (before) - (English)
- https://a5b9614b.fastapitiangolo.pages.dev/ru/advanced/sub-applications/ - (before) - (English)
- https://a5b9614b.fastapitiangolo.pages.dev/ru/advanced/templates/ - (before) - (English)
- https://a5b9614b.fastapitiangolo.pages.dev/ru/advanced/testing-websockets/ - (before) - (English)
- https://a5b9614b.fastapitiangolo.pages.dev/ru/advanced/using-request-directly/ - (before) - (English)
- https://a5b9614b.fastapitiangolo.pages.dev/ru/advanced/websockets/ - (before) - (English)
- https://a5b9614b.fastapitiangolo.pages.dev/ru/advanced/wsgi/ - (before) - (English)
- https://a5b9614b.fastapitiangolo.pages.dev/ru/alternatives/ - (before) - (English)
- https://a5b9614b.fastapitiangolo.pages.dev/ru/async/ - (before) - (English)
- https://a5b9614b.fastapitiangolo.pages.dev/ru/benchmarks/ - (before) - (English)
- https://a5b9614b.fastapitiangolo.pages.dev/ru/deployment/ - (before) - (English)
- https://a5b9614b.fastapitiangolo.pages.dev/ru/deployment/cloud/ - (before) - (English)
- https://a5b9614b.fastapitiangolo.pages.dev/ru/deployment/concepts/ - (before) - (English)
- https://a5b9614b.fastapitiangolo.pages.dev/ru/deployment/docker/ - (before) - (English)
- https://a5b9614b.fastapitiangolo.pages.dev/ru/deployment/fastapicloud/ - (before) - (English)
- https://a5b9614b.fastapitiangolo.pages.dev/ru/deployment/https/ - (before) - (English)
- https://a5b9614b.fastapitiangolo.pages.dev/ru/deployment/manually/ - (before) - (English)
- https://a5b9614b.fastapitiangolo.pages.dev/ru/deployment/server-workers/ - (before) - (English)
- https://a5b9614b.fastapitiangolo.pages.dev/ru/deployment/versions/ - (before) - (English)
- https://a5b9614b.fastapitiangolo.pages.dev/ru/editor-support/ - (before) - (English)
- https://a5b9614b.fastapitiangolo.pages.dev/ru/environment-variables/ - (before) - (English)
- https://a5b9614b.fastapitiangolo.pages.dev/ru/fastapi-cli/ - (before) - (English)
- https://a5b9614b.fastapitiangolo.pages.dev/ru/features/ - (before) - (English)
- https://a5b9614b.fastapitiangolo.pages.dev/ru/help-fastapi/ - (before) - (English)
- https://a5b9614b.fastapitiangolo.pages.dev/ru/history-design-future/ - (before) - (English)
- https://a5b9614b.fastapitiangolo.pages.dev/ru/how-to/ - (before) - (English)
- https://a5b9614b.fastapitiangolo.pages.dev/ru/how-to/authentication-error-status-code/ - (before) - (English)
- https://a5b9614b.fastapitiangolo.pages.dev/ru/how-to/conditional-openapi/ - (before) - (English)
- https://a5b9614b.fastapitiangolo.pages.dev/ru/how-to/configure-swagger-ui/ - (before) - (English)
- https://a5b9614b.fastapitiangolo.pages.dev/ru/how-to/custom-docs-ui-assets/ - (before) - (English)
- https://a5b9614b.fastapitiangolo.pages.dev/ru/how-to/custom-request-and-route/ - (before) - (English)
- https://a5b9614b.fastapitiangolo.pages.dev/ru/how-to/extending-openapi/ - (before) - (English)
- https://a5b9614b.fastapitiangolo.pages.dev/ru/how-to/general/ - (before) - (English)
- https://a5b9614b.fastapitiangolo.pages.dev/ru/how-to/graphql/ - (before) - (English)
- https://a5b9614b.fastapitiangolo.pages.dev/ru/how-to/migrate-from-pydantic-v1-to-pydantic-v2/ - (before) - (English)
- https://a5b9614b.fastapitiangolo.pages.dev/ru/how-to/testing-database/ - (before) - (English)
- https://a5b9614b.fastapitiangolo.pages.dev/ru/project-generation/ - (before) - (English)
- https://a5b9614b.fastapitiangolo.pages.dev/ru/python-types/ - (before) - (English)
- https://a5b9614b.fastapitiangolo.pages.dev/ru/tutorial/ - (before) - (English)
- https://a5b9614b.fastapitiangolo.pages.dev/ru/tutorial/background-tasks/ - (before) - (English)
- https://a5b9614b.fastapitiangolo.pages.dev/ru/tutorial/bigger-applications/ - (before) - (English)
- https://a5b9614b.fastapitiangolo.pages.dev/ru/tutorial/body-nested-models/ - (before) - (English)
- https://a5b9614b.fastapitiangolo.pages.dev/ru/tutorial/body-updates/ - (before) - (English)
- https://a5b9614b.fastapitiangolo.pages.dev/ru/tutorial/body/ - (before) - (English)
- https://a5b9614b.fastapitiangolo.pages.dev/ru/tutorial/cors/ - (before) - (English)
- https://a5b9614b.fastapitiangolo.pages.dev/ru/tutorial/debugging/ - (before) - (English)
- https://a5b9614b.fastapitiangolo.pages.dev/ru/tutorial/dependencies/ - (before) - (English)
- https://a5b9614b.fastapitiangolo.pages.dev/ru/tutorial/dependencies/dependencies-in-path-operation-decorators/ - (before) - (English)
- https://a5b9614b.fastapitiangolo.pages.dev/ru/tutorial/dependencies/dependencies-with-yield/ - (before) - (English)
- https://a5b9614b.fastapitiangolo.pages.dev/ru/tutorial/dependencies/global-dependencies/ - (before) - (English)
- https://a5b9614b.fastapitiangolo.pages.dev/ru/tutorial/encoder/ - (before) - (English)
- https://a5b9614b.fastapitiangolo.pages.dev/ru/tutorial/extra-data-types/ - (before) - (English)
- https://a5b9614b.fastapitiangolo.pages.dev/ru/tutorial/extra-models/ - (before) - (English)
- https://a5b9614b.fastapitiangolo.pages.dev/ru/tutorial/first-steps/ - (before) - (English)
- https://a5b9614b.fastapitiangolo.pages.dev/ru/tutorial/handling-errors/ - (before) - (English)
- https://a5b9614b.fastapitiangolo.pages.dev/ru/tutorial/metadata/ - (before) - (English)
- https://a5b9614b.fastapitiangolo.pages.dev/ru/tutorial/middleware/ - (before) - (English)
- https://a5b9614b.fastapitiangolo.pages.dev/ru/tutorial/path-operation-configuration/ - (before) - (English)
- https://a5b9614b.fastapitiangolo.pages.dev/ru/tutorial/path-params-numeric-validations/ - (before) - (English)
- https://a5b9614b.fastapitiangolo.pages.dev/ru/tutorial/path-params/ - (before) - (English)
- https://a5b9614b.fastapitiangolo.pages.dev/ru/tutorial/query-params-str-validations/ - (before) - (English)
- https://a5b9614b.fastapitiangolo.pages.dev/ru/tutorial/query-params/ - (before) - (English)
- https://a5b9614b.fastapitiangolo.pages.dev/ru/tutorial/request-files/ - (before) - (English)
- https://a5b9614b.fastapitiangolo.pages.dev/ru/tutorial/request-form-models/ - (before) - (English)
- https://a5b9614b.fastapitiangolo.pages.dev/ru/tutorial/request-forms-and-files/ - (before) - (English)
- https://a5b9614b.fastapitiangolo.pages.dev/ru/tutorial/request-forms/ - (before) - (English)
- https://a5b9614b.fastapitiangolo.pages.dev/ru/tutorial/response-model/ - (before) - (English)
- https://a5b9614b.fastapitiangolo.pages.dev/ru/tutorial/response-status-code/ - (before) - (English)
- https://a5b9614b.fastapitiangolo.pages.dev/ru/tutorial/schema-extra-example/ - (before) - (English)
- https://a5b9614b.fastapitiangolo.pages.dev/ru/tutorial/security/first-steps/ - (before) - (English)
- https://a5b9614b.fastapitiangolo.pages.dev/ru/tutorial/security/oauth2-jwt/ - (before) - (English)
- https://a5b9614b.fastapitiangolo.pages.dev/ru/tutorial/security/simple-oauth2/ - (before) - (English)
- https://a5b9614b.fastapitiangolo.pages.dev/ru/tutorial/server-sent-events/ - (before) - (English)
- https://a5b9614b.fastapitiangolo.pages.dev/ru/tutorial/sql-databases/ - (before) - (English)
- https://a5b9614b.fastapitiangolo.pages.dev/ru/tutorial/static-files/ - (before) - (English)
- https://a5b9614b.fastapitiangolo.pages.dev/ru/tutorial/stream-json-lines/ - (before) - (English)
- https://a5b9614b.fastapitiangolo.pages.dev/ru/tutorial/testing/ - (before) - (English)
- https://a5b9614b.fastapitiangolo.pages.dev/ru/virtual-environments/ - (before) - (English)
|
|
||
| ## Что такое Server-Sent Events? { #what-are-server-sent-events } | ||
|
|
||
| SSE — это стандарт для потоковой передачи данных с сервера на клиента по HTTP. |
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| SSE — это стандарт для потоковой передачи данных с сервера на клиента по HTTP. | |
| SSE — это стандарт для потоковой передачи данных с сервера клиенту по HTTP. |
|
|
||
| FastAPI проследит, чтобы выполнение прошло корректно и не блокировало цикл событий. | ||
|
|
||
| Так как в этом случае функция не async, правильным типом возврата будет `Iterable[Item]`: |
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| Так как в этом случае функция не async, правильным типом возврата будет `Iterable[Item]`: | |
| Так как в этом случае функция не асинхронная, правильным типом возврата будет `Iterable[Item]`: |
| ``` | ||
|
|
||
| Тогда объявляйте *функции-обработчики пути* с `async def`, например: | ||
| Тогда объявляйте *функции-обработчиков пути* с `async def`, например: |
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| Тогда объявляйте *функции-обработчиков пути* с `async def`, например: | |
| Тогда объявляйте *функции-обработчики пути* с `async def`, например: |
| --- | ||
|
|
||
| Если вы используете стороннюю библиотеку, которая взаимодействует с чем-то (база данных, API, файловая система и т.д.) и не поддерживает использование `await` (сейчас это относится к большинству библиотек для БД), тогда объявляйте *функции-обработчики пути* как обычно, просто с `def`, например: | ||
| Если вы используете стороннюю библиотеку, которая взаимодействует с чем-то (база данных, API, файловая система и т.д.) и не поддерживает использование `await` (сейчас это относится к большинству библиотек для БД), тогда объявляйте *функции-обработчиков пути* как обычно, просто с `def`, например: |
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| Если вы используете стороннюю библиотеку, которая взаимодействует с чем-то (база данных, API, файловая система и т.д.) и не поддерживает использование `await` (сейчас это относится к большинству библиотек для БД), тогда объявляйте *функции-обработчиков пути* как обычно, просто с `def`, например: | |
| Если вы используете стороннюю библиотеку, которая взаимодействует с чем-то (база данных, API, файловая система и т.д.) и не поддерживает использование `await` (сейчас это относится к большинству библиотек для БД), тогда объявляйте *функции-обработчики пути* как обычно, просто с `def`, например: |
| --- | ||
|
|
||
| **Примечание**: вы можете смешивать `def` и `async def` в *функциях-обработчиках пути* столько, сколько нужно, и объявлять каждую так, как лучше для вашего случая. FastAPI сделает с ними всё как надо. | ||
| **Примечание**: вы можете смешивать `def` и `async def` в *функциях-обработчиков пути* столько, сколько нужно, и объявлять каждую так, как лучше для вашего случая. FastAPI сделает с ними всё как надо. |
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| **Примечание**: вы можете смешивать `def` и `async def` в *функциях-обработчиков пути* столько, сколько нужно, и объявлять каждую так, как лучше для вашего случая. FastAPI сделает с ними всё как надо. | |
| **Примечание**: вы можете смешивать `def` и `async def` в *функциях-обработчиках пути* столько, сколько нужно, и объявлять каждую так, как лучше для вашего случая. FastAPI сделает с ними всё как надо. |
YuriiMotov
deleted the
translate-ru-update-and-add-dd3e8a0d
branch
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters