Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 26 for Python (0.47 sec)

  1. fastapi/security/api_key.py

        ## Usage
    
        Create an instance object and use that object as the dependency in `Depends()`.
    
        The dependency result will be a string containing the key value.
    
        ## Example
    
        ```python
        from fastapi import Depends, FastAPI
        from fastapi.security import APIKeyQuery
    
        app = FastAPI()
    
        query_scheme = APIKeyQuery(name="api_key")
    
    
        @app.get("/items/")
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Tue Apr 23 22:29:18 GMT 2024
    - 9.1K bytes
    - Viewed (0)
  2. fastapi/dependencies/utils.py

    from typing_extensions import Annotated, get_args, get_origin
    
    multipart_not_installed_error = (
        'Form data requires "python-multipart" to be installed. \n'
        'You can install "python-multipart" with: \n\n'
        "pip install python-multipart\n"
    )
    multipart_incorrect_install_error = (
        'Form data requires "python-multipart" to be installed. '
        'It seems you installed "multipart" instead. \n'
        'You can remove "multipart" with: \n\n'
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Tue Apr 02 02:52:56 GMT 2024
    - 29.5K bytes
    - Viewed (0)
  3. tests/test_forms_from_non_typing_sequences.py

    app = FastAPI()
    
    
    @app.post("/form/python-list")
    def post_form_param_list(items: list = Form()):
        return items
    
    
    @app.post("/form/python-set")
    def post_form_param_set(items: set = Form()):
        return items
    
    
    @app.post("/form/python-tuple")
    def post_form_param_tuple(items: tuple = Form()):
        return items
    
    
    client = TestClient(app)
    
    
    def test_python_list_param_as_form():
        response = client.post(
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Fri May 13 23:38:22 GMT 2022
    - 1.2K bytes
    - Viewed (0)
  4. tensorflow/__init__.py

    # module.
    
    # pylint: disable=g-bad-import-order
    from tensorflow.python import pywrap_tensorflow  # pylint: disable=unused-import
    
    from tensorflow.python.platform import flags  # pylint: disable=g-import-not-at-top
    from tensorflow.python.platform import app  # pylint: disable=g-import-not-at-top
    app.flags = flags
    
    # These symbols appear because we import the python package which
    # in turn imports from tensorflow.core and tensorflow.python. They
    Python
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Tue Sep 28 21:37:05 GMT 2021
    - 1.4K bytes
    - Viewed (0)
  5. tensorflow/api_template_v1.__init__.py

    # pylint: disable=g-bad-import-order,protected-access,g-import-not-at-top
    from tensorflow.python import pywrap_tensorflow  # pylint: disable=unused-import
    from tensorflow.python.tools import module_util as _module_util
    from tensorflow.python.platform import tf_logging as _logging
    from tensorflow.python.util.lazy_loader import LazyLoader as _LazyLoader
    from tensorflow.python.util.lazy_loader import KerasLazyLoader as _KerasLazyLoader
    
    # API IMPORTS PLACEHOLDER
    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)
  6. scripts/docs.py

        if config != updated_config:
            typer.secho(
                "docs/en/mkdocs.yml outdated from docs/language_names.yml, "
                "update language_names.yml and run "
                "python ./scripts/docs.py update-languages",
                color=typer.colors.RED,
            )
            raise typer.Abort()
        typer.echo("Valid mkdocs.yml ✅")
    
    
    @app.command()
    def verify_docs():
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Mon Jan 22 19:26:14 GMT 2024
    - 10.9K bytes
    - Viewed (1)
  7. configure.py

      python_lib_path = environ_cp.get('PYTHON_LIB_PATH')
      if not python_lib_path:
        python_lib_paths = get_python_path(environ_cp, python_bin_path)
        if environ_cp.get('USE_DEFAULT_PYTHON_LIB_PATH') == '1':
          python_lib_path = python_lib_paths[0]
        else:
          print('Found possible Python library paths:\n  %s' %
                '\n  '.join(python_lib_paths))
          default_python_lib_path = python_lib_paths[0]
    Python
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Mon Apr 15 18:25:36 GMT 2024
    - 53.8K bytes
    - Viewed (0)
  8. fastapi/security/oauth2.py

    from fastapi.security.utils import get_authorization_scheme_param
    from starlette.requests import Request
    from starlette.status import HTTP_401_UNAUTHORIZED, HTTP_403_FORBIDDEN
    
    # TODO: import from typing when deprecating Python 3.9
    from typing_extensions import Annotated, Doc
    
    
    class OAuth2PasswordRequestForm:
        """
        This is a dependency class to collect the `username` and `password` as form data
        for an OAuth2 password flow.
    
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Tue Apr 02 02:48:51 GMT 2024
    - 21.1K bytes
    - Viewed (1)
  9. tensorflow/api_template.__init__.py

    from tensorflow.python import pywrap_tensorflow as _pywrap_tensorflow  # pylint: disable=unused-import
    from tensorflow.python.tools import module_util as _module_util
    from tensorflow.python.util.lazy_loader import KerasLazyLoader as _KerasLazyLoader
    
    # Make sure code inside the TensorFlow codebase can use tf2.enabled() at import.
    _os.environ["TF2_BEHAVIOR"] = "1"
    from tensorflow.python import tf2 as _tf2
    _tf2.enable()
    
    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)
  10. fastapi/security/http.py

        `username` and the `password`.
    
        Read more about it in the
        [FastAPI docs for HTTP Basic Auth](https://fastapi.tiangolo.com/advanced/security/http-basic-auth/).
    
        ## Example
    
        ```python
        from typing import Annotated
    
        from fastapi import Depends, FastAPI
        from fastapi.security import HTTPBasic, HTTPBasicCredentials
    
        app = FastAPI()
    
        security = HTTPBasic()
    
    
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Fri Apr 19 15:29:38 GMT 2024
    - 13.2K bytes
    - Viewed (0)
Back to top