skillfed

types-ujson

Typing stubs for ujson

types-ujson v5.10.0.20250822 2.5M downloads/30d#3,048 on PyPI37
Permissive license Apache-2.0 Active released

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-ujson

uv

uv add types-ujson

poetry

poetry add types-ujson

Installing 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

Programming Language :: Python :: 3Typing :: Stubs Only

Tags

type stubs jsontype hints json librarytype checking jsonmypy json annotationsstatic typing json
type-stubstype-checking

More Software Development packages