Search Options

Results per page
Sort
Preferred Languages
Advance

Results 131 - 140 of 389 for doprint (0.05 sec)

  1. docs_src/dependencies/tutorial008c_an_py39.py

    from fastapi import Depends, FastAPI, HTTPException
    
    app = FastAPI()
    
    
    class InternalError(Exception):
        pass
    
    
    def get_username():
        try:
            yield "Rick"
        except InternalError:
            print("Oops, we didn't raise again, Britney 😱")
    
    
    @app.get("/items/{item_id}")
    def get_item(item_id: str, username: Annotated[str, Depends(get_username)]):
        if item_id == "portal-gun":
            raise InternalError(
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat Feb 24 23:06:37 UTC 2024
    - 700 bytes
    - Viewed (0)
  2. test-site/activator

      Command:
      ui                 Start the Activator UI
      new [name] [template-id]  Create a new project with [name] using template [template-id]
      list-templates     Print all available template names
      -h | -help         Print this message
    
      Options:
      -v | -verbose      Make this runner chattier
      -d | -debug        Set sbt log level to debug
    Registered: Fri Nov 08 09:08:12 UTC 2024
    - Last Modified: Mon Apr 20 08:41:37 UTC 2015
    - 9.3K bytes
    - Viewed (0)
  3. helm-releases/minio-3.5.3.tgz

    "minio.deployment.apiVersion" -}} {{- if semverCompare "<1.9-0" .Capabilities.KubeVersion.Version -}} {{- print "apps/v1beta2" -}} {{- else -}} {{- print "apps/v1" -}} {{- end -}} {{- end -}} {{/* Return the appropriate apiVersion for statefulset. */}} {{- define "minio.statefulset.apiVersion" -}} {{- if semverCompare "<1.16-0" .Capabilities.KubeVersion.Version -}} {{- print "apps/v1beta2" -}} {{- else -}} {{- print "apps/v1" -}} {{- end -}} {{- end -}} {{/* Return the appropriate apiVersion for ingress. */}}...
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sun Feb 13 23:43:44 UTC 2022
    - 15.4K bytes
    - Viewed (0)
  4. docs_src/extra_models/tutorial002.py

        return "supersecret" + raw_password
    
    
    def fake_save_user(user_in: UserIn):
        hashed_password = fake_password_hasher(user_in.password)
        user_in_db = UserInDB(**user_in.dict(), hashed_password=hashed_password)
        print("User saved! ..not really")
        return user_in_db
    
    
    @app.post("/user/", response_model=UserOut)
    async def create_user(user_in: UserIn):
        user_saved = fake_save_user(user_in)
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat May 14 11:59:59 UTC 2022
    - 824 bytes
    - Viewed (0)
  5. ci/official/containers/linux_arm64/devel.usertools/wheel_verification.bats

    }
    
    @test "Wheel conforms to upstream size limitations" {
        WHEEL_MEGABYTES=$(stat --format %s "$TF_WHEEL" | awk '{print int($1/(1024*1024))}')
        # Googlers: search for "test_tf_whl_size"
        case "$TF_WHEEL" in
            # CPU:
            *cpu*manylinux*) LARGEST_OK_SIZE=220 ;;
            # GPU:
            *manylinux*)     LARGEST_OK_SIZE=580 ;;
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Tue Jan 23 02:14:00 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  6. tests/test_custom_swagger_ui_redirect.py

        response = client.get("/docs")
        assert response.status_code == 200, response.text
        assert response.headers["content-type"] == "text/html; charset=utf-8"
        assert "swagger-ui-dist" in response.text
        print(client.base_url)
        assert (
            f"oauth2RedirectUrl: window.location.origin + '{swagger_ui_oauth2_redirect_url}'"
            in response.text
        )
    
    
    def test_swagger_ui_oauth2_redirect():
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Wed Apr 08 04:37:38 UTC 2020
    - 1.1K bytes
    - Viewed (0)
  7. helm-releases/minio-3.4.2.tgz

    ">=1.4-0, <1.7-0" .Capabilities.KubeVersion.Version -}} {{- print "extensions/v1beta1" -}} {{- else if semverCompare "^1.7-0" .Capabilities.KubeVersion.Version -}} {{- print "networking.k8s.io/v1beta1" -}} {{- end -}} {{- end -}} {{/* Return the appropriate apiVersion for deployment. */}} {{- define "minio.deployment.apiVersion" -}} {{- if semverCompare "<1.9-0" .Capabilities.KubeVersion.Version -}} {{- print "apps/v1beta2" -}} {{- else -}} {{- print "apps/v1" -}} {{- end -}} {{- end -}} {{/* Return the...
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Dec 21 02:58:25 UTC 2021
    - 15.2K bytes
    - Viewed (0)
  8. helm-releases/minio-3.4.4.tgz

    ">=1.4-0, <1.7-0" .Capabilities.KubeVersion.Version -}} {{- print "extensions/v1beta1" -}} {{- else if semverCompare "^1.7-0" .Capabilities.KubeVersion.Version -}} {{- print "networking.k8s.io/v1beta1" -}} {{- end -}} {{- end -}} {{/* Return the appropriate apiVersion for deployment. */}} {{- define "minio.deployment.apiVersion" -}} {{- if semverCompare "<1.9-0" .Capabilities.KubeVersion.Version -}} {{- print "apps/v1beta2" -}} {{- else -}} {{- print "apps/v1" -}} {{- end -}} {{- end -}} {{/* Return the...
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Dec 31 04:21:24 UTC 2021
    - 15.2K bytes
    - Viewed (0)
  9. helm-releases/minio-3.4.5.tgz

    ">=1.4-0, <1.7-0" .Capabilities.KubeVersion.Version -}} {{- print "extensions/v1beta1" -}} {{- else if semverCompare "^1.7-0" .Capabilities.KubeVersion.Version -}} {{- print "networking.k8s.io/v1beta1" -}} {{- end -}} {{- end -}} {{/* Return the appropriate apiVersion for deployment. */}} {{- define "minio.deployment.apiVersion" -}} {{- if semverCompare "<1.9-0" .Capabilities.KubeVersion.Version -}} {{- print "apps/v1beta2" -}} {{- else -}} {{- print "apps/v1" -}} {{- end -}} {{- end -}} {{/* Return the...
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Jan 05 19:32:55 UTC 2022
    - 15.2K bytes
    - Viewed (0)
  10. helm-releases/minio-3.3.2.tgz

    ">=1.4-0, <1.7-0" .Capabilities.KubeVersion.Version -}} {{- print "extensions/v1beta1" -}} {{- else if semverCompare "^1.7-0" .Capabilities.KubeVersion.Version -}} {{- print "networking.k8s.io/v1beta1" -}} {{- end -}} {{- end -}} {{/* Return the appropriate apiVersion for deployment. */}} {{- define "minio.deployment.apiVersion" -}} {{- if semverCompare "<1.9-0" .Capabilities.KubeVersion.Version -}} {{- print "apps/v1beta2" -}} {{- else -}} {{- print "apps/v1" -}} {{- end -}} {{- end -}} {{/* Return the...
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Dec 11 17:26:01 UTC 2021
    - 14.6K bytes
    - Viewed (0)
Back to top