コンテンツにスキップ
per page, with , order by , clip by
Results of 1 - 7 of about 7 for library (0.005 sec.)
GraphQL 13359
GraphQL 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 ASGI standard, it's very easy to integrate any GraphQL library also compatible w ... With starlette-graphene3 GraphQL with Strawberry If you need or want to work with GraphQL , Strawberry is the recommended library as it has the design closest to FastAPI's design, it's all based on type annotations . Depending on your use case, you mig ... ht prefer to use a different library, but if you asked me, I would probably suggest you try Strawberry . Here's a small preview of how you could integrate Stra ...
https://man.mtool.work/fastapi/0.115/how-to/graphql/
並行処理と async / await 8997
並行処理と async / await path operation 関数 のための async def に関する詳細と非同期 (asynchronous) コード、並行処理 (Concurrency)、そして、並列処理 (Parallelism) の背景について。 急いでいますか? TL;DR: 次のような、 await を使用して呼び出す ... べきサードパーティライブラリを使用している場合: results = await some_library () 以下の様に async def を使用して path operation 関数 を宣言します。 @app . get ( '/' ) async def read_results (): result ... s = await some_library () return results 備考 async def を使用して作成された関数の内部でしか await は使用できません。 データベース、API、ファイル ... 様に、単に def を使用して通常通り path operation 関数 を宣言してください: @app . get ( '/' ) def results (): results = some_library () return results アプリケーションが (どういうわけか) 他の何とも通信せず、応答を待つ必要がない場合は、 async def を使用して ...
https://man.mtool.work/fastapi/0.115/async/
Async Tests 8815
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, ... ation and then verify that your backend 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 te ...
https://man.mtool.work/fastapi/0.115/advanced/async-tests/
Settings and Environment Variables 8815
Settings and Environment Variables Warning The current page still doesn't have a translation for this language. But you can help translating it: Contributing . In many cases your application could need some external settings or configuratio ... sn't really have to have that exact filename. Pydantic has support for reading from these types of files using an external library. You can read more at Pydantic Settings: Dotenv (.env) support . Tip For this to work, you need to pip install python-dote ... y function, then we can override it easily for testing. @lru_cache is part of functools which is part of Python's standard library, you can read more about it in the Python docs for @lru_cache . Recap You can use Pydantic Settings to handle the settings ...
https://man.mtool.work/fastapi/0.115/advanced/settings/
Generate Clients 8233
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, ... --output ./src/client --client axios That command will generate code in ./src/client and will use axios (the frontend HTTP library) internally. Try Out the Client Code Now you can import and use the client code, it could look like this, notice that you ...
https://man.mtool.work/fastapi/0.115/advanced/generate-clients/
Simple OAuth2 with Password and Bearer 7670
Simple OAuth2 with Password and Bearer Warning The current page still doesn't have a translation for this language. But you can help translating it: Contributing . Now let's build from the previous chapter and add the missing parts to have ... etail missing is that it is not actually "secure" yet. In the next chapter you'll see how to use a secure password hashing library and JWT tokens. ...
https://man.mtool.work/fastapi/0.115/tutorial/security/simple-oauth2/
SQL (Relational) Databases 7670
SQL (Relational) Databases Warning The current page still doesn't have a translation for this language. But you can help translating it: Contributing . FastAPI doesn't require you to use a SQL (relational) database. But you can use any data ... perfect match for FastAPI applications that need to use SQL databases . Tip You could use any other SQL or NoSQL database library you want (in some cases called "ORMs" ), FastAPI doesn't force you to use anything. ? As SQLModel is based on SQLAlchemy, ...
https://man.mtool.work/fastapi/0.115/tutorial/sql-databases/
PREV 1 NEXT