Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for Seys (0.14 sec)

  1. tests/test_orjson_response_class.py

    app = FastAPI(default_response_class=ORJSONResponse)
    
    
    @app.get("/orjson_non_str_keys")
    def get_orjson_non_str_keys():
        key = quoted_name(value="msg", quote=False)
        return {key: "Hello World", 1: 1}
    
    
    client = TestClient(app)
    
    
    def test_orjson_non_str_keys():
        with client:
            response = client.get("/orjson_non_str_keys")
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Sep 02 10:17:31 GMT 2022
    - 562 bytes
    - Viewed (0)
  2. .github/actions/people/app/main.py

            authors=authors,
            skip_users=skip_users,
        )
    
        tiers = get_individual_sponsors(settings=settings)
        keys = list(tiers.keys())
        keys.sort(reverse=True)
        sponsors = []
        for key in keys:
            sponsor_group = []
            for login, sponsor in tiers[key].items():
                sponsor_group.append(
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Mar 26 17:38:21 GMT 2024
    - 19.2K bytes
    - Viewed (1)
  3. scripts/docs.py

                continue
            code = lang_path.name
            languages.append({code: f"/{code}/"})
        for lang_dict in languages:
            code = list(lang_dict.keys())[0]
            url = lang_dict[code]
            if code not in local_language_names:
                print(
                    f"Missing language name for: {code}, "
                    "update it in docs/language_names.yml"
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Mon Jan 22 19:26:14 GMT 2024
    - 10.9K bytes
    - Viewed (1)
  4. fastapi/responses.py

        """
    
        def render(self, content: Any) -> bytes:
            assert orjson is not None, "orjson must be installed to use ORJSONResponse"
            return orjson.dumps(
                content, option=orjson.OPT_NON_STR_KEYS | orjson.OPT_SERIALIZE_NUMPY
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Wed Oct 18 12:36:40 GMT 2023
    - 1.7K bytes
    - Viewed (0)
  5. bin/diff_yaml.py

        common = k0s.intersection(k1s)
    
        return added, removed, common
    
    
    def drop_keys(res, k1, k2):
        if k2 in res[k1]:
            del res[k1][k2]
    
    
    def normalize_configmap(res):
        try:
            if res['kind'] != "ConfigMap":
                return res
    
            data = res['data']
    
            # some times keys are yamls...
            # so parse them
            for k in data:
                try:
    Python
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Wed Mar 03 16:14:57 GMT 2021
    - 4.5K bytes
    - Viewed (0)
  6. fastapi/encoders.py

        if isinstance(obj, UndefinedType):
            return None
        if isinstance(obj, dict):
            encoded_dict = {}
            allowed_keys = set(obj.keys())
            if include is not None:
                allowed_keys &= set(include)
            if exclude is not None:
                allowed_keys -= set(exclude)
            for key, value in obj.items():
                if (
                    (
                        not sqlalchemy_safe
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 21:56:59 GMT 2024
    - 10.8K bytes
    - Viewed (0)
  7. fastapi/_compat.py

        Tuple: tuple,
        tuple: tuple,
        Set: set,
        set: set,
        FrozenSet: frozenset,
        frozenset: frozenset,
        Deque: deque,
        deque: deque,
    }
    
    sequence_types = tuple(sequence_annotation_to_type.keys())
    
    if PYDANTIC_V2:
        from pydantic import PydanticSchemaGenerationError as PydanticSchemaGenerationError
        from pydantic import TypeAdapter
        from pydantic import ValidationError as ValidationError
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:40:57 GMT 2024
    - 22.6K bytes
    - Viewed (0)
Back to top