App下載

詞條

大約有 58 項符合查詢結(jié)果 ,庫內(nèi)數(shù)據(jù)總量為 78,250 項。(搜索耗時:0.0036秒)

51.FastAPI教程 錯誤處理

...HTTP 錯誤響應(yīng),可以使用 HTTPException。 導(dǎo)入 HTTPExceptionfrom fastapi import FastAPI, HTTPException app = FastAPI() items = {"foo": "The Foo Wrestlers"} @app.get("/items/{item_id}") async def read_item(item_id: str): if item_id not in items: raise HTTPException(status_code=404, detail="...

http://www.o2fo.com/fastapi/fastapi-e3bm3lck.html

52.FastAPI教程 響應(yīng)模型

... @app.put() @app.delete() 等等。 from typing import List, Optional from fastapi import FastAPI from pydantic import BaseModel app = FastAPI() class Item(BaseModel): name: str description: Optional[str] = None price: float tax: Optional[float] = None tags: List[str] = [] @app.post("/items/", respo...

http://www.o2fo.com/fastapi/fastapi-rhv73lce.html

53.FastAPI教程 更大的應(yīng)用 - 多個文件

...程序或 Web API,很少會將所有的內(nèi)容都放在一個文件中。FastAPI 提供了一個方便的工具,可以在保持所有靈活性的同時構(gòu)建你的應(yīng)用程序。Info如果你來自 Flask,那這將相當(dāng)于 Flask 的 Blueprints。一個文件結(jié)構(gòu)示例假設(shè)你的文件結(jié)構(gòu)...

http://www.o2fo.com/fastapi/fastapi-wmz93ld4.html

54.FastAPI教程 使用密碼和 Bearer 的簡單 OAuth2

...個完整的安全性流程。獲取 username 和 password我們將使用 FastAPI 的安全性實用工具來獲取 username 和 password。OAuth2 規(guī)定在使用(我們打算用的)「password 流程」時,客戶端/用戶必須將 username 和 password 字段作為表單數(shù)據(jù)發(fā)送。而且...

http://www.o2fo.com/fastapi/fastapi-s5eo3lcz.html

55.FastAPI教程 使用(哈希)密碼和 JWT Bearer 令牌的 OAuth2

...舉個例子,將數(shù)據(jù)庫中來自 Django 應(yīng)用的數(shù)據(jù)共享給一個 FastAPI 應(yīng)用。或者使用同一數(shù)據(jù)庫但逐漸將應(yīng)用從 Django 遷移到 FastAPI。而你的用戶將能夠同時從 Django 應(yīng)用或 FastAPI 應(yīng)用登錄。哈希并校驗密碼從 passlib 導(dǎo)入我們需要的工...

http://www.o2fo.com/fastapi/fastapi-jcv33ld0.html

56.FastAPI教程 SQL(關(guān)系)數(shù)據(jù)庫

FastAPI不要求您使用 SQL(關(guān)系)數(shù)據(jù)庫。但是您可以使用任何您想要的關(guān)系數(shù)據(jù)庫。在這里,我們將看到一個使用SQLAlchemy的示例。您可以輕松地將其調(diào)整為 SQLAlchemy 支持的任何數(shù)據(jù)庫,例如:PostgreSQLMySQLSQLiteOracleMicrosoft SQL Server ...

http://www.o2fo.com/fastapi/fastapi-lgip3ld3.html

57.Python 類型提示簡介

...一個關(guān)于 Python 類型提示的快速入門 / 復(fù)習(xí)。它僅涵蓋與 FastAPI 一起使用所需的最少部分...實際上只有很少一點。 整個 FastAPI 都基于這些類型提示構(gòu)建,它們帶來了許多優(yōu)點和好處。 但即使你不會用到 FastAPI,了解一下類型提示...

http://www.o2fo.com/fastapi/python-types.html

58.pycharm 簡介

...化的flask到接地氣的pyramid再到結(jié)合最新特性的異步web框架fastAPI,pycharm都能勝任。另外pycharm因為同系列軟件的加持(webstorm),所以在pycharm也可以直接進行前端開發(fā)(支持bootstrap,angular,react,加插件也可支持vue)。此外pycharm...

http://www.o2fo.com/pycharm/pycharm-intro.html

抱歉,暫時沒有相關(guān)的微課

w3cschool 建議您:

  • 檢查輸入的文字是否有誤

抱歉,暫時沒有相關(guān)的視頻課程

w3cschool 建議您:

  • 檢查輸入的文字是否有誤

抱歉,暫時沒有相關(guān)的教程

w3cschool 建議您:

  • 檢查輸入的文字是否有誤

51.FastAPI教程 錯誤處理

...HTTP 錯誤響應(yīng),可以使用 HTTPException。 導(dǎo)入 HTTPExceptionfrom fastapi import FastAPI, HTTPException app = FastAPI() items = {"foo": "The Foo Wrestlers"} @app.get("/items/{item_id}") async def read_item(item_id: str): if item_id not in items: raise HTTPException(status_code=404, detail="...

http://www.o2fo.com/fastapi/fastapi-e3bm3lck.html

52.FastAPI教程 響應(yīng)模型

... @app.put() @app.delete() 等等。 from typing import List, Optional from fastapi import FastAPI from pydantic import BaseModel app = FastAPI() class Item(BaseModel): name: str description: Optional[str] = None price: float tax: Optional[float] = None tags: List[str] = [] @app.post("/items/", respo...

http://www.o2fo.com/fastapi/fastapi-rhv73lce.html

53.FastAPI教程 更大的應(yīng)用 - 多個文件

...程序或 Web API,很少會將所有的內(nèi)容都放在一個文件中。FastAPI 提供了一個方便的工具,可以在保持所有靈活性的同時構(gòu)建你的應(yīng)用程序。Info如果你來自 Flask,那這將相當(dāng)于 Flask 的 Blueprints。一個文件結(jié)構(gòu)示例假設(shè)你的文件結(jié)構(gòu)...

http://www.o2fo.com/fastapi/fastapi-wmz93ld4.html

54.FastAPI教程 使用密碼和 Bearer 的簡單 OAuth2

...個完整的安全性流程。獲取 username 和 password我們將使用 FastAPI 的安全性實用工具來獲取 username 和 password。OAuth2 規(guī)定在使用(我們打算用的)「password 流程」時,客戶端/用戶必須將 username 和 password 字段作為表單數(shù)據(jù)發(fā)送。而且...

http://www.o2fo.com/fastapi/fastapi-s5eo3lcz.html

55.FastAPI教程 使用(哈希)密碼和 JWT Bearer 令牌的 OAuth2

...舉個例子,將數(shù)據(jù)庫中來自 Django 應(yīng)用的數(shù)據(jù)共享給一個 FastAPI 應(yīng)用?;蛘呤褂猛粩?shù)據(jù)庫但逐漸將應(yīng)用從 Django 遷移到 FastAPI。而你的用戶將能夠同時從 Django 應(yīng)用或 FastAPI 應(yīng)用登錄。哈希并校驗密碼從 passlib 導(dǎo)入我們需要的工...

http://www.o2fo.com/fastapi/fastapi-jcv33ld0.html

56.FastAPI教程 SQL(關(guān)系)數(shù)據(jù)庫

FastAPI不要求您使用 SQL(關(guān)系)數(shù)據(jù)庫。但是您可以使用任何您想要的關(guān)系數(shù)據(jù)庫。在這里,我們將看到一個使用SQLAlchemy的示例。您可以輕松地將其調(diào)整為 SQLAlchemy 支持的任何數(shù)據(jù)庫,例如:PostgreSQLMySQLSQLiteOracleMicrosoft SQL Server ...

http://www.o2fo.com/fastapi/fastapi-lgip3ld3.html

57.Python 類型提示簡介

...一個關(guān)于 Python 類型提示的快速入門 / 復(fù)習(xí)。它僅涵蓋與 FastAPI 一起使用所需的最少部分...實際上只有很少一點。 整個 FastAPI 都基于這些類型提示構(gòu)建,它們帶來了許多優(yōu)點和好處。 但即使你不會用到 FastAPI,了解一下類型提示...

http://www.o2fo.com/fastapi/python-types.html

58.pycharm 簡介

...化的flask到接地氣的pyramid再到結(jié)合最新特性的異步web框架fastAPI,pycharm都能勝任。另外pycharm因為同系列軟件的加持(webstorm),所以在pycharm也可以直接進行前端開發(fā)(支持bootstrap,angular,react,加插件也可支持vue)。此外pycharm...

http://www.o2fo.com/pycharm/pycharm-intro.html

抱歉,暫時沒有相關(guān)的文章

w3cschool 建議您:

  • 檢查輸入的文字是否有誤

熱門課程