Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 817 for models (0.23 sec)

  1. tests/test_tutorial/test_path_params/test_tutorial005.py

            "info": {"title": "FastAPI", "version": "0.1.0"},
            "paths": {
                "/models/{model_name}": {
                    "get": {
                        "summary": "Get Model",
                        "operationId": "get_model_models__model_name__get",
                        "parameters": [
                            {
                                "required": True,
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Sep 28 04:14:40 GMT 2023
    - 5K bytes
    - Viewed (0)
  2. tests/test_tuples.py

                            },
                        },
                    }
                },
                "/tuple-of-models/": {
                    "post": {
                        "summary": "Post Tuple Of Models",
                        "operationId": "post_tuple_of_models_tuple_of_models__post",
                        "requestBody": {
                            "content": {
                                "application/json": {
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Fri Jul 07 17:12:13 GMT 2023
    - 11.8K bytes
    - Viewed (0)
  3. docs_src/sql_databases/sql_app_py39/crud.py

    from sqlalchemy.orm import Session
    
    from . import models, schemas
    
    
    def get_user(db: Session, user_id: int):
        return db.query(models.User).filter(models.User.id == user_id).first()
    
    
    def get_user_by_email(db: Session, email: str):
        return db.query(models.User).filter(models.User.email == email).first()
    
    
    def get_users(db: Session, skip: int = 0, limit: int = 100):
        return db.query(models.User).offset(skip).limit(limit).all()
    
    
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Jan 07 14:11:31 GMT 2022
    - 1K bytes
    - Viewed (0)
  4. docs/en/docs/advanced/dataclasses.md

    * data validation
    * data serialization
    * data documentation, etc.
    
    This works the same way as with Pydantic models. And it is actually achieved in the same way underneath, using Pydantic.
    
    !!! info
        Keep in mind that dataclasses can't do everything Pydantic models can do.
    
        So, you might still need to use Pydantic models.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 4.1K bytes
    - Viewed (0)
  5. docs/en/docs/tutorial/sql-databases.md

    ## Create the Pydantic models
    
    Now let's check the file `sql_app/schemas.py`.
    
    !!! tip
        To avoid confusion between the SQLAlchemy *models* and the Pydantic *models*, we will have the file `models.py` with the SQLAlchemy models, and the file `schemas.py` with the Pydantic models.
    
        These Pydantic models define more or less a "schema" (a valid data shape).
    
    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)
  6. tests/test_tutorial/test_events/test_tutorial003.py

    from docs_src.events.tutorial003 import (
        app,
        fake_answer_to_everything_ml_model,
        ml_models,
    )
    
    
    def test_events():
        assert not ml_models, "ml_models should be empty"
        with TestClient(app) as client:
            assert ml_models["answer_to_everything"] == fake_answer_to_everything_ml_model
            response = client.get("/predict", params={"x": 2})
            assert response.status_code == 200, response.text
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Fri Jun 30 18:25:16 GMT 2023
    - 3.6K bytes
    - Viewed (0)
  7. api/maven-api-metadata/pom.xml

                  <velocityBasedir>${project.basedir}/../../src/mdo</velocityBasedir>
                  <version>1.2.0</version>
                  <models>
                    <model>src/main/mdo/metadata.mdo</model>
                  </models>
                  <templates>
                    <template>model.vm</template>
                  </templates>
                  <params>
                    <param>packageModelV4=org.apache.maven.api.metadata</param>
    XML
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Thu Apr 25 08:48:58 GMT 2024
    - 3.1K bytes
    - Viewed (0)
  8. maven-api-impl/pom.xml

                  <models>
                    <model>src/main/mdo/maven.mdo</model>
                  </models>
                  <templates>
                    <template>merger.vm</template>
                    <template>transformer.vm</template>
                    <template>reader-stax.vm</template>
                    <template>writer-stax.vm</template>
                    <template>model-version.vm</template>
                  </templates>
                  <params>
    XML
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Thu May 02 15:10:38 GMT 2024
    - 9.8K bytes
    - Viewed (0)
  9. api/maven-api-settings/pom.xml

                  <version>2.0.0</version>
                  <velocityBasedir>${project.basedir}/../../src/mdo</velocityBasedir>
                  <models>
                    <model>src/main/mdo/settings.mdo</model>
                  </models>
                  <templates>
                    <template>model.vm</template>
                  </templates>
                  <params>
                    <param>packageModelV4=org.apache.maven.api.settings</param>
    XML
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Thu Apr 25 08:48:58 GMT 2024
    - 3.2K bytes
    - Viewed (0)
  10. maven-api-impl/src/test/remote-repo/org/apache/maven/its/plugins/maven-it-plugin/0.1/maven-it-plugin-0.1.jar

    Does nothing. false true false false false true generate-sources org.apache.maven.plugin.coreit.CMojo java per-lookup once-per-session models java.lang.String[] false true version java.lang.String false true ${version} xpp3-writer Does nothing. false true false false false true generate-sources org.apache.maven.plugin.coreit.BMojo java per-lookup once-per-session models java.lang.String[] false true version java.lang.String false true ${version} org.apache.maven maven-plugin-api jar 2.0 org/apache/m...
    Archive
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Thu May 02 15:10:38 GMT 2024
    - 13.2K bytes
    - Viewed (0)
Back to top