Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 166 for mouthy (0.19 sec)

  1. docs_src/path_operation_configuration/tutorial002b.py

        users = "users"
    
    
    @app.get("/items/", tags=[Tags.items])
    async def get_items():
        return ["Portal gun", "Plumbus"]
    
    
    @app.get("/users/", tags=[Tags.users])
    async def read_users():
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Sun Jan 23 17:43:04 GMT 2022
    - 323 bytes
    - Viewed (0)
  2. fastapi/datastructures.py

    
    class DefaultPlaceholder:
        """
        You shouldn't use this class directly.
    
        It's used internally to recognize when a default value has been overwritten, even
        if the overridden default value was truthy.
        """
    
        def __init__(self, value: Any):
            self.value = value
    
        def __bool__(self) -> bool:
            return bool(self.value)
    
        def __eq__(self, o: object) -> bool:
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Tue Apr 02 02:48:51 GMT 2024
    - 5.6K bytes
    - Viewed (0)
  3. docs_src/bigger_applications/app_an_py39/routers/users.py

    from fastapi import APIRouter
    
    router = APIRouter()
    
    
    @router.get("/users/", tags=["users"])
    async def read_users():
        return [{"username": "Rick"}, {"username": "Morty"}]
    
    
    @router.get("/users/me", tags=["users"])
    async def read_user_me():
        return {"username": "fakecurrentuser"}
    
    
    @router.get("/users/{username}", tags=["users"])
    async def read_user(username: str):
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Sat Mar 18 12:29:59 GMT 2023
    - 407 bytes
    - Viewed (0)
  4. docs_src/bigger_applications/app_an/routers/users.py

    from fastapi import APIRouter
    
    router = APIRouter()
    
    
    @router.get("/users/", tags=["users"])
    async def read_users():
        return [{"username": "Rick"}, {"username": "Morty"}]
    
    
    @router.get("/users/me", tags=["users"])
    async def read_user_me():
        return {"username": "fakecurrentuser"}
    
    
    @router.get("/users/{username}", tags=["users"])
    async def read_user(username: str):
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Sat Mar 18 12:29:59 GMT 2023
    - 407 bytes
    - Viewed (0)
  5. docs_src/bigger_applications/app/routers/users.py

    from fastapi import APIRouter
    
    router = APIRouter()
    
    
    @router.get("/users/", tags=["users"])
    async def read_users():
        return [{"username": "Rick"}, {"username": "Morty"}]
    
    
    @router.get("/users/me", tags=["users"])
    async def read_user_me():
        return {"username": "fakecurrentuser"}
    
    
    @router.get("/users/{username}", tags=["users"])
    async def read_user(username: str):
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Sun Nov 29 17:32:18 GMT 2020
    - 407 bytes
    - Viewed (0)
  6. architecture-standards/0003-avoid-introducing-Groovy-types-to-public-api.md

    This has also forced plugins written in languages other than Groovy to use Groovy types for some APIs.
    
    When the Kotlin DSL was introduced, we made an effort to add non-Groovy equivalents for all APIs.
    This has been mostly done, but there remain a few hold outs (fixing these are out of scope).
    
    To keep the Groovy DSL ergonomic, we generate methods as necessary from the non-Groovy equivalents.
    
    Doing this provides the following specific benefits:
    Plain Text
    - Registered: Wed Feb 14 11:36:15 GMT 2024
    - Last Modified: Wed Jan 31 14:32:10 GMT 2024
    - 1.8K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/base/Ticker.java

     *
     * <p><b>Warning:</b> this interface can only be used to measure elapsed time, not wall time.
     *
     * @author Kevin Bourrillion
     * @since 10.0 (<a href="https://github.com/google/guava/wiki/Compatibility">mostly
     *     source-compatible</a> since 9.0)
     */
    @GwtCompatible
    @ElementTypesAreNonnullByDefault
    public abstract class Ticker {
      /** Constructor for use by subclasses. */
      protected Ticker() {}
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue May 23 23:27:53 GMT 2023
    - 1.8K bytes
    - Viewed (0)
  8. cni/pkg/nodeagent/cni-watcher.go

    	Netns        string
    	PodName      string
    	PodNamespace string
    	IPs          []IPConfig
    }
    
    // IPConfig contains an interface/gateway/address combo defined for a newly-started pod by CNI.
    // This is "from the horse's mouth" so to speak and will be populated before Kube is informed of the
    // pod IP.
    type IPConfig struct {
    	Interface *int
    	Address   net.IPNet
    	Gateway   net.IP
    }
    
    type CniPluginServer struct {
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Thu Feb 08 18:52:24 GMT 2024
    - 6.1K bytes
    - Viewed (0)
  9. common/config/.yamllint.yml

      key-duplicates: enable
      key-ordering: disable
      line-length: disable
      new-line-at-end-of-file: disable
      new-lines: enable
      octal-values: disable
      quoted-strings: disable
      trailing-spaces: disable
    Others
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Wed Sep 30 23:53:31 GMT 2020
    - 863 bytes
    - Viewed (1)
  10. docs_src/dependencies/tutorial008b_an_py39.py

    from typing import Annotated
    
    from fastapi import Depends, FastAPI, HTTPException
    
    app = FastAPI()
    
    
    data = {
        "plumbus": {"description": "Freshly pickled plumbus", "owner": "Morty"},
        "portal-gun": {"description": "Gun to create portals", "owner": "Rick"},
    }
    
    
    class OwnerError(Exception):
        pass
    
    
    def get_username():
        try:
            yield "Rick"
        except OwnerError as e:
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Tue Dec 26 20:37:34 GMT 2023
    - 775 bytes
    - Viewed (0)
Back to top