Browse Source

fix: updated

pull/15294/head
NITHIVARSHA T P 3 months ago
parent
commit
1152ca2441
  1. 156
      docs/ta/docs/index.md

156
docs/ta/docs/index.md

@ -33,20 +33,31 @@
--- ---
FastAPI என்பது Python-இல் standard type hints அடிப்படையில் API-களை உருவாக்க உதவும் ஒரு நவீன மற்றும் வேகமான (high-performance) web framework ஆகும். FastAPI என்பது Python-இல் standard type hints அடிப்படையில் API-களை உருவாக்க உதவும் ஒரு
நவீன மற்றும் வேகமான (high-performance) web framework ஆகும்.
இதன் முக்கிய அம்சங்கள்: இதன் முக்கிய அம்சங்கள்:
* **Fast**: மிக அதிக performance, **NodeJS** மற்றும் **Go**க்கு சமமாக (Starlette மற்றும் Pydantic காரணமாக). [Python frameworks-லேயே மிக வேகமான ஒன்றாக](#performance). * **Fast**: மிக அதிக performance,
* **Fast to code**: அம்சங்களை உருவாக்கும் வேகம் சுமார் 200% முதல் 300% வரை அதிகரிக்கலாம். * **NodeJS** மற்றும் **Go**க்கு சமமாக (Starlette மற்றும் Pydantic காரணமாக).
* **Fewer bugs**: மனித (developer) காரணமாக ஏற்படும் தவறுகள் சுமார் 40% வரை குறையலாம். * [Python frameworks-லேயே மிக வேகமான ஒன்றாக](#performance).
* **Intuitive**: சிறந்த editor support, எல்லா இடங்களிலும் <dfn title="also known as auto-complete, autocompletion, IntelliSense">Completion</dfn>. debugging நேரம் குறையும். * **Fast to code**: அம்சங்களை உருவாக்கும் வேகம் சுமார் 200% முதல் 300% வரை
* **Easy**: பயன்படுத்தவும் கற்றுக்கொள்ளவும் எளிதாக வடிவமைக்கப்பட்டுள்ளது. documentation-ஐ படிக்கும் நேரம் குறையும். அதிகரிக்கலாம். *
* **Short**: code duplication குறையும். ஒவ்வொரு parameter declaration-லேயே பல அம்சங்கள் கிடைக்கும்; bugs குறையும். * **Fewer bugs**: மனித (developer) காரணமாக ஏற்படும் தவறுகள் சுமார் 40% வரை
* **Robust**: production-ready code வழங்கப்படுகிறது; automatic interactive documentation உடன். குறையலாம். *
* **Intuitive**: சிறந்த editor support, எல்லா இடங்களிலும்
<dfn title="also known as auto-complete, autocompletion, IntelliSense">Completion</dfn>.
debugging நேரம் குறையும்.
* **Easy**: பயன்படுத்தவும் கற்றுக்கொள்ளவும் எளிதாக வடிவமைக்கப்பட்டுள்ளது.
documentation-ஐ படிக்கும் நேரம் குறையும்.
* **Short**: code duplication குறையும். ஒவ்வொரு parameter declaration-லேயே பல அம்சங்கள் கிடைக்கும்;
bugs குறையும்.
* **Robust**: production-ready code வழங்கப்படுகிறது;
automatic interactive documentation உடன்.
* **Standards-based**: API-களுக்கான open standards அடிப்படையில்... * **Standards-based**: API-களுக்கான open standards அடிப்படையில்...
<small>* production applications உருவாக்கிய ஒரு internal development team செய்த tests அடிப்படையிலான மதிப்பீடு.</small> <small>* production applications உருவாக்கிய ஒரு internal development team செய்த tests அடிப்படையிலான
மதிப்பீடு.</small>
## Sponsors { #sponsors } ## Sponsors { #sponsors }
@ -73,13 +84,16 @@ FastAPI என்பது Python-இல் standard type hints அடிப்
## Opinions { #opinions } ## Opinions { #opinions }
"_[...] இந்த நாட்களில் **FastAPI** ஐ நான் மிகவும் அதிகமாக பயன்படுத்துகிறேன். [...] உண்மையிலேயே இதை என் team-னுடைய **ML services at Microsoft** எல்லாவற்றுக்கும் பயன்படுத்த திட்டமிட்டுள்ளேன். அதில் சில core **Windows** product-லேயே integrate ஆகிறது, சில **Office** products-லையும் ஆகிறது._" "_[...] இந்த நாட்களில் **FastAPI** ஐ நான் மிகவும் அதிகமாக பயன்படுத்துகிறேன். [...]
உண்மையிலேயே இதை என் team-னுடைய **ML services at Microsoft** எல்லாவற்றுக்கும் பயன்படுத்த திட்டமிட்டுள்ளேன்.
அதில் சில core **Windows** product-லேயே integrate ஆகிறது, சில **Office** products-லையும் ஆகிறது._"
<div style="text-align: right; margin-right: 10%;">Kabir Khan - <strong>Microsoft</strong> <a href="https://github.com/fastapi/fastapi/pull/26"><small>(ref)</small></a></div> <div style="text-align: right; margin-right: 10%;">Kabir Khan - <strong>Microsoft</strong> <a href="https://github.com/fastapi/fastapi/pull/26"><small>(ref)</small></a></div>
--- ---
"_**predictions** பெற query செய்யக்கூடிய ஒரு **REST** server உருவாக்க **FastAPI** library-யை நாம் பயன்படுத்த தீர்மானித்தோம். [Ludwig காக]_" "_**predictions** பெற query செய்யக்கூடிய ஒரு **REST** server உருவாக்க **FastAPI** library-யை நாம்
பயன்படுத்த தீர்மானித்தோம். [Ludwig காக]_"
<div style="text-align: right; margin-right: 10%;">Piero Molino, Yaroslav Dudin, and Sai Sumanth Miryala - <strong>Uber</strong> <a href="https://eng.uber.com/ludwig-v0-2/"><small>(ref)</small></a></div> <div style="text-align: right; margin-right: 10%;">Piero Molino, Yaroslav Dudin, and Sai Sumanth Miryala - <strong>Uber</strong> <a href="https://eng.uber.com/ludwig-v0-2/"><small>(ref)</small></a></div>
@ -97,13 +111,16 @@ FastAPI என்பது Python-இல் standard type hints அடிப்
--- ---
"_உண்மையிலேயே, நீங்க build செய்தது மிகவும் solid ஆகவும் polished ஆகவும் உள்ளது. பல விதத்தில், **Hug** இப்படித்தான் இருக்கணும் என்று நான் நினைத்தது போலவே உள்ளது — இதை ஒருத்தர் build செய்தது பார்க்க மிகவும் inspiring ஆக உள்ளது._" "_உண்மையிலேயே, நீங்க build செய்தது மிகவும் solid ஆகவும் polished ஆகவும் உள்ளது. பல விதத்தில்,
**Hug** இப்படித்தான் இருக்கணும் என்று நான் நினைத்தது போலவே உள்ளது — இதை ஒருத்தர் build செய்தது பார்க்க
மிகவும் inspiring ஆக உள்ளது._"
<div style="text-align: right; margin-right: 10%;">Timothy Crosley - <strong>[Hug](https://github.com/hugapi/hug) creator</strong> <a href="https://news.ycombinator.com/item?id=19455465"><small>(ref)</small></a></div> <div style="text-align: right; margin-right: 10%;">Timothy Crosley - <strong>[Hug](https://github.com/hugapi/hug) creator</strong> <a href="https://news.ycombinator.com/item?id=19455465"><small>(ref)</small></a></div>
--- ---
"_REST APIs உருவாக்க ஒரு **modern framework** கற்றுக்கணும்னு நினைச்சா, **FastAPI** ஐ பார்க்கவும் [...] இது வேகமானது, பயன்படுத்த எளிது, கற்றுக்கொள்ள எளிது [...]_" "_REST APIs உருவாக்க ஒரு **modern framework** கற்றுக்கணும்னு நினைச்சா, **FastAPI** ஐ பார்க்கவும் [...]
இது வேகமானது, பயன்படுத்த எளிது, கற்றுக்கொள்ள எளிது [...]_"
"_எங்களின் **APIs** காக நாம் **FastAPI** க்கு மாறிட்டோம் [...] உங்களுக்கு இது பிடிக்கும் என்று நினைக்கிறேன் [...]_" "_எங்களின் **APIs** காக நாம் **FastAPI** க்கு மாறிட்டோம் [...] உங்களுக்கு இது பிடிக்கும் என்று நினைக்கிறேன் [...]_"
@ -111,7 +128,10 @@ FastAPI என்பது Python-இல் standard type hints அடிப்
--- ---
"_production Python API build செய்ய நினைப்பவர்களுக்கு, **FastAPI** ஐ நான் strongly recommend செய்வேன். இது **beautifully designed**, **simple to use**, மற்றும் **highly scalable**. எங்களின் API first development strategy-ல இது ஒரு **key component** ஆகி, Virtual TAC Engineer போன்ற பல automations மற்றும் services-ஐ இயக்குது._" "_production Python API build செய்ய நினைப்பவர்களுக்கு, **FastAPI** ஐ நான் strongly recommend செய்வேன்.
இது **beautifully designed**, **simple to use**, மற்றும் **highly scalable**. எங்களின் API first development
strategy-ல இது ஒரு **key component** ஆகி, Virtual TAC Engineer போன்ற பல automations மற்றும் services-ஐ
இயக்குது._"
<div style="text-align: right; margin-right: 10%;">Deon Pillsbury - <strong>Cisco</strong> <a href="https://www.linkedin.com/posts/deonpillsbury_cisco-cx-python-activity-6963242628536487936-trAp/"><small>(ref)</small></a></div> <div style="text-align: right; margin-right: 10%;">Deon Pillsbury - <strong>Cisco</strong> <a href="https://www.linkedin.com/posts/deonpillsbury_cisco-cx-python-activity-6963242628536487936-trAp/"><small>(ref)</small></a></div>
@ -119,7 +139,8 @@ FastAPI என்பது Python-இல் standard type hints அடிப்
## FastAPI mini documentary { #fastapi-mini-documentary } ## FastAPI mini documentary { #fastapi-mini-documentary }
2025 முடிவில் வெளியான [FastAPI mini documentary](https://www.youtube.com/watch?v=mpR8ngthqiE) ஒன்று இருக்கிறது; அதை online-ல பார்க்கலாம்: 2025 முடிவில் வெளியான [FastAPI mini documentary](https://www.youtube.com/watch?v=mpR8ngthqiE) ஒன்று இருக்கிறது;
அதை online-ல பார்க்கலாம்:
<a href="https://www.youtube.com/watch?v=mpR8ngthqiE"><img src="https://fastapi.tiangolo.com/img/fastapi-documentary.jpg" alt="FastAPI Mini Documentary"></a> <a href="https://www.youtube.com/watch?v=mpR8ngthqiE"><img src="https://fastapi.tiangolo.com/img/fastapi-documentary.jpg" alt="FastAPI Mini Documentary"></a>
@ -127,7 +148,8 @@ FastAPI என்பது Python-இல் standard type hints அடிப்
<a href="https://typer.tiangolo.com"><img src="https://typer.tiangolo.com/img/logo-margin/logo-margin-vector.svg" style="width: 20%;"></a> <a href="https://typer.tiangolo.com"><img src="https://typer.tiangolo.com/img/logo-margin/logo-margin-vector.svg" style="width: 20%;"></a>
web APIக்கு பதிலாக terminal-ல் பயன்படுத்த ஒரு <abbr title="Command Line Interface">CLI</abbr> app உருவாக்க விரும்பினால், [**Typer**](https://typer.tiangolo.com/) ஐ பார்க்கவும். web APIக்கு பதிலாக terminal-ல் பயன்படுத்த ஒரு <abbr title="Command Line Interface">CLI</abbr> app உருவாக்க விரும்பினால்,
[**Typer**](https://typer.tiangolo.com/) ஐ பார்க்கவும்.
**Typer** என்பது FastAPI-னுடைய small sibling. இது **CLIs கான FastAPI** ஆக இருக்கவே உருவாக்கப்பட்டது. ⌨️ 🚀 **Typer** என்பது FastAPI-னுடைய small sibling. இது **CLIs கான FastAPI** ஆக இருக்கவே உருவாக்கப்பட்டது. ⌨️ 🚀
@ -140,7 +162,8 @@ FastAPI “giants” மேல் நின்று உருவாக்கப
## Installation { #installation } ## Installation { #installation }
[virtual environment](https://fastapi.tiangolo.com/virtual-environments/) ஒன்றை create செய்து activate செய்துவிட்டு, பிறகு FastAPI ஐ install செய்யுங்கள்: [virtual environment](https://fastapi.tiangolo.com/virtual-environments/) ஒன்றை create செய்து activate செய்துவிட்டு,
பிறகு FastAPI ஐ install செய்யுங்கள்:
<div class="termy"> <div class="termy">
@ -152,7 +175,8 @@ $ pip install "fastapi[standard]"
</div> </div>
**குறிப்பு**: எல்லா terminals-லையும் சரியா வேலை செய்ய `"fastapi[standard]"` என்பதை quotes-க்குள்ளே போடுங்க. **குறிப்பு**: எல்லா terminals-லையும் சரியா வேலை செய்ய `"fastapi[standard]"` என்பதை
quotes-க்குள்ளே போடுங்க.
## Example { #example } ## Example { #example }
@ -199,7 +223,8 @@ async def read_item(item_id: int, q: str | None = None):
**குறிப்பு**: **குறிப்பு**:
தெரியலைன்னா, docs-ல இருக்கும் _"In a hurry?"_ section-ல [`async` மற்றும் `await`](https://fastapi.tiangolo.com/async/#in-a-hurry) பற்றி பார்க்கவும். தெரியலைன்னா, docs-ல இருக்கும் _"In a hurry?"_ section-ல
[`async` மற்றும் `await`](https://fastapi.tiangolo.com/async/#in-a-hurry) பற்றி பார்க்கவும்.
</details> </details>
@ -237,7 +262,8 @@ INFO: Application startup complete.
<details markdown="1"> <details markdown="1">
<summary><code>fastapi dev</code> command பற்றி...</summary> <summary><code>fastapi dev</code> command பற்றி...</summary>
`fastapi dev` command உங்க `main.py` file-ஐ automatic-ஆ படிச்சு, அதில் உள்ள **FastAPI** app-ஐ கண்டுபிடிச்சு, [Uvicorn](https://www.uvicorn.dev) பயன்படுத்தி server-ஐ start செய்யும். `fastapi dev` command உங்க `main.py` file-ஐ automatic-ஆ படிச்சு, அதில் உள்ள **FastAPI** app-ஐ கண்டுபிடிச்சு,
[Uvicorn](https://www.uvicorn.dev) பயன்படுத்தி server-ஐ start செய்யும்.
default-ஆ, local development காக `fastapi dev` auto-reload enabled-ஆ start ஆகும். default-ஆ, local development காக `fastapi dev` auto-reload enabled-ஆ start ஆகும்.
@ -247,7 +273,8 @@ default-ஆ, local development காக `fastapi dev` auto-reload enabled-ஆ s
### Check it { #check-it } ### Check it { #check-it }
உங்க browser-ல [http://127.0.0.1:8000/items/5?q=somequery](http://127.0.0.1:8000/items/5?q=somequery) ஐ திறக்கவும். உங்க browser-ல
[http://127.0.0.1:8000/items/5?q=somequery](http://127.0.0.1:8000/items/5?q=somequery) ஐ திறக்கவும்.
JSON response இப்படியே வரும்: JSON response இப்படியே வரும்:
@ -266,7 +293,8 @@ JSON response இப்படியே வரும்:
இப்போ [http://127.0.0.1:8000/docs](http://127.0.0.1:8000/docs) க்கு செல்லவும். இப்போ [http://127.0.0.1:8000/docs](http://127.0.0.1:8000/docs) க்கு செல்லவும்.
automatic interactive API documentation (இதை [Swagger UI](https://github.com/swagger-api/swagger-ui) வழங்குகிறது) உங்களுக்கு தெரியும்: automatic interactive API documentation (இதை [Swagger UI](https://github.com/swagger-api/swagger-ui) வழங்குகிறது)
உங்களுக்கு தெரியும்:
![Swagger UI](https://fastapi.tiangolo.com/img/index/index-01-swagger-ui-simple.png) ![Swagger UI](https://fastapi.tiangolo.com/img/index/index-01-swagger-ui-simple.png)
@ -274,7 +302,8 @@ automatic interactive API documentation (இதை [Swagger UI](https://github.c
அப்புறம் [http://127.0.0.1:8000/redoc](http://127.0.0.1:8000/redoc) க்கு செல்லவும். அப்புறம் [http://127.0.0.1:8000/redoc](http://127.0.0.1:8000/redoc) க்கு செல்லவும்.
alternative automatic documentation (இதை [ReDoc](https://github.com/Rebilly/ReDoc) வழங்குகிறது) இங்கே தெரியும்: alternative automatic documentation (இதை [ReDoc](https://github.com/Rebilly/ReDoc) வழங்குகிறது)
இங்கே தெரியும்:
![ReDoc](https://fastapi.tiangolo.com/img/index/index-02-redoc-simple.png) ![ReDoc](https://fastapi.tiangolo.com/img/index/index-02-redoc-simple.png)
@ -322,11 +351,13 @@ def update_item(item_id: int, item: Item):
![Swagger UI](https://fastapi.tiangolo.com/img/index/index-03-swagger-02.png) ![Swagger UI](https://fastapi.tiangolo.com/img/index/index-03-swagger-02.png)
* "Try it out" button-ஐ click செய்யவும்; அதில் parameters fill செய்து நேரடியாக API-யோட interact செய்யலாம்: * "Try it out" button-ஐ click செய்யவும்; அதில் parameters fill செய்து
நேரடியாக API-யோட interact செய்யலாம்:
![Swagger UI interaction](https://fastapi.tiangolo.com/img/index/index-04-swagger-03.png) ![Swagger UI interaction](https://fastapi.tiangolo.com/img/index/index-04-swagger-03.png)
* அப்புறம் "Execute" button-ஐ click செய்யவும்; user interface உங்க API-யோட பேசும், parameters அனுப்பும், results வாங்கி screen-ல காட்டும்: * அப்புறம் "Execute" button-ஐ click செய்யவும்; user interface உங்க API-யோட பேசும்,
parameters அனுப்பும், results வாங்கி screen-ல காட்டும்:
![Swagger UI interaction](https://fastapi.tiangolo.com/img/index/index-05-swagger-04.png) ![Swagger UI interaction](https://fastapi.tiangolo.com/img/index/index-05-swagger-04.png)
@ -340,7 +371,8 @@ def update_item(item_id: int, item: Item):
### Recap { #recap } ### Recap { #recap }
சுருக்கமாகச் சொன்னால், parameters, body, போன்றவற்றின் types-ஐ function parameters-ஆ **ஒரே முறை** declare செய்கிறீர்கள். சுருக்கமாகச் சொன்னால், parameters, body, போன்றவற்றின் types-ஐ function parameters-ஆ **ஒரே முறை**
declare செய்கிறீர்கள்.
அதை standard modern Python types-ஓடு செய்கிறீர்கள். அதை standard modern Python types-ஓடு செய்கிறீர்கள்.
@ -368,7 +400,8 @@ item: Item
* Data validation: * Data validation:
* data invalid இருந்தா automatic-ஆ தெளிவான errors. * data invalid இருந்தா automatic-ஆ தெளிவான errors.
* deeply nested JSON objects க்கும் validation. * deeply nested JSON objects க்கும் validation.
* input data-வின் <dfn title="also known as: serialization, parsing, marshalling">Conversion</dfn>: network-ல இருந்து Python data/types-களாக மாற்றுவது. இவற்றிலிருந்து வாசிக்கிறது: * input data-வின் <dfn title="also known as: serialization, parsing, marshalling">Conversion</dfn>: network-ல இருந்து
Python data/types-களாக மாற்றுவது. இவற்றிலிருந்து வாசிக்கிறது:
* JSON. * JSON.
* Path parameters. * Path parameters.
* Query parameters. * Query parameters.
@ -376,7 +409,8 @@ item: Item
* Headers. * Headers.
* Forms. * Forms.
* Files. * Files.
* output data-வின் <dfn title="also known as: serialization, parsing, marshalling">Conversion</dfn>: Python data/types-ல இருந்து network data (JSON ஆக) மாற்றுவது: * output data-வின் <dfn title="also known as: serialization, parsing, marshalling">Conversion</dfn>: Python data/types-ல இருந்து
network data (JSON ஆக) மாற்றுவது:
* Python types (`str`, `int`, `float`, `bool`, `list`, etc) மாற்றுதல். * Python types (`str`, `int`, `float`, `bool`, `list`, etc) மாற்றுதல்.
* `datetime` objects. * `datetime` objects.
* `UUID` objects. * `UUID` objects.
@ -393,7 +427,8 @@ item: Item
* `GET` மற்றும் `PUT` requests காக path-ல `item_id` இருக்கிறதா என்று validate செய்யும். * `GET` மற்றும் `PUT` requests காக path-ல `item_id` இருக்கிறதா என்று validate செய்யும்.
* `GET` மற்றும் `PUT` requests காக `item_id` type `int` தானா என்று validate செய்யும். * `GET` மற்றும் `PUT` requests காக `item_id` type `int` தானா என்று validate செய்யும்.
* இல்லையென்றால் client-க்கு பயனுள்ள, தெளிவான error தெரியும். * இல்லையென்றால் client-க்கு பயனுள்ள, தெளிவான error தெரியும்.
* `GET` requests காக `q` என்ற optional query parameter இருக்கிறதா என்று check செய்யும் (`http://127.0.0.1:8000/items/foo?q=somequery` போல). * `GET` requests காக `q` என்ற optional query parameter இருக்கிறதா என்று check செய்யும்
(`http://127.0.0.1:8000/items/foo?q=somequery` போல).
* `q` parameter `= None` உடன் declare செய்யப்பட்டது காரணமாக அது optional. * `q` parameter `= None` உடன் declare செய்யப்பட்டது காரணமாக அது optional.
* `None` இல்லையென்றால் அது required (PUT-ல body போல). * `None` இல்லையென்றால் அது required (PUT-ல body போல).
* `/items/{item_id}` க்கு `PUT` requests வந்தா, body-யை JSON ஆக வாசிக்கும்: * `/items/{item_id}` க்கு `PUT` requests வந்தா, body-யை JSON ஆக வாசிக்கும்:
@ -409,7 +444,8 @@ item: Item
--- ---
இது இன்னும் தொடக்கம் மட்டுமே; ஆனாலும் இது எப்படி செயல்படுகிறது என்பது பற்றிய ஒரு தெளிவான புரிதல் இப்போது உங்களுக்கு கிடைத்திருக்கும். இது இன்னும் தொடக்கம் மட்டுமே; ஆனாலும் இது எப்படி செயல்படுகிறது என்பது பற்றிய ஒரு தெளிவான புரிதல் இப்போது
உங்களுக்கு கிடைத்திருக்கும்.
இந்த line-ஐ மாற்றிப் பார்க்கவும்: இந்த line-ஐ மாற்றிப் பார்க்கவும்:
@ -429,19 +465,24 @@ item: Item
... "item_price": item.price ... ... "item_price": item.price ...
``` ```
...அப்போ உங்க editor எப்படி attributes-ஐ auto-complete செய்யுது, அவற்றின் types-ஐ எப்படி தெரிஞ்சுக்குது என்று பார்க்கவும்: ...அப்போ உங்க editor எப்படி attributes-ஐ auto-complete செய்யுது, அவற்றின் types-ஐ எப்படி தெரிஞ்சுக்குது என்று
பார்க்கவும்:
![editor support](https://fastapi.tiangolo.com/img/vscode-completion.png) ![editor support](https://fastapi.tiangolo.com/img/vscode-completion.png)
இன்னும் நிறைய features உடன் ஒரு complete example காக <a href="https://fastapi.tiangolo.com/tutorial/">Tutorial - User Guide</a> பார்க்கவும். இன்னும் நிறைய features உடன் ஒரு complete example காக
<a href="https://fastapi.tiangolo.com/tutorial/">Tutorial - User Guide</a> பார்க்கவும்.
**Spoiler alert**: tutorial - user guide-ல இதில் எல்லாம் இருக்கு: **Spoiler alert**: tutorial - user guide-ல இதில் எல்லாம் இருக்கு:
* வேறு பல இடங்களிலிருந்து **parameters** declare செய்வது: **headers**, **cookies**, **form fields** மற்றும் **files**. * வேறு பல இடங்களிலிருந்து **parameters** declare செய்வது: **headers**, **cookies**, **form fields** மற்றும்
**files**.
* `maximum_length` அல்லது `regex` போன்ற **validation constraints** எப்படி set செய்வது. * `maximum_length` அல்லது `regex` போன்ற **validation constraints** எப்படி set செய்வது.
* மிகவும் powerful, பயன்படுத்த எளிதான **<dfn title="also known as components, resources, providers, services, injectables">Dependency Injection</dfn>** system. * மிகவும் powerful, பயன்படுத்த எளிதான
**<dfn title="also known as components, resources, providers, services, injectables">Dependency Injection</dfn>** system.
* Security மற்றும் authentication, இதில் **OAuth2** + **JWT tokens** மற்றும் **HTTP Basic** auth support. * Security மற்றும் authentication, இதில் **OAuth2** + **JWT tokens** மற்றும் **HTTP Basic** auth support.
* **deeply nested JSON models** declare செய்ய இன்னும் advanced (ஆனா அதே மாதிரி easy) techniques (Pydantic காரணமாக). * **deeply nested JSON models** declare செய்ய இன்னும் advanced (ஆனா அதே மாதிரி easy) techniques
(Pydantic காரணமாக).
* [Strawberry](https://strawberry.rocks) மற்றும் பிற libraries உடன் **GraphQL** integration. * [Strawberry](https://strawberry.rocks) மற்றும் பிற libraries உடன் **GraphQL** integration.
* Starlette காரணமாக கிடைக்கும் பல extra features: * Starlette காரணமாக கிடைக்கும் பல extra features:
* **WebSockets** * **WebSockets**
@ -452,9 +493,11 @@ item: Item
### Deploy your app (optional) { #deploy-your-app-optional } ### Deploy your app (optional) { #deploy-your-app-optional }
[FastAPI Cloud](https://fastapicloud.com) க்கு உங்க FastAPI app-ஐ optional-ஆ deploy செய்யலாம்; இன்னும் join செய்யலன்னா waiting list-ல சேருங்க. 🚀 [FastAPI Cloud](https://fastapicloud.com) க்கு உங்க FastAPI app-ஐ optional-ஆ deploy செய்யலாம்;
இன்னும் join செய்யலன்னா waiting list-ல சேருங்க. 🚀
உங்கிடம் ஏற்கனவே **FastAPI Cloud** account இருந்தா (waiting list-ல இருந்து நாம் invite செய்திருப்போம் 😉), ஒரு command-லேயே app-ஐ deploy செய்யலாம். உங்கிடம் ஏற்கனவே **FastAPI Cloud** account இருந்தா (waiting list-ல இருந்து நாம் invite செய்திருப்போம் 😉),
ஒரு command-லேயே app-ஐ deploy செய்யலாம்.
<div class="termy"> <div class="termy">
@ -474,23 +517,29 @@ Deploying to FastAPI Cloud...
#### About FastAPI Cloud { #about-fastapi-cloud } #### About FastAPI Cloud { #about-fastapi-cloud }
**[FastAPI Cloud](https://fastapicloud.com)**-ஐ **FastAPI**-யை உருவாக்கிய அதே author மற்றும் team தான் build செய்தாங்க. **[FastAPI Cloud](https://fastapicloud.com)**-ஐ **FastAPI**-யை உருவாக்கிய அதே author மற்றும் team தான்
build செய்தாங்க.
ஒரு API-யை **building**, **deploying**, **accessing** செய்வதைக் குறைந்த முயற்சியில் smooth-ஆ மாற்றுகிறது. ஒரு API-யை **building**, **deploying**, **accessing** செய்வதைக் குறைந்த முயற்சியில் smooth-ஆ மாற்றுகிறது.
FastAPI-யோட app build செய்யும்போது கிடைக்கும் அதே **developer experience**-ஐ cloud-க்கு **deploying** செய்யும்போதும் கொண்டு வருகிறது. 🎉 FastAPI-யோட app build செய்யும்போது கிடைக்கும் அதே **developer experience**-ஐ cloud-க்கு **deploying**
செய்யும்போதும் கொண்டு வருகிறது. 🎉
*FastAPI and friends* open source projects-க்கு FastAPI Cloud தான் primary sponsor மற்றும் funding provider. ✨ *FastAPI and friends* open source projects-க்கு FastAPI Cloud தான் primary sponsor மற்றும்
funding provider. ✨
#### Deploy to other cloud providers { #deploy-to-other-cloud-providers } #### Deploy to other cloud providers { #deploy-to-other-cloud-providers }
FastAPI open source, மேலும் standards அடிப்படையிலானது. நீங்க விரும்பும் எந்த cloud provider-லையாவது FastAPI apps-ஐ deploy செய்யலாம். FastAPI open source, மேலும் standards அடிப்படையிலானது. நீங்க விரும்பும் எந்த cloud provider-லையாவது
FastAPI apps-ஐ deploy செய்யலாம்.
FastAPI apps-ஐ deploy செய்ய உங்க cloud provider-ன் guides-ஐ follow செய்யவும். 🤓 FastAPI apps-ஐ deploy செய்ய உங்க cloud provider-ன் guides-ஐ follow செய்யவும். 🤓
## Performance { #performance } ## Performance { #performance }
Independent TechEmpower benchmarks-ல், Uvicorn-ல் ஓடும் **FastAPI** applications [Python frameworks-லேயே மிகவும் வேகமான ஒன்றாக](https://www.techempower.com/benchmarks/#section=test&runid=7464e520-0dc2-473d-bd34-dbdfd7e85911&hw=ph&test=query&l=zijzen-7) காட்டப்படுது; Starlette மற்றும் Uvicorn தங்களுக்குக் கீழே மட்டும் (FastAPI உள்ளே பயன்படுத்துவது). (*) Independent TechEmpower benchmarks-ல், Uvicorn-ல் ஓடும் **FastAPI** applications
[Python frameworks-லேயே மிகவும் வேகமான ஒன்றாக](https://www.techempower.com/benchmarks/#section=test&runid=7464e520-0dc2-473d-bd34-dbdfd7e85911&hw=ph&test=query&l=zijzen-7)
காட்டப்படுது; Starlette மற்றும் Uvicorn தங்களுக்குக் கீழே மட்டும் (FastAPI உள்ளே பயன்படுத்துவது). (*)
மேலும் புரிஞ்சுக்க [Benchmarks](https://fastapi.tiangolo.com/benchmarks/) section பார்க்கவும். மேலும் புரிஞ்சுக்க [Benchmarks](https://fastapi.tiangolo.com/benchmarks/) section பார்க்கவும்.
@ -500,7 +549,8 @@ FastAPI, Pydantic மற்றும் Starlette மீது depend ஆகி
### `standard` Dependencies { #standard-dependencies } ### `standard` Dependencies { #standard-dependencies }
FastAPI-யை `pip install "fastapi[standard]"` மூலம் install செய்தால், `standard` group-ல உள்ள optional dependencies உடன் வரும்: FastAPI-யை `pip install "fastapi[standard]"` மூலம் install செய்தால், `standard` group-ல உள்ள optional
dependencies உடன் வரும்:
Pydantic பயன்படுத்துவது: Pydantic பயன்படுத்துவது:
@ -510,21 +560,28 @@ Starlette பயன்படுத்துவது:
* [`httpx`](https://www.python-httpx.org) - `TestClient` பயன்படுத்தணும்னா required. * [`httpx`](https://www.python-httpx.org) - `TestClient` பயன்படுத்தணும்னா required.
* [`jinja2`](https://jinja.palletsprojects.com) - default template configuration பயன்படுத்தணும்னா required. * [`jinja2`](https://jinja.palletsprojects.com) - default template configuration பயன்படுத்தணும்னா required.
* [`python-multipart`](https://github.com/Kludex/python-multipart) - `request.form()` உடன் form <dfn title="converting the string that comes from an HTTP request into Python data">"parsing"</dfn> support வேணும்னா required. * [`python-multipart`](https://github.com/Kludex/python-multipart) - `request.form()` உடன் form
<dfn title="converting the string that comes from an HTTP request into Python data">"parsing"</dfn>
support வேணும்னா required.
FastAPI பயன்படுத்துவது: FastAPI பயன்படுத்துவது:
* [`uvicorn`](https://www.uvicorn.dev) - உங்க application-ஐ load செய்து serve செய்யும் server காக. இதில் `uvicorn[standard]` அடங்கும்; அதில் high performance serving காக தேவையான சில dependencies (எ.கா. `uvloop`) இருக்கிறது. * [`uvicorn`](https://www.uvicorn.dev) - உங்க application-ஐ load செய்து serve செய்யும் server காக.
இதில் `uvicorn[standard]` அடங்கும்; அதில் high performance serving காக தேவையான சில dependencies
(எ.கா. `uvloop`) இருக்கிறது.
* `fastapi-cli[standard]` - `fastapi` command வழங்க. * `fastapi-cli[standard]` - `fastapi` command வழங்க.
* இதில் `fastapi-cloud-cli` அடங்கும்; இதனால் உங்க FastAPI application-ஐ [FastAPI Cloud](https://fastapicloud.com) க்கு deploy செய்யலாம். * இதில் `fastapi-cloud-cli` அடங்கும்; இதனால் உங்க FastAPI application-ஐ
[FastAPI Cloud](https://fastapicloud.com) க்கு deploy செய்யலாம்.
### Without `standard` Dependencies { #without-standard-dependencies } ### Without `standard` Dependencies { #without-standard-dependencies }
`standard` optional dependencies வேண்டாம் என்றால், `pip install "fastapi[standard]"` க்கு பதிலாக `pip install fastapi` மூலம் install செய்யலாம். `standard` optional dependencies வேண்டாம் என்றால், `pip install "fastapi[standard]"` க்கு பதிலாக
`pip install fastapi` மூலம் install செய்யலாம்.
### Without `fastapi-cloud-cli` { #without-fastapi-cloud-cli } ### Without `fastapi-cloud-cli` { #without-fastapi-cloud-cli }
standard dependencies உடன் ஆனால் `fastapi-cloud-cli` இல்லாமல் install செய்யணும்னா, `pip install "fastapi[standard-no-fastapi-cloud-cli]"` பயன்படுத்தலாம். standard dependencies உடன் ஆனால் `fastapi-cloud-cli` இல்லாமல் install செய்யணும்னா,
`pip install "fastapi[standard-no-fastapi-cloud-cli]"` பயன்படுத்தலாம்.
### Additional Optional Dependencies { #additional-optional-dependencies } ### Additional Optional Dependencies { #additional-optional-dependencies }
@ -533,7 +590,8 @@ standard dependencies உடன் ஆனால் `fastapi-cloud-cli` இல்
Additional optional Pydantic dependencies: Additional optional Pydantic dependencies:
* [`pydantic-settings`](https://docs.pydantic.dev/latest/usage/pydantic_settings/) - settings management காக. * [`pydantic-settings`](https://docs.pydantic.dev/latest/usage/pydantic_settings/) - settings management காக.
* [`pydantic-extra-types`](https://docs.pydantic.dev/latest/usage/types/extra_types/extra_types/) - Pydantic உடன் பயன்படுத்த extra types காக. * [`pydantic-extra-types`](https://docs.pydantic.dev/latest/usage/types/extra_types/extra_types/) - Pydantic உடன் பயன்படுத்த
extra types காக.
Additional optional FastAPI dependencies: Additional optional FastAPI dependencies:

Loading…
Cancel
Save