types-simplejson
Typing stubs for simplejson
What it is and what it does
types-simplejson is a type stub package that provides type annotations for the simplejson library. It allows static type checkers like mypy and pyright to understand the types of simplejson functions and classes, catching type errors in code that uses simplejson before runtime. The package is generated from the typeshed project and tracks simplejson version 4.1.*.
Type stubs are metadata-only packages that don't execute code themselves—they exist solely to inform type checkers about the shape and types of another library's API. This package has no runtime dependencies and is tested against mypy 2.3.0 and pyright 1.1.411.
Use it for:
- Enable mypy or pyright to type-check code that calls simplejson.dumps() or simplejson.loads().
- Catch type mismatches in JSON serialization workflows before deployment.
- Provide IDE autocomplete and inline type hints when working with simplejson in a type-aware editor.
- Validate that JSON data structures conform to expected schemas in a typed codebase.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Provides type annotations for the simplejson package, enabling type checkers like mypy and pyright to validate code that uses simplejson for JSON serialization and deserialization.
Yes, if you use simplejson and want static type checking. It has no runtime cost, no dependencies, and is actively maintained as part of typeshed. Install it alongside simplejson in projects that enforce type safety. Skip it only if you don't use a type checker or don't use simplejson.
Install
types-simplejson on PyPI
pip
pip install types-simplejsonuv
uv add types-simplejsonpoetry
poetry add types-simplejsonInstalling types-simplejson
Before you install
Low friction installation with no runtime dependencies. Actively maintained as part of the typeshed project, with recent releases and a current status.
License in practice
Licensed under Apache-2.0 (permissive), allowing use in both open-source and proprietary projects without significant restrictions.
Quickstart
pip install types-simplejson
import simplejson
data = simplejson.dumps({"key": "value"})
Requires Python 3.10 or later.
Verify before relying
- Whether this package is automatically discovered by type checkers or requires explicit configuration in pyproject.toml or similar.
- Coverage completeness for all simplejson APIs in version 4.1.*.
Package facts
| License | Apache-2.0 (permissive) |
| Python support | supports the current Python release (>=3.10) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | none |
| Maintenance | actively maintained — 21 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 3,669,622/month — #2,533 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: types_simplejson-4.1.0.20260724-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-jmespathProvides type annotations for the jmespath…
permissive · top 5,000 on PyPI
types-ujsonProvides type hints for JSON serialization…
permissive · top 5,000 on PyPI
types-regexProvides type annotations for the regex…
permissive · top 5,000 on PyPI
types-jsonschemaProvides type hints for the jsonschema package,…
permissive · top 5,000 on PyPI
types-jwcryptoProvides type annotations for the jwcrypto…
permissive · top 15,000 on PyPI
types-pyflakesProvides type stubs for the pyflakes static…
permissive · top 15,000 on PyPI
types-boltonsProvides type stubs for the boltons library,…
permissive · top 15,000 on PyPI
types-mypy-extensionsProvides type stubs for mypy-extensions,…
permissive · top 15,000 on PyPI
types-objgraphProvides type annotations for the objgraph…
permissive · top 15,000 on PyPI
types-xmltodictProvides type annotations for the xmltodict…
permissive · top 5,000 on PyPI