- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 42 for Case (0.16 sec)
-
docs/en/docs/advanced/security/oauth2-scopes.md
In this case, we pass a dependency function `get_current_active_user` to `Security` (the same way we would do with `Depends`). But we also pass a `list` of scopes, in this case with just one scope: `items` (it could have more).
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Jan 11 21:21:35 GMT 2024 - 20.5K bytes - Viewed (0) -
docs/en/docs/how-to/sql-databases-peewee.md
If you are starting a project from scratch, you are probably better off with SQLAlchemy ORM ([SQL (Relational) Databases](../tutorial/sql-databases.md){.internal-link target=_blank}), or any other async ORM. If you already have a code base that uses <a href="https://docs.peewee-orm.com/en/latest/" class="external-link" target="_blank">Peewee ORM</a>, you can check here how to use it with **FastAPI**. !!! warning "Python 3.7+ required"
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Tue Jan 16 13:23:25 GMT 2024 - 23.6K bytes - Viewed (1) -
docs/en/docs/deployment/docker.md
In this case, if you had **multiple containers**, by default, when Prometheus came to **read the metrics**, it would get the ones for **a single container each time** (for the container that handled that particular request), instead of getting the **accumulated metrics** for all the replicated containers.
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu May 02 22:37:31 GMT 2024 - 34K bytes - Viewed (0) -
docs/em/docs/tutorial/sql-databases.md
``` ### โ `Base` ๐ ๐ ๐ฅ ๐ โ๏ธ ๐ข `declarative_base()` ๐ ๐จ ๐. โช ๐ฅ ๐ ๐ โช๏ธโก๏ธ ๐ ๐ โ ๐ ๐ฝ ๐ท โ๏ธ ๐ (๐ ๐ท): ```Python hl_lines="13" {!../../../docs_src/sql_databases/sql_app/database.py!} ``` ## โ ๐ฝ ๐ท โก๏ธ ๐ ๐ ๐ `sql_app/models.py`. ### โ ๐ธ๐ฒ ๐ท โช๏ธโก๏ธ `Base` ๐ ๐ฅ ๐ โ๏ธ ๐ `Base` ๐ ๐ฅ โ โญ โ ๐ธ๐ฒ ๐ท. !!! tip
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 25.2K bytes - Viewed (1) -
docs/ja/docs/tutorial/security/first-steps.md
!!! info "ๆ่ก่ฉณ็ดฐ" **FastAPI**ใฏใ`OAuth2PasswordBearer` ใฏใฉใน (ไพๅญ้ขไฟใงๅฎฃ่จใใใฆใใ) ใไฝฟ็จใใฆOpenAPIใฎใปใญใฅใชใใฃในใญใผใ ใๅฎ็พฉใงใใใใจใ็ฅใฃใฆใใพใใใใใฏ`fastapi.security.oauth2.OAuth2`ใ`fastapi.security.base.SecurityBase`ใ็ถๆฟใใฆใใใใใงใใ OpenAPIใจ็ตฑๅใใใปใญใฅใชใใฃใฆใผใใฃใชใใฃ (ใใใณ่ชๅAPIใใญใฅใกใณใ) ใฏใในใฆ`SecurityBase`ใ็ถๆฟใใฆใใพใใใใใซใใใ**FastAPI**ใฏใใใใOpenAPIใซ็ตฑๅใใๆนๆณใ็ฅใใใจใใงใใพใใ ## ใฉใฎใใใซๅไฝใใใ
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 10.5K bytes - Viewed (0) -
docs/pt/docs/deployment.md
``` #### Raspberry Pi e outras arquiteturas Se vocรช estiver rodando Docker em um Raspberry Pi (que possui um processador ARM) ou qualquer outra arquitetura, vocรช pode criar um `Dockerfile` do zero, baseado em uma imagem base Python (que รฉ multi-arquitetural) e utilizar Uvicorn sozinho. Nesse caso, seu `Dockerfile` poderia parecer assim: ```Dockerfile FROM python:3.7 RUN pip install fastapi uvicorn EXPOSE 80
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Aug 18 16:16:54 GMT 2022 - 16.8K bytes - Viewed (0) -
docs/en/docs/advanced/settings.md
!!! tip If you want something quick to copy and paste, don't use this example, use the last one below. Then, when you create an instance of that `Settings` class (in this case, in the `settings` object), Pydantic will read the environment variables in a case-insensitive way, so, an upper-case variable `APP_NAME` will still be read for the attribute `app_name`.
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu May 02 22:37:31 GMT 2024 - 15.7K bytes - Viewed (0) -
docs/en/docs/tutorial/dependencies/classes-as-dependencies.md
For example: ```Python class Cat: def __init__(self, name: str): self.name = name fluffy = Cat(name="Mr Fluffy") ``` In this case, `fluffy` is an instance of the class `Cat`. And to create `fluffy`, you are "calling" `Cat`. So, a Python class is also a **callable**. Then, in **FastAPI**, you could use a Python class as a dependency.
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 11.4K bytes - Viewed (0) -
README.md
* As the `q` parameter is declared with `= None`, it is optional. * Without the `None` it would be required (as is the body in the case with `PUT`). * For `PUT` requests to `/items/{item_id}`, Read the body as JSON: * Check that it has a required attribute `name` that should be a `str`.
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu May 02 22:37:31 GMT 2024 - 22.6K bytes - Viewed (0) -
docs/en/docs/tutorial/dependencies/dependencies-with-yield.md
Prefer to use the `Annotated` version if possible. ```Python hl_lines="4 12 20" {!> ../../../docs_src/dependencies/tutorial008.py!} ``` And all of them can use `yield`. In this case `dependency_c`, to execute its exit code, needs the value from `dependency_b` (here named `dep_b`) to still be available.
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Sat Feb 24 23:06:37 GMT 2024 - 14.1K bytes - Viewed (0)