Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 13 for Tilden (0.22 sec)

  1. docs_src/query_params_str_validations/tutorial014_an_py39.py

    from fastapi import FastAPI, Query
    
    app = FastAPI()
    
    
    @app.get("/items/")
    async def read_items(
        hidden_query: Annotated[Union[str, None], Query(include_in_schema=False)] = None,
    ):
        if hidden_query:
            return {"hidden_query": hidden_query}
        else:
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Tue Mar 26 16:56:53 GMT 2024
    - 344 bytes
    - Viewed (0)
  2. tensorflow/api_template.__init__.py

      else:
        importlib.import_module("keras.src.optimizers")
    except (ImportError, AttributeError):
      pass
    
    del importlib
    
    # Delete modules that should be hidden from dir().
    # Don't fail if these modules are not available.
    # For e.g. this file will be originally placed under tensorflow/_api/v1 which
    # does not have "python", "core" directories. Then, it will be copied
    Python
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Tue Mar 05 06:27:59 GMT 2024
    - 6.7K bytes
    - Viewed (3)
  3. tests/test_tutorial/test_query_params_str_validations/test_tutorial014.py

    client = TestClient(app)
    
    
    def test_hidden_query():
        response = client.get("/items?hidden_query=somevalue")
        assert response.status_code == 200, response.text
        assert response.json() == {"hidden_query": "somevalue"}
    
    
    def test_no_hidden_query():
        response = client.get("/items")
        assert response.status_code == 200, response.text
        assert response.json() == {"hidden_query": "Not found"}
    
    
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Fri Jun 30 18:25:16 GMT 2023
    - 2.9K bytes
    - Viewed (0)
  4. tests/test_tutorial/test_query_params_str_validations/test_tutorial014_py310.py

        client = TestClient(app)
        return client
    
    
    @needs_py310
    def test_hidden_query(client: TestClient):
        response = client.get("/items?hidden_query=somevalue")
        assert response.status_code == 200, response.text
        assert response.json() == {"hidden_query": "somevalue"}
    
    
    @needs_py310
    def test_no_hidden_query(client: TestClient):
        response = client.get("/items")
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Fri Jun 30 18:25:16 GMT 2023
    - 3.1K bytes
    - Viewed (0)
  5. docs_src/query_params_str_validations/tutorial014_an_py310.py

    from fastapi import FastAPI, Query
    
    app = FastAPI()
    
    
    @app.get("/items/")
    async def read_items(
        hidden_query: Annotated[str | None, Query(include_in_schema=False)] = None,
    ):
        if hidden_query:
            return {"hidden_query": hidden_query}
        else:
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Tue Mar 26 16:56:53 GMT 2024
    - 331 bytes
    - Viewed (0)
  6. docs_src/query_params_str_validations/tutorial014.py

    from fastapi import FastAPI, Query
    
    app = FastAPI()
    
    
    @app.get("/items/")
    async def read_items(
        hidden_query: Union[str, None] = Query(default=None, include_in_schema=False),
    ):
        if hidden_query:
            return {"hidden_query": hidden_query}
        else:
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Tue Mar 26 16:56:53 GMT 2024
    - 330 bytes
    - Viewed (0)
  7. tests/test_tutorial/test_query_params_str_validations/test_tutorial014_an.py

    client = TestClient(app)
    
    
    def test_hidden_query():
        response = client.get("/items?hidden_query=somevalue")
        assert response.status_code == 200, response.text
        assert response.json() == {"hidden_query": "somevalue"}
    
    
    def test_no_hidden_query():
        response = client.get("/items")
        assert response.status_code == 200, response.text
        assert response.json() == {"hidden_query": "Not found"}
    
    
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Fri Jun 30 18:25:16 GMT 2023
    - 2.9K bytes
    - Viewed (0)
  8. tests/test_tutorial/test_query_params_str_validations/test_tutorial014_an_py310.py

        client = TestClient(app)
        return client
    
    
    @needs_py310
    def test_hidden_query(client: TestClient):
        response = client.get("/items?hidden_query=somevalue")
        assert response.status_code == 200, response.text
        assert response.json() == {"hidden_query": "somevalue"}
    
    
    @needs_py310
    def test_no_hidden_query(client: TestClient):
        response = client.get("/items")
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Fri Jun 30 18:25:16 GMT 2023
    - 3.1K bytes
    - Viewed (0)
  9. tests/test_tutorial/test_query_params_str_validations/test_tutorial014_an_py39.py

        client = TestClient(app)
        return client
    
    
    @needs_py310
    def test_hidden_query(client: TestClient):
        response = client.get("/items?hidden_query=somevalue")
        assert response.status_code == 200, response.text
        assert response.json() == {"hidden_query": "somevalue"}
    
    
    @needs_py310
    def test_no_hidden_query(client: TestClient):
        response = client.get("/items")
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Fri Jun 30 18:25:16 GMT 2023
    - 3.1K bytes
    - Viewed (0)
  10. tensorflow/api_template_v1.__init__.py

    if _os.getenv("TF_PLUGGABLE_DEVICE_LIBRARY_PATH", ""):
      _ll.load_pluggable_device_library(
          _os.getenv("TF_PLUGGABLE_DEVICE_LIBRARY_PATH")
      )
    
    # Delete modules that should be hidden from dir().
    # Don't fail if these modules are not available.
    # For e.g. this file will be originally placed under tensorflow/_api/v1 which
    # does not have "python", "core" directories. Then, it will be copied
    Python
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Tue Jan 23 02:14:00 GMT 2024
    - 7.4K bytes
    - Viewed (0)
Back to top