types-ujson
Typing stubs for ujson
What it is and what it does
types-ujson is a type stub package that provides type annotations for a JSON serialization library. It allows static type checkers like mypy and pyright to understand and validate the types of function calls and return values in code that uses the library. The stubs are generated from the typeshed project and tested against mypy 1.17.1 and pyright 1.1.404.
This package contains no runtime code—it only provides metadata for type checkers. It is designed for Python 3.9 or later and targets library version 5.10.*. The package is part of the typeshed project, and all fixes and contributions should be directed there.
Use it for:
- Enable mypy or pyright to type-check code that calls the library in a Python 3.9+ project.
- Catch type errors in serialization and deserialization calls before runtime.
- Provide IDE autocomplete and type hints for library methods when using a compatible editor.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Provides type hints for JSON serialization library code, enabling static type checkers like mypy and pyright to validate annotated code.
Yes, if you need static type checking for the corresponding library version 5.10.* and are on Python 3.9+. The package has low install friction and no runtime dependencies. Verify whether your library version includes built-in type stubs before installing.
Install
types-ujson on PyPI
pip
pip install types-ujsonuv
uv add types-ujsonpoetry
poetry add types-ujsonInstalling types-ujson
Before you install
Low friction installation with no runtime dependencies. Actively maintained as part of typeshed; last commit 2026-08-14.
License in practice
Apache-2.0 permissive license allows free use, modification, and distribution in most projects without significant restriction.
Quickstart
pip install types-ujson
import types_ujson
Requires Python >=3.9. Intended for use with the subject package's corresponding library version 5.10.*.
Verify before relying
- Whether version 5.10.* remains in active use given that newer versions include built-in type annotations
- Compatibility with type checkers beyond mypy 1.17.1 and pyright 1.1.404
Package facts
| License | Apache-2.0 (permissive) |
| Python support | supports the current Python release (>=3.9) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | none |
| Maintenance | actively maintained — 357 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 2,471,609/month — #3,048 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: types_ujson-5.10.0.20250822-py3-none-any.whl
Tags
More Software Development packages
Provides backported and experimental type hints…
permissive · top 100 on PyPI
numpyNumPy provides an N-dimensional array object…
permissive · top 100 on PyPI
fastapiFastAPI is a Python web framework for building…
permissive · top 100 on PyPI
annotated-docProvides a way to document function parameters,…
permissive · top 100 on PyPI
typerTyper builds command-line applications from…
permissive · top 1,000 on PyPI
distlibDistlib provides low-level packaging utilities…
permissive · top 1,000 on PyPI
types-simplejsonProvides type annotations for the simplejson…
permissive · top 5,000 on PyPI
ujsonUltra-fast JSON encoding and decoding in pure C…
permissive · top 1,000 on PyPI
types-jsonschemaProvides type hints for the jsonschema package,…
permissive · top 5,000 on PyPI
types-html5libProvides type hints for the html5lib HTML…
permissive · top 5,000 on PyPI
types-docutilsProvides type hints for the docutils library,…
permissive · top 5,000 on PyPI
types-grpcio-reflectionProvides type hints for grpcio-reflection,…
permissive · top 15,000 on PyPI
types-tomlProvides type hints for the toml package,…
permissive · top 1,000 on PyPI
types-jmespathProvides type annotations for the jmespath…
permissive · top 5,000 on PyPI
types-pyflakesProvides type stubs for the pyflakes static…
permissive · top 15,000 on PyPI
types-MarkdownProvides type stubs for the Markdown package,…
permissive · top 5,000 on PyPI