コンテンツにスキップ
per page, with , order by , clip by
Results of 1 - 5 of about 5 for admin (0.003 sec.)
Settings and Environment Variables 11674
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 ... import FastAPI from pydantic_settings import BaseSettings class Settings ( BaseSettings ): app_name : str = "Awesome API" admin_email : str items_per_user : int = 50 settings = Settings () app = FastAPI () @app . get ( "/info" ) async def info (): re ... turn { "app_name" : settings . app_name , "admin_email" : settings . admin_email , "items_per_user" : settings . items_per_user , } Info In Pydantic v1 you would import Ba ... m fastapi import FastAPI from pydantic import BaseSettings class Settings ( BaseSettings ): app_name : str = "Awesome API" admin_email : str items_per_user : int = 50 settings = Settings () app = FastAPI () @app . get ( "/info" ) async def info (): re ...
https://man.mtool.work/fastapi/0.115/advanced/settings/
Bigger Applications - Multiple Files 11141
Bigger Applications - Multiple Files Warning The current page still doesn't have a translation for this language. But you can help translating it: Contributing . If you are building an application or a web API, it's rarely the case that you ... dependencies.py │ └── routers │ │ ├── __init__.py │ │ ├── items.py │ │ └── users.py │ └── internal │ ├── __init__.py │ └── admin.py Tip There are several __init__.py files: one in each directory or subdirectory. This is what allows importing code from ... pp/internal/ with another file __init__.py , so it's another "Python subpackage": app.internal . And the file app/internal/admin.py is another submodule: app.internal.admin . The same file structure with comments: . ├── app # "app" is a Python package ... sers │ └── internal # "internal" is a "Python subpackage" │ ├── __init__.py # makes "internal" a "Python subpackage" │ └── admin.py # "admin" submodule, e.g. import app.internal.admin APIRouter Let's say the file dedicated to handling just users is th ...
https://man.mtool.work/fastapi/0.115/tutorial/bigger-applications/
External Links and Articles 7979
External Links and Articles FastAPI has a great community constantly growing. There are many posts, articles, tools, and projects, related to FastAPI . Here's an incomplete list of some of them. Tip If you have an article, project, tool, or ... aconf . ★ 3781 - poem by @poem-web . ★ 3190 - farfalle by @rashadphz . ★ 3119 - opyrator by @ml-tooling . ★ 3086 - fastapi-admin by @fastapi-admin . ★ 3021 - docarray by @docarray . ★ 2988 - datamodel-code-generator by @koxudaxi . ★ 2863 - LitServe by ... by @dot-agent . ★ 2163 - 30-Days-of-Python by @codingforentrepreneurs . ★ 2156 - FastAPI-template by @s3rius . ★ 2051 - sqladmin by @aminalaee . ★ 2025 - langserve by @langchain-ai . ★ 2021 - fastapi-utils by @fastapiutils . ★ 1980 - solara by @widget ... tion by @uriyyo . ★ 1234 - fastapi-boilerplate by @teamhide . ★ 1181 - fastapi-tutorial by @liaogx . ★ 1164 - fastapi-amis-admin by @amisadmin . ★ 1132 - fastapi-code-generator by @koxudaxi . ★ 1130 - bolt-python by @slackapi . ★ 1110 - langchain-extr ...
https://man.mtool.work/fastapi/0.115/external-links/
依存関係 - 最初のステップ 7703
依存関係 - 最初のステップ ** FastAPI** は非常に強力でありながら直感的な 依存性注入 システムを持っています。 それは非常にシンプルに使用できるように設計されており、開発者が他のコンポーネント FastAPI と統合するのが非常に簡単になるように設計され ... ぞれに異なるパーミッション要件を追加することができます: graph TB current_user(["current_user"]) active_user(["active_user"]) admin_user(["admin_user"]) paying_user(["paying_user"]) public["/items/public/"] private["/items/private/"] activate_user["/user ... s/{user_id}/activate"] pro_items["/items/pro/"] current_user --> active_user active_user --> admin_user active_user --> paying_user current_user --> public active_user --> private admin_user --> activate_user paying_user ...
https://man.mtool.work/fastapi/0.115/tutorial/dependencies/
Behind a Proxy 7409
Behind a Proxy Warning The current page still doesn't have a translation for this language. But you can help translating it: Contributing . In some situations, you might need to use a proxy server like Traefik or Nginx with a configuration ... r file routes.toml . Tip We are using port 9999 instead of the standard HTTP port 80 so that you don't have to run it with admin ( sudo ) privileges. Now create that other file routes.toml : [http] [http.middlewares] [http.middlewares.api-stripprefix. ...
https://man.mtool.work/fastapi/0.115/advanced/behind-a-proxy/
PREV 1 NEXT