mirror of https://github.com/tiangolo/fastapi.git
📝 Update references to Python version, FastAPI supports all the current versions, no need to make the version explicit (#11496)
This commit is contained in:
parent
285ac017a9
commit
7b55bf37b5
|
|
@ -27,7 +27,7 @@
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
FastAPI is a modern, fast (high-performance), web framework for building APIs with Python 3.8+ based on standard Python type hints.
|
FastAPI is a modern, fast (high-performance), web framework for building APIs with Python based on standard Python type hints.
|
||||||
|
|
||||||
The key features are:
|
The key features are:
|
||||||
|
|
||||||
|
|
@ -122,8 +122,6 @@ If you are building a <abbr title="Command Line Interface">CLI</abbr> app to be
|
||||||
|
|
||||||
## Requirements
|
## Requirements
|
||||||
|
|
||||||
Python 3.8+
|
|
||||||
|
|
||||||
FastAPI stands on the shoulders of giants:
|
FastAPI stands on the shoulders of giants:
|
||||||
|
|
||||||
* <a href="https://www.starlette.io/" class="external-link" target="_blank">Starlette</a> for the web parts.
|
* <a href="https://www.starlette.io/" class="external-link" target="_blank">Starlette</a> for the web parts.
|
||||||
|
|
@ -338,7 +336,7 @@ You do that with standard modern Python types.
|
||||||
|
|
||||||
You don't have to learn a new syntax, the methods or classes of a specific library, etc.
|
You don't have to learn a new syntax, the methods or classes of a specific library, etc.
|
||||||
|
|
||||||
Just standard **Python 3.8+**.
|
Just standard **Python**.
|
||||||
|
|
||||||
For example, for an `int`:
|
For example, for an `int`:
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -27,7 +27,7 @@
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
FastAPI Python 3.8+ ilə API yaratmaq üçün standart Python <abbr title="Tip Məsləhətləri: Type Hints">tip məsləhətlərinə</abbr> əsaslanan, müasir, sürətli (yüksək performanslı) framework-dür.
|
FastAPI Python ilə API yaratmaq üçün standart Python <abbr title="Tip Məsləhətləri: Type Hints">tip məsləhətlərinə</abbr> əsaslanan, müasir, sürətli (yüksək performanslı) framework-dür.
|
||||||
|
|
||||||
Əsas xüsusiyyətləri bunlardır:
|
Əsas xüsusiyyətləri bunlardır:
|
||||||
|
|
||||||
|
|
@ -115,8 +115,6 @@ FastAPI Python 3.8+ ilə API yaratmaq üçün standart Python <abbr title="Tip M
|
||||||
|
|
||||||
## Tələblər
|
## Tələblər
|
||||||
|
|
||||||
Python 3.8+
|
|
||||||
|
|
||||||
FastAPI nəhənglərin çiyinlərində dayanır:
|
FastAPI nəhənglərin çiyinlərində dayanır:
|
||||||
|
|
||||||
* Web tərəfi üçün <a href="https://www.starlette.io/" class="external-link" target="_blank">Starlette</a>.
|
* Web tərəfi üçün <a href="https://www.starlette.io/" class="external-link" target="_blank">Starlette</a>.
|
||||||
|
|
@ -330,7 +328,7 @@ Bunu standart müasir Python tipləri ilə edirsiniz.
|
||||||
|
|
||||||
Yeni sintaksis, müəyyən bir kitabxananın metodlarını və ya siniflərini və s. öyrənmək məcburiyyətində deyilsiniz.
|
Yeni sintaksis, müəyyən bir kitabxananın metodlarını və ya siniflərini və s. öyrənmək məcburiyyətində deyilsiniz.
|
||||||
|
|
||||||
Sadəcə standart **Python 3.8+**.
|
Sadəcə standart **Python**.
|
||||||
|
|
||||||
Məsələn, `int` üçün:
|
Məsələn, `int` üçün:
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -36,7 +36,7 @@ hide:
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
FastAPI ist ein modernes, schnelles (hoch performantes) Webframework zur Erstellung von APIs mit Python 3.8+ auf Basis von Standard-Python-Typhinweisen.
|
FastAPI ist ein modernes, schnelles (hoch performantes) Webframework zur Erstellung von APIs mit Python auf Basis von Standard-Python-Typhinweisen.
|
||||||
|
|
||||||
Seine Schlüssel-Merkmale sind:
|
Seine Schlüssel-Merkmale sind:
|
||||||
|
|
||||||
|
|
@ -125,8 +125,6 @@ Wenn Sie eine <abbr title="Command Line Interface – Kommandozeilen-Schnittstel
|
||||||
|
|
||||||
## Anforderungen
|
## Anforderungen
|
||||||
|
|
||||||
Python 3.8+
|
|
||||||
|
|
||||||
FastAPI steht auf den Schultern von Giganten:
|
FastAPI steht auf den Schultern von Giganten:
|
||||||
|
|
||||||
* <a href="https://www.starlette.io/" class="external-link" target="_blank">Starlette</a> für die Webanteile.
|
* <a href="https://www.starlette.io/" class="external-link" target="_blank">Starlette</a> für die Webanteile.
|
||||||
|
|
@ -340,7 +338,7 @@ Das machen Sie mit modernen Standard-Python-Typen.
|
||||||
|
|
||||||
Sie müssen keine neue Syntax, Methoden oder Klassen einer bestimmten Bibliothek usw. lernen.
|
Sie müssen keine neue Syntax, Methoden oder Klassen einer bestimmten Bibliothek usw. lernen.
|
||||||
|
|
||||||
Nur Standard-**Python 3.8+**.
|
Nur Standard-**Python+**.
|
||||||
|
|
||||||
Zum Beispiel für ein `int`:
|
Zum Beispiel für ein `int`:
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -36,7 +36,7 @@ hide:
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
FastAPI is a modern, fast (high-performance), web framework for building APIs with Python 3.8+ based on standard Python type hints.
|
FastAPI is a modern, fast (high-performance), web framework for building APIs with Python based on standard Python type hints.
|
||||||
|
|
||||||
The key features are:
|
The key features are:
|
||||||
|
|
||||||
|
|
@ -124,8 +124,6 @@ If you are building a <abbr title="Command Line Interface">CLI</abbr> app to be
|
||||||
|
|
||||||
## Requirements
|
## Requirements
|
||||||
|
|
||||||
Python 3.8+
|
|
||||||
|
|
||||||
FastAPI stands on the shoulders of giants:
|
FastAPI stands on the shoulders of giants:
|
||||||
|
|
||||||
* <a href="https://www.starlette.io/" class="external-link" target="_blank">Starlette</a> for the web parts.
|
* <a href="https://www.starlette.io/" class="external-link" target="_blank">Starlette</a> for the web parts.
|
||||||
|
|
@ -340,7 +338,7 @@ You do that with standard modern Python types.
|
||||||
|
|
||||||
You don't have to learn a new syntax, the methods or classes of a specific library, etc.
|
You don't have to learn a new syntax, the methods or classes of a specific library, etc.
|
||||||
|
|
||||||
Just standard **Python 3.8+**.
|
Just standard **Python**.
|
||||||
|
|
||||||
For example, for an `int`:
|
For example, for an `int`:
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -32,7 +32,7 @@ hide:
|
||||||
**Código Fuente**: <a href="https://github.com/tiangolo/fastapi" target="_blank">https://github.com/tiangolo/fastapi</a>
|
**Código Fuente**: <a href="https://github.com/tiangolo/fastapi" target="_blank">https://github.com/tiangolo/fastapi</a>
|
||||||
|
|
||||||
---
|
---
|
||||||
FastAPI es un web framework moderno y rápido (de alto rendimiento) para construir APIs con Python 3.8+ basado en las anotaciones de tipos estándar de Python.
|
FastAPI es un web framework moderno y rápido (de alto rendimiento) para construir APIs con Python basado en las anotaciones de tipos estándar de Python.
|
||||||
|
|
||||||
Sus características principales son:
|
Sus características principales son:
|
||||||
|
|
||||||
|
|
@ -115,8 +115,6 @@ Si estás construyendo un app de <abbr title="Interfaz de línea de comandos en
|
||||||
|
|
||||||
## Requisitos
|
## Requisitos
|
||||||
|
|
||||||
Python 3.8+
|
|
||||||
|
|
||||||
FastAPI está sobre los hombros de gigantes:
|
FastAPI está sobre los hombros de gigantes:
|
||||||
|
|
||||||
* <a href="https://www.starlette.io/" class="external-link" target="_blank">Starlette</a> para las partes web.
|
* <a href="https://www.starlette.io/" class="external-link" target="_blank">Starlette</a> para las partes web.
|
||||||
|
|
@ -328,7 +326,7 @@ Lo haces con tipos modernos estándar de Python.
|
||||||
|
|
||||||
No tienes que aprender una sintaxis nueva, los métodos o clases de una library específica, etc.
|
No tienes que aprender una sintaxis nueva, los métodos o clases de una library específica, etc.
|
||||||
|
|
||||||
Solo **Python 3.8+** estándar.
|
Solo **Python** estándar.
|
||||||
|
|
||||||
Por ejemplo, para un `int`:
|
Por ejemplo, para un `int`:
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -36,7 +36,7 @@ hide:
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
FastAPI est un framework web moderne et rapide (haute performance) pour la création d'API avec Python 3.8+, basé sur les annotations de type standard de Python.
|
FastAPI est un framework web moderne et rapide (haute performance) pour la création d'API avec Python, basé sur les annotations de type standard de Python.
|
||||||
|
|
||||||
Les principales fonctionnalités sont :
|
Les principales fonctionnalités sont :
|
||||||
|
|
||||||
|
|
@ -124,8 +124,6 @@ Si vous souhaitez construire une application <abbr title="Command Line Interface
|
||||||
|
|
||||||
## Prérequis
|
## Prérequis
|
||||||
|
|
||||||
Python 3.8+
|
|
||||||
|
|
||||||
FastAPI repose sur les épaules de géants :
|
FastAPI repose sur les épaules de géants :
|
||||||
|
|
||||||
* <a href="https://www.starlette.io/" class="external-link" target="_blank">Starlette</a> pour les parties web.
|
* <a href="https://www.starlette.io/" class="external-link" target="_blank">Starlette</a> pour les parties web.
|
||||||
|
|
@ -340,7 +338,7 @@ Vous faites cela avec les types Python standard modernes.
|
||||||
|
|
||||||
Vous n'avez pas à apprendre une nouvelle syntaxe, les méthodes ou les classes d'une bibliothèque spécifique, etc.
|
Vous n'avez pas à apprendre une nouvelle syntaxe, les méthodes ou les classes d'une bibliothèque spécifique, etc.
|
||||||
|
|
||||||
Juste du **Python 3.8+** standard.
|
Juste du **Python** standard.
|
||||||
|
|
||||||
Par exemple, pour un `int`:
|
Par exemple, pour un `int`:
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -26,7 +26,7 @@
|
||||||
**Forrás kód**: <a href="https://github.com/tiangolo/fastapi" target="_blank">https://github.com/tiangolo/fastapi</a>
|
**Forrás kód**: <a href="https://github.com/tiangolo/fastapi" target="_blank">https://github.com/tiangolo/fastapi</a>
|
||||||
|
|
||||||
---
|
---
|
||||||
A FastAPI egy modern, gyors (nagy teljesítményű), webes keretrendszer API-ok építéséhez Python 3.8+-al, a Python szabványos típusjelöléseire építve.
|
A FastAPI egy modern, gyors (nagy teljesítményű), webes keretrendszer API-ok építéséhez Python -al, a Python szabványos típusjelöléseire építve.
|
||||||
|
|
||||||
|
|
||||||
Kulcs funkciók:
|
Kulcs funkciók:
|
||||||
|
|
@ -115,8 +115,6 @@ Ha egy olyan CLI alkalmazást fejlesztesz amit a parancssorban kell használni w
|
||||||
|
|
||||||
## Követelmények
|
## Követelmények
|
||||||
|
|
||||||
Python 3.8+
|
|
||||||
|
|
||||||
A FastAPI óriások vállán áll:
|
A FastAPI óriások vállán áll:
|
||||||
|
|
||||||
* <a href="https://www.starlette.io/" class="external-link" target="_blank">Starlette</a> a webes részekhez.
|
* <a href="https://www.starlette.io/" class="external-link" target="_blank">Starlette</a> a webes részekhez.
|
||||||
|
|
@ -331,7 +329,7 @@ Ezt standard modern Python típusokkal csinálod.
|
||||||
|
|
||||||
Nem kell új szintaxist, vagy specifikus könyvtár mert metódósait, stb. megtanulnod.
|
Nem kell új szintaxist, vagy specifikus könyvtár mert metódósait, stb. megtanulnod.
|
||||||
|
|
||||||
Csak standard **Python 3.8+**.
|
Csak standard **Python**.
|
||||||
|
|
||||||
Például egy `int`-nek:
|
Például egy `int`-nek:
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -33,7 +33,7 @@ hide:
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
FastAPI は、Pythonの標準である型ヒントに基づいてPython 3.8 以降でAPI を構築するための、モダンで、高速(高パフォーマンス)な、Web フレームワークです。
|
FastAPI は、Pythonの標準である型ヒントに基づいてPython 以降でAPI を構築するための、モダンで、高速(高パフォーマンス)な、Web フレームワークです。
|
||||||
|
|
||||||
主な特徴:
|
主な特徴:
|
||||||
|
|
||||||
|
|
@ -116,8 +116,6 @@ FastAPI は、Pythonの標準である型ヒントに基づいてPython 3.8 以
|
||||||
|
|
||||||
## 必要条件
|
## 必要条件
|
||||||
|
|
||||||
Python 3.8+
|
|
||||||
|
|
||||||
FastAPI は巨人の肩の上に立っています。
|
FastAPI は巨人の肩の上に立っています。
|
||||||
|
|
||||||
- Web の部分は<a href="https://www.starlette.io/" class="external-link" target="_blank">Starlette</a>
|
- Web の部分は<a href="https://www.starlette.io/" class="external-link" target="_blank">Starlette</a>
|
||||||
|
|
|
||||||
|
|
@ -33,7 +33,7 @@ hide:
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
FastAPI는 현대적이고, 빠르며(고성능), 파이썬 표준 타입 힌트에 기초한 Python3.8+의 API를 빌드하기 위한 웹 프레임워크입니다.
|
FastAPI는 현대적이고, 빠르며(고성능), 파이썬 표준 타입 힌트에 기초한 Python의 API를 빌드하기 위한 웹 프레임워크입니다.
|
||||||
|
|
||||||
주요 특징으로:
|
주요 특징으로:
|
||||||
|
|
||||||
|
|
@ -116,8 +116,6 @@ FastAPI는 현대적이고, 빠르며(고성능), 파이썬 표준 타입 힌트
|
||||||
|
|
||||||
## 요구사항
|
## 요구사항
|
||||||
|
|
||||||
Python 3.8+
|
|
||||||
|
|
||||||
FastAPI는 거인들의 어깨 위에 서 있습니다:
|
FastAPI는 거인들의 어깨 위에 서 있습니다:
|
||||||
|
|
||||||
* 웹 부분을 위한 <a href="https://www.starlette.io/" class="external-link" target="_blank">Starlette</a>.
|
* 웹 부분을 위한 <a href="https://www.starlette.io/" class="external-link" target="_blank">Starlette</a>.
|
||||||
|
|
@ -332,7 +330,7 @@ def update_item(item_id: int, item: Item):
|
||||||
|
|
||||||
새로운 문법, 특정 라이브러리의 메소드나 클래스 등을 배울 필요가 없습니다.
|
새로운 문법, 특정 라이브러리의 메소드나 클래스 등을 배울 필요가 없습니다.
|
||||||
|
|
||||||
그저 표준 **Python 3.8+** 입니다.
|
그저 표준 **Python** 입니다.
|
||||||
|
|
||||||
예를 들어, `int`에 대해선:
|
예를 들어, `int`에 대해선:
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -33,7 +33,7 @@ hide:
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
FastAPI to nowoczesny, wydajny framework webowy do budowania API z użyciem Pythona 3.8+ bazujący na standardowym typowaniu Pythona.
|
FastAPI to nowoczesny, wydajny framework webowy do budowania API z użyciem Pythona bazujący na standardowym typowaniu Pythona.
|
||||||
|
|
||||||
Kluczowe cechy:
|
Kluczowe cechy:
|
||||||
|
|
||||||
|
|
@ -115,8 +115,6 @@ Jeżeli tworzysz aplikacje <abbr title="aplikacja z interfejsem konsolowym">CLI<
|
||||||
|
|
||||||
## Wymagania
|
## Wymagania
|
||||||
|
|
||||||
Python 3.8+
|
|
||||||
|
|
||||||
FastAPI oparty jest na:
|
FastAPI oparty jest na:
|
||||||
|
|
||||||
* <a href="https://www.starlette.io/" class="external-link" target="_blank">Starlette</a> dla części webowej.
|
* <a href="https://www.starlette.io/" class="external-link" target="_blank">Starlette</a> dla części webowej.
|
||||||
|
|
@ -330,7 +328,7 @@ Robisz to tak samo jak ze standardowymi typami w Pythonie.
|
||||||
|
|
||||||
Nie musisz sie uczyć żadnej nowej składni, metod lub klas ze specyficznych bibliotek itp.
|
Nie musisz sie uczyć żadnej nowej składni, metod lub klas ze specyficznych bibliotek itp.
|
||||||
|
|
||||||
Po prostu standardowy **Python 3.8+**.
|
Po prostu standardowy **Python**.
|
||||||
|
|
||||||
Na przykład, dla danych typu `int`:
|
Na przykład, dla danych typu `int`:
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -33,7 +33,7 @@ hide:
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
FastAPI é um moderno e rápido (alta performance) _framework web_ para construção de APIs com Python 3.8 ou superior, baseado nos _type hints_ padrões do Python.
|
FastAPI é um moderno e rápido (alta performance) _framework web_ para construção de APIs com Python, baseado nos _type hints_ padrões do Python.
|
||||||
|
|
||||||
Os recursos chave são:
|
Os recursos chave são:
|
||||||
|
|
||||||
|
|
@ -109,8 +109,6 @@ Se você estiver construindo uma aplicação <abbr title="Command Line Interface
|
||||||
|
|
||||||
## Requisitos
|
## Requisitos
|
||||||
|
|
||||||
Python 3.8+
|
|
||||||
|
|
||||||
FastAPI está nos ombros de gigantes:
|
FastAPI está nos ombros de gigantes:
|
||||||
|
|
||||||
* <a href="https://www.starlette.io/" class="external-link" target="_blank">Starlette</a> para as partes web.
|
* <a href="https://www.starlette.io/" class="external-link" target="_blank">Starlette</a> para as partes web.
|
||||||
|
|
@ -325,7 +323,7 @@ Você faz com tipos padrão do Python moderno.
|
||||||
|
|
||||||
Você não terá que aprender uma nova sintaxe, métodos ou classes de uma biblioteca específica etc.
|
Você não terá que aprender uma nova sintaxe, métodos ou classes de uma biblioteca específica etc.
|
||||||
|
|
||||||
Apenas **Python 3.8+** padrão.
|
Apenas **Python** padrão.
|
||||||
|
|
||||||
Por exemplo, para um `int`:
|
Por exemplo, para um `int`:
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -36,7 +36,7 @@ hide:
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
FastAPI — это современный, быстрый (высокопроизводительный) веб-фреймворк для создания API используя Python 3.8+, в основе которого лежит стандартная аннотация типов Python.
|
FastAPI — это современный, быстрый (высокопроизводительный) веб-фреймворк для создания API используя Python, в основе которого лежит стандартная аннотация типов Python.
|
||||||
|
|
||||||
Ключевые особенности:
|
Ключевые особенности:
|
||||||
|
|
||||||
|
|
@ -118,8 +118,6 @@ FastAPI — это современный, быстрый (высокопрои
|
||||||
|
|
||||||
## Зависимости
|
## Зависимости
|
||||||
|
|
||||||
Python 3.8+
|
|
||||||
|
|
||||||
FastAPI стоит на плечах гигантов:
|
FastAPI стоит на плечах гигантов:
|
||||||
|
|
||||||
* <a href="https://www.starlette.io/" class="external-link" target="_blank">Starlette</a> для части связанной с вебом.
|
* <a href="https://www.starlette.io/" class="external-link" target="_blank">Starlette</a> для части связанной с вебом.
|
||||||
|
|
@ -334,7 +332,7 @@ def update_item(item_id: int, item: Item):
|
||||||
|
|
||||||
Вам не нужно изучать новый синтаксис, методы или классы конкретной библиотеки и т. д.
|
Вам не нужно изучать новый синтаксис, методы или классы конкретной библиотеки и т. д.
|
||||||
|
|
||||||
Только стандартный **Python 3.8+**.
|
Только стандартный **Python**.
|
||||||
|
|
||||||
Например, для `int`:
|
Например, для `int`:
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -36,7 +36,7 @@ hide:
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
FastAPI, Python <abbr title="Python 3.8 ve üzeri">3.8+</abbr>'nin standart <abbr title="Tip Belirteçleri: Type Hints">tip belirteçleri</abbr>ne dayalı, modern ve hızlı (yüksek performanslı) API'lar oluşturmak için kullanılabilecek web framework'tür.
|
FastAPI, Python 'nin standart <abbr title="Tip Belirteçleri: Type Hints">tip belirteçleri</abbr>ne dayalı, modern ve hızlı (yüksek performanslı) API'lar oluşturmak için kullanılabilecek web framework'tür.
|
||||||
|
|
||||||
Temel özellikleri şunlardır:
|
Temel özellikleri şunlardır:
|
||||||
|
|
||||||
|
|
@ -124,8 +124,6 @@ Eğer API yerine, terminalde kullanılmak üzere bir <abbr title="Komut Satırı
|
||||||
|
|
||||||
## Gereksinimler
|
## Gereksinimler
|
||||||
|
|
||||||
Python 3.8+
|
|
||||||
|
|
||||||
FastAPI iki devin omuzları üstünde duruyor:
|
FastAPI iki devin omuzları üstünde duruyor:
|
||||||
|
|
||||||
* Web tarafı için <a href="https://www.starlette.io/" class="external-link" target="_blank">Starlette</a>.
|
* Web tarafı için <a href="https://www.starlette.io/" class="external-link" target="_blank">Starlette</a>.
|
||||||
|
|
@ -340,7 +338,7 @@ Bu işlemi standart modern Python tipleriyle yapıyoruz.
|
||||||
|
|
||||||
Yeni bir sözdizimi yapısını, bir kütüphane özel metod veya sınıfları öğrenmeye gerek yoktur.
|
Yeni bir sözdizimi yapısını, bir kütüphane özel metod veya sınıfları öğrenmeye gerek yoktur.
|
||||||
|
|
||||||
Hepsi sadece **Python 3.8+** standartlarına dayalıdır.
|
Hepsi sadece **Python** standartlarına dayalıdır.
|
||||||
|
|
||||||
Örnek olarak, `int` tanımlamak için:
|
Örnek olarak, `int` tanımlamak için:
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -27,7 +27,7 @@
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
FastAPI - це сучасний, швидкий (високопродуктивний), вебфреймворк для створення API за допомогою Python 3.8+,в основі якого лежить стандартна анотація типів Python.
|
FastAPI - це сучасний, швидкий (високопродуктивний), вебфреймворк для створення API за допомогою Python,в основі якого лежить стандартна анотація типів Python.
|
||||||
|
|
||||||
Ключові особливості:
|
Ключові особливості:
|
||||||
|
|
||||||
|
|
@ -110,8 +110,6 @@ FastAPI - це сучасний, швидкий (високопродуктив
|
||||||
|
|
||||||
## Вимоги
|
## Вимоги
|
||||||
|
|
||||||
Python 3.8+
|
|
||||||
|
|
||||||
FastAPI стоїть на плечах гігантів:
|
FastAPI стоїть на плечах гігантів:
|
||||||
|
|
||||||
* <a href="https://www.starlette.io/" class="external-link" target="_blank">Starlette</a> для web частини.
|
* <a href="https://www.starlette.io/" class="external-link" target="_blank">Starlette</a> для web частини.
|
||||||
|
|
@ -326,7 +324,7 @@ def update_item(item_id: int, item: Item):
|
||||||
|
|
||||||
Вам не потрібно вивчати новий синтаксис, методи чи класи конкретної бібліотеки тощо.
|
Вам не потрібно вивчати новий синтаксис, методи чи класи конкретної бібліотеки тощо.
|
||||||
|
|
||||||
Використовуючи стандартний **Python 3.8+**.
|
Використовуючи стандартний **Python**.
|
||||||
|
|
||||||
Наприклад, для `int`:
|
Наприклад, для `int`:
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -36,7 +36,7 @@ hide:
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
FastAPI là một web framework hiện đại, hiệu năng cao để xây dựng web APIs với Python 3.8+ dựa trên tiêu chuẩn Python type hints.
|
FastAPI là một web framework hiện đại, hiệu năng cao để xây dựng web APIs với Python dựa trên tiêu chuẩn Python type hints.
|
||||||
|
|
||||||
Những tính năng như:
|
Những tính năng như:
|
||||||
|
|
||||||
|
|
@ -125,8 +125,6 @@ Nếu bạn đang xây dựng một <abbr title="Giao diện dòng lệnh">CLI</
|
||||||
|
|
||||||
## Yêu cầu
|
## Yêu cầu
|
||||||
|
|
||||||
Python 3.8+
|
|
||||||
|
|
||||||
FastAPI đứng trên vai những người khổng lồ:
|
FastAPI đứng trên vai những người khổng lồ:
|
||||||
|
|
||||||
* <a href="https://www.starlette.io/" class="external-link" target="_blank">Starlette</a> cho phần web.
|
* <a href="https://www.starlette.io/" class="external-link" target="_blank">Starlette</a> cho phần web.
|
||||||
|
|
@ -341,7 +339,7 @@ Bạn định nghĩa bằng cách sử dụng các kiểu dữ liệu chuẩn c
|
||||||
|
|
||||||
Bạn không phải học một cú pháp mới, các phương thức và class của một thư viện cụ thể nào.
|
Bạn không phải học một cú pháp mới, các phương thức và class của một thư viện cụ thể nào.
|
||||||
|
|
||||||
Chỉ cần sử dụng các chuẩn của **Python 3.8+**.
|
Chỉ cần sử dụng các chuẩn của **Python**.
|
||||||
|
|
||||||
Ví dụ, với một tham số kiểu `int`:
|
Ví dụ, với một tham số kiểu `int`:
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -36,7 +36,7 @@ hide:
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
FastAPI jẹ́ ìgbàlódé, tí ó yára (iṣẹ-giga), ìlànà wẹ́ẹ́bù fún kikọ àwọn API pẹ̀lú Python 3.8+ èyí tí ó da lori àwọn ìtọ́kasí àmì irúfẹ́ Python.
|
FastAPI jẹ́ ìgbàlódé, tí ó yára (iṣẹ-giga), ìlànà wẹ́ẹ́bù fún kikọ àwọn API pẹ̀lú Python èyí tí ó da lori àwọn ìtọ́kasí àmì irúfẹ́ Python.
|
||||||
|
|
||||||
Àwọn ẹya pàtàkì ni:
|
Àwọn ẹya pàtàkì ni:
|
||||||
|
|
||||||
|
|
@ -124,8 +124,6 @@ Ti o ba n kọ ohun èlò <abbr title="Command Line Interface">CLI</abbr> láti
|
||||||
|
|
||||||
## Èròjà
|
## Èròjà
|
||||||
|
|
||||||
Python 3.8+
|
|
||||||
|
|
||||||
FastAPI dúró lórí àwọn èjìká tí àwọn òmíràn:
|
FastAPI dúró lórí àwọn èjìká tí àwọn òmíràn:
|
||||||
|
|
||||||
* <a href="https://www.starlette.io/" class="external-link" target="_blank">Starlette</a> fún àwọn ẹ̀yà ayélujára.
|
* <a href="https://www.starlette.io/" class="external-link" target="_blank">Starlette</a> fún àwọn ẹ̀yà ayélujára.
|
||||||
|
|
@ -340,7 +338,7 @@ O ṣe ìyẹn pẹ̀lú irúfẹ́ àmì ìtọ́kasí ìgbàlódé Python.
|
||||||
|
|
||||||
O ò nílò láti kọ́ síńtáàsì tuntun, ìlànà tàbí ọ̀wọ́ kíláàsì kan pàtó, abbl (i.e. àti bẹbẹ lọ).
|
O ò nílò láti kọ́ síńtáàsì tuntun, ìlànà tàbí ọ̀wọ́ kíláàsì kan pàtó, abbl (i.e. àti bẹbẹ lọ).
|
||||||
|
|
||||||
Ìtọ́kasí **Python 3.8+**
|
Ìtọ́kasí **Python**
|
||||||
|
|
||||||
Fún àpẹẹrẹ, fún `int`:
|
Fún àpẹẹrẹ, fún `int`:
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -27,7 +27,7 @@
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
FastAPI 是一個現代、快速(高效能)的 web 框架,用於 Python 3.8+ 並採用標準 Python 型別提示。
|
FastAPI 是一個現代、快速(高效能)的 web 框架,用於 Python 並採用標準 Python 型別提示。
|
||||||
|
|
||||||
主要特點包含:
|
主要特點包含:
|
||||||
|
|
||||||
|
|
@ -115,8 +115,6 @@ FastAPI 是一個現代、快速(高效能)的 web 框架,用於 Python 3.
|
||||||
|
|
||||||
## 安裝需求
|
## 安裝需求
|
||||||
|
|
||||||
Python 3.8+
|
|
||||||
|
|
||||||
FastAPI 是站在以下巨人的肩膀上:
|
FastAPI 是站在以下巨人的肩膀上:
|
||||||
|
|
||||||
- <a href="https://www.starlette.io/" class="external-link" target="_blank">Starlette</a> 負責網頁的部分
|
- <a href="https://www.starlette.io/" class="external-link" target="_blank">Starlette</a> 負責網頁的部分
|
||||||
|
|
@ -331,7 +329,7 @@ def update_item(item_id: int, item: Item):
|
||||||
|
|
||||||
你不需要學習新的語法、類別、方法或函式庫等等。
|
你不需要學習新的語法、類別、方法或函式庫等等。
|
||||||
|
|
||||||
只需要使用 **Python 3.8 以上的版本**。
|
只需要使用 **Python 以上的版本**。
|
||||||
|
|
||||||
舉個範例,比如宣告 int 的型別:
|
舉個範例,比如宣告 int 的型別:
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -36,7 +36,7 @@ hide:
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
FastAPI 是一个用于构建 API 的现代、快速(高性能)的 web 框架,使用 Python 3.8+ 并基于标准的 Python 类型提示。
|
FastAPI 是一个用于构建 API 的现代、快速(高性能)的 web 框架,使用 Python 并基于标准的 Python 类型提示。
|
||||||
|
|
||||||
关键特性:
|
关键特性:
|
||||||
|
|
||||||
|
|
@ -119,7 +119,7 @@ FastAPI 是一个用于构建 API 的现代、快速(高性能)的 web 框
|
||||||
|
|
||||||
## 依赖
|
## 依赖
|
||||||
|
|
||||||
Python 3.8 及更高版本
|
Python 及更高版本
|
||||||
|
|
||||||
FastAPI 站在以下巨人的肩膀之上:
|
FastAPI 站在以下巨人的肩膀之上:
|
||||||
|
|
||||||
|
|
@ -335,7 +335,7 @@ def update_item(item_id: int, item: Item):
|
||||||
|
|
||||||
你不需要去学习新的语法、了解特定库的方法或类,等等。
|
你不需要去学习新的语法、了解特定库的方法或类,等等。
|
||||||
|
|
||||||
只需要使用标准的 **Python 3.8 及更高版本**。
|
只需要使用标准的 **Python 及更高版本**。
|
||||||
|
|
||||||
举个例子,比如声明 `int` 类型:
|
举个例子,比如声明 `int` 类型:
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue