- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 1,378 for ujson (0.02 seconds)
-
fastapi/responses.py
**Note**: `ujson` is not included with FastAPI and must be installed separately, e.g. `pip install ujson`. """ def render(self, content: Any) -> bytes: assert ujson is not None, "ujson must be installed to use UJSONResponse" return ujson.dumps(content, ensure_ascii=False).encode("utf-8") @deprecated(Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sun Mar 01 09:21:52 GMT 2026 - 3.6K bytes - Click Count (0) -
tests/test_deprecated_responses.py
response = client.get("/items") assert response.status_code == 200 assert response.json() == {"name": "widget", "price": 9.99} def test_orjson_response_emits_deprecation_warning(): with pytest.warns(FastAPIDeprecationWarning, match="ORJSONResponse is deprecated"): ORJSONResponse(content={"hello": "world"}) # UJSON def _make_ujson_app() -> FastAPI: with warnings.catch_warnings():
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sun Feb 22 16:34:59 GMT 2026 - 2K bytes - Click Count (0) -
pyproject.toml
"pillow >=11.3.0", "python-slugify >=8.0.4", "pyyaml >=5.3.1,<7.0.0", "typer >=0.21.1", ] docs-tests = [ "httpx >=0.23.0,<1.0.0", "ruff >=0.14.14", # For UJSONResponse "ujson >=5.8.0", # For ORJSONResponse "orjson >=3.9.3", ] github-actions = [ "httpx >=0.27.0,<1.0.0", "pydantic >=2.9.0,<3.0.0", "pydantic-settings >=2.1.0,<3.0.0",
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Mon Mar 23 12:36:49 GMT 2026 - 10.3K bytes - Click Count (0) -
docs/uk/docs/index.md
* **Заснований на стандартах**: базується на (і повністю сумісний з) відкритими стандартами для API: [OpenAPI](https://github.com/OAI/OpenAPI-Specification) (раніше відомий як Swagger) та [JSON Schema](https://json-schema.org/). <small>* оцінка на основі тестів, проведених внутрішньою командою розробників, що створює продакшн-застосунки.</small> ## Спонсори { #sponsors } <!-- sponsors -->
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 19 18:27:41 GMT 2026 - 29.1K bytes - Click Count (0) -
docs/de/docs/index.md
* **Standards-basiert**: Basierend auf (und vollständig kompatibel mit) den offenen Standards für APIs: [OpenAPI](https://github.com/OAI/OpenAPI-Specification) (früher bekannt als Swagger) und [JSON Schema](https://json-schema.org/). <small>* Schätzung basierend auf Tests, die von einem internen Entwicklungsteam durchgeführt wurden, das Produktionsanwendungen erstellt.</small> ## Sponsoren { #sponsors } <!-- sponsors -->
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 19 17:58:09 GMT 2026 - 23.6K bytes - Click Count (1) -
docs/ru/docs/index.md
* **На основе стандартов**: Основан на открытых стандартах API и полностью совместим с ними: [OpenAPI](https://github.com/OAI/OpenAPI-Specification) (ранее известный как Swagger) и [JSON Schema](https://json-schema.org/). <small>* оценка на основе тестов внутренней команды разработчиков, создающих продакшн-приложения.</small> ## Спонсоры { #sponsors } <!-- sponsors -->
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 19 17:56:20 GMT 2026 - 30.4K bytes - Click Count (0) -
docs/zh/docs/index.md
* 自动补全。 * 类型检查。 * 数据校验: * 当数据无效时自动生成清晰的错误信息。 * 即便是多层嵌套的 JSON 对象也会进行校验。 * <dfn title="也被称为:序列化、解析、编组">转换</dfn>输入数据:从网络读取到 Python 数据和类型。读取来源: * JSON。 * 路径参数。 * 查询参数。 * Cookies。 * Headers。 * Forms。 * Files。 * <dfn title="也被称为:序列化、解析、编组">转换</dfn>输出数据:从 Python 数据和类型转换为网络数据(JSON): * 转换 Python 类型(`str`、`int`、`float`、`bool`、`list` 等)。 * `datetime` 对象。Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 17:06:37 GMT 2026 - 20.7K bytes - Click Count (0) -
docs/ko/docs/index.md
* 데이터 검증: * 데이터가 유효하지 않을 때 자동으로 생성하는 명확한 에러. * 깊이 중첩된 JSON 객체에 대한 유효성 검사. * 입력 데이터 <dfn title="다른 말로는: 직렬화, 파싱, 마샬링">변환</dfn>: 네트워크에서 파이썬 데이터 및 타입으로 전송. 읽을 수 있는 것들: * JSON. * 경로 매개변수. * 쿼리 매개변수. * 쿠키. * 헤더. * 폼(Forms). * 파일. * 출력 데이터 <dfn title="다른 말로는: 직렬화, 파싱, 마샬링">변환</dfn>: 파이썬 데이터 및 타입을 네트워크 데이터로 전환(JSON 형식으로): * 파이썬 타입 변환 (`str`, `int`, `float`, `bool`, `list`, 등).Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 14:06:26 GMT 2026 - 23.4K bytes - Click Count (0) -
docs/tr/docs/index.md
* **Standardlara dayalı**: API'lar için açık standartlara dayalıdır (ve tamamen uyumludur); [OpenAPI](https://github.com/OAI/OpenAPI-Specification) (önceden Swagger olarak biliniyordu) ve [JSON Schema](https://json-schema.org/). <small>* tahmin, production uygulamalar geliştiren dahili bir geliştirme ekibinin yaptığı testlere dayanmaktadır.</small> ## Sponsorlar { #sponsors } <!-- sponsors -->
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 07:53:17 GMT 2026 - 23.2K bytes - Click Count (0) -
docs/en/docs/index.md
* For `PUT` requests to `/items/{item_id}`, read the body as JSON: * Check that it has a required attribute `name` that should be a `str`. * Check that it has a required attribute `price` that has to be a `float`. * Check that it has an optional attribute `is_offer`, that should be a `bool`, if present. * All this would also work for deeply nested JSON objects. * Convert from and to JSON automatically.Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sat Mar 07 09:29:03 GMT 2026 - 21.4K bytes - Click Count (0)