Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 29 for Modules (0.15 sec)

  1. tests/test_tutorial/test_sql_databases/test_sql_databases_middleware_py310.py

    import os
    from pathlib import Path
    
    import pytest
    from dirty_equals import IsDict
    from fastapi.testclient import TestClient
    
    from ...utils import needs_py310, needs_pydanticv1
    
    
    @pytest.fixture(scope="module")
    def client(tmp_path_factory: pytest.TempPathFactory):
        tmp_path = tmp_path_factory.mktemp("data")
        cwd = os.getcwd()
        os.chdir(tmp_path)
        test_db = Path("./sql_app.db")
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Wed Mar 13 19:07:10 GMT 2024
    - 16.5K bytes
    - Viewed (0)
  2. docs/fr/docs/async.md

    ### Concurrence + Parallélisme : Web + Machine Learning
    
    Avec **FastAPI** vous pouvez bénéficier de la concurrence qui est très courante en développement web (c'est l'attrait principal de NodeJS).
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sun Mar 31 23:52:53 GMT 2024
    - 24K bytes
    - Viewed (0)
  3. docs/em/docs/tutorial/bigger-applications.md

    🎏 📁 📊 ⏮️ 🏤:
    
    ```
    .
    ├── app                  # "app" is a Python package
    │   ├── __init__.py      # this file makes "app" a "Python package"
    │   ├── main.py          # "main" module, e.g. import app.main
    │   ├── dependencies.py  # "dependencies" module, e.g. import app.dependencies
    │   └── routers          # "routers" is a "Python subpackage"
    │   │   ├── __init__.py  # makes "routers" a "Python subpackage"
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 15.6K bytes
    - Viewed (0)
  4. docs/en/docs/tutorial/sql-databases.md

        ├── database.py
        ├── main.py
        ├── models.py
        └── schemas.py
    ```
    
    The file `__init__.py` is just an empty file, but it tells Python that `sql_app` with all its modules (Python files) is a package.
    
    Now let's see what each file/module does.
    
    ## Install `SQLAlchemy`
    
    First you need to install `SQLAlchemy`:
    
    <div class="termy">
    
    ```console
    $ pip install sqlalchemy
    
    ---> 100%
    ```
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 29.6K bytes
    - Viewed (0)
  5. docs/fr/docs/features.md

    * Documentation automatique des modèles de données avec <a href="http://json-schema.org/" class="external-link" target="_blank"><strong>JSON Schema</strong></a> (comme OpenAPI est aussi basée sur JSON Schema).
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 11.1K bytes
    - Viewed (0)
  6. docs/vi/docs/index.md

    </div>
    
    <details markdown="1">
    <summary>Về lệnh <code>uvicorn main:app --reload</code>...</summary>
    
    Lệnh `uvicorn main:app` tham chiếu tới những thành phần sau:
    
    * `main`: tệp tin `main.py` (một Python "module").
    * `app`: object được tạo trong tệp tin `main.py` tại dòng `app = FastAPI()`.
    * `--reload`: chạy lại server sau khi code thay đổi. Chỉ sử dụng trong quá trình phát triển.
    
    </details>
    
    ### Kiểm tra
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Mon Apr 29 05:18:04 GMT 2024
    - 21.9K bytes
    - Viewed (0)
  7. docs/yo/docs/index.md

    ```
    
    </div>
    
    <details markdown="1">
    <summary>Nipa aṣẹ kóòdù náà <code>uvicorn main:app --reload</code>...</summary>
    
    Àṣẹ `uvicorn main:app` ń tọ́ka sí:
    
    * `main`: fáìlì náà 'main.py' (Python "module").
    * `app` jẹ object( i.e. nǹkan) tí a ṣẹ̀dá nínú `main.py` pẹ̀lú ilà `app = FastAPI()`.
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Mon Apr 29 05:18:04 GMT 2024
    - 24.1K bytes
    - Viewed (0)
  8. docs/fr/docs/tutorial/first-steps.md

    Vous pouvez aussi retourner des models **Pydantic** (qui seront détaillés plus tard).
    
    Il y a de nombreux autres objets et modèles qui seront automatiquement convertis en JSON. Essayez d'utiliser vos favoris, il est fort probable qu'ils soient déjà supportés.
    
    ## Récapitulatif
    
    * Importez `FastAPI`.
    * Créez une instance d'`app`.
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Wed Sep 27 20:52:31 GMT 2023
    - 10.3K bytes
    - Viewed (0)
  9. docs/fr/docs/index.md

        * les types Python (`str`, `int`, `float`, `bool`, `list`, etc).
        * les objets `datetime`.
        * les objets `UUID`.
        * les modèles de base de données.
        * ... et beaucoup plus.
    * La documentation API interactive automatique, avec 2 interfaces utilisateur au choix :
        * Swagger UI.
        * ReDoc.
    
    ---
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Mon Apr 29 05:18:04 GMT 2024
    - 22K bytes
    - Viewed (0)
  10. docs/en/docs/how-to/sql-databases-peewee.md

        ├── __init__.py
        ├── crud.py
        ├── database.py
        ├── main.py
        └── schemas.py
    ```
    
    This is almost the same structure as we had for the SQLAlchemy tutorial.
    
    Now let's see what each file/module does.
    
    ## Create the Peewee parts
    
    Let's refer to the file `sql_app/database.py`.
    
    ### The standard Peewee code
    
    Let's first check all the normal Peewee code, create a Peewee database:
    
    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)
Back to top