types-orjson
Typing stubs for orjson
Decision gist · record as of 2026-08-14
No, unless you are using orjson older than 3.6.1. For orjson 3.6.1 and later, uninstall this package and rely on orjson's built-in type stubs instead. The package has not been updated in over 1680 days and is explicitly marked as obsolete by its own documentation.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Only useful if you are using orjson versions older than 3.6.1; orjson 3.6.1+ includes its own type stubs, making this package redundant.
- Low friction installation with no runtime dependencies.
- However, the package has not been updated since January 2022 (over 1680 days ago), and the description notes that orjson has included its own type annotations since version 3.6.1, making this stub package potentially obsolete for recent orjson versions.
License · maintenance · safety
Apache-2.0 license (permissive) — Licensed under Apache-2.0, a permissive license that allows free use, modification, and distribution with minimal restrictions—suitable for development and commercial projects.
last release 2022-01-07 (1680 days) · last repo commit 2026-08-14 · 5,108 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 422,513 downloads/mo, #6,781 on PyPI
Alternatives
Verify before relying
pip install types-orjson
# Then use with type checker (e.g., mypy)
# mypy will now recognize orjson types in your code
import orjson
data = orjson.dumps({"key": "value"})- Whether this stub package remains compatible with current orjson releases and whether type checkers still prefer it over orjson's built-in stubs.
- Whether the package will receive updates to match orjson's API evolution since its last release in January 2022.
What it is and what it does
types-orjson is a PEP 561 type stub package that provides type hints for the orjson JSON serialization library. It allows static type checkers such as mypy, PyCharm, and pytype to understand and validate the types of orjson's functions and return values when analyzing your code. This is useful for catching type errors before runtime and improving IDE autocompletion.
However, the package is now largely superseded: orjson has included its own type annotations since version 3.6.1, making this stub package redundant for users on current orjson versions. The stub package itself has not been updated since January 2022 and relies on typeshed as its source, so it may lag behind orjson's actual API.
Use it for
- Type-checking legacy code that uses orjson versions older than 3.6.1 with mypy or similar tools.
- Ensuring IDE autocompletion and type hints work correctly in projects locked to older orjson releases.
- Validating orjson usage in a codebase where the type checker does not yet recognize orjson's built-in stubs.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
No, unless you are using orjson older than 3.6.1.
For orjson 3.6.1 and later, uninstall this package and rely on orjson's built-in type stubs instead. The package has not been updated in over 1680 days and is explicitly marked as obsolete by its own documentation.
Install
types-orjson on PyPI
Before you install
Low friction installation with no runtime dependencies. However, the package has not been updated since January 2022 (over 1680 days ago), and the description notes that orjson has included its own type annotations since version 3.6.1, making this stub package potentially obsolete for recent orjson versions.
Only useful if you are using orjson versions older than 3.6.1; orjson 3.6.1+ includes its own type stubs, making this package redundant.
License in practice
Licensed under Apache-2.0, a permissive license that allows free use, modification, and distribution with minimal restrictions—suitable for development and commercial projects.
Quickstart
pip install types-orjson
# Then use with type checker (e.g., mypy)
# mypy will now recognize orjson types in your code
import orjson
data = orjson.dumps({"key": "value"})
Verify before relying
- Whether this stub package remains compatible with current orjson releases and whether type checkers still prefer it over orjson's built-in stubs.
- Whether the package will receive updates to match orjson's API evolution since its last release in January 2022.
Package facts
| License | Apache-2.0 license permissive |
| Python support | Not specified |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | None |
| Maintenance | Actively maintained 1,680 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 422,513 / month, #6,781 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | License :: OSI Approved :: Apache Software LicenseTyping :: Stubs Only |
Evidence: types_orjson-3.6.2-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “type stubs orjson”
- types-orjsonProvides PEP 561 type stubs for the orjson package, enabling type…
- drf-orjson-rendererProvides a high-performance JSON renderer and parser for Django REST…
- flask-orjsonReplaces Flask's default JSON encoder with orjson, a faster JSON…
Give your agent the search over MCP, or paste the wish link into any chat.
More Software Development packages
Provides backported and experimental type hints for Python 3.9+, allowing use of newer typing features on older Python versions and enabling early experimentation with type system PEPs before they enter the standard library.
NumPy provides an N-dimensional array object and a comprehensive suite of mathematical, linear algebra, Fourier transform, and random number functions for scientific computing in Python.
FastAPI is a Python web framework for building REST APIs using type hints, with automatic request validation, serialization, and interactive API documentation.
Provides a way to document function parameters, class attributes, return types, and variables inline using Python's `Annotated` type hint syntax instead of traditional docstrings.
Typer builds command-line applications from Python functions using type hints, automatically generating help text, argument parsing, and shell completion.
Install it if you are building CLIs in Python.
Distlib provides low-level packaging utilities for building, distributing, and managing Python software—including metadata handling, version specifiers, wheel support, script installation, and dependency resolution.
See also types-attrs · types-click · types-cryptography · types-jwt · types-tornado · types-Werkzeug · types-freezegun · types-Jinja2 · types-backports · types-Flask