types-nanoid
Typing stubs for nanoid
Decision gist · record as of 2026-08-14
Yes, if you use nanoid and run static type checking. It has no runtime cost, low install friction, and is actively maintained by typeshed. Install it alongside nanoid in development environments to enable full type coverage. Not needed if you don't use type checkers or don't use nanoid.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python >= 3.10.
- The nanoid package itself must be installed separately for runtime use.
- Low install friction with no runtime dependencies.
License · maintenance · safety
Apache-2.0 (permissive) — Licensed under Apache-2.0 (permissive), allowing use in most projects without significant restriction.
last release 2026-05-08 (98 days) · last repo commit 2026-08-14 · 37 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 98,118 downloads/mo, #13,105 on PyPI
Alternatives
Verify before relying
pip install types-nanoid
# In your code, import nanoid and use it; type checkers will now understand its types
import nanoid
id = nanoid.generate()- Whether nanoid is automatically installed as a dependency or must be installed separately.
- Whether this stub package works with nanoid versions other than 2.0.0.
What it is and what it does
types-nanoid is a type stub package that provides type annotations for the nanoid library, a package used to generate unique string identifiers. Type stubs are metadata files that tell static type checkers like mypy and pyright what types nanoid's functions accept and return, without modifying nanoid itself. This allows developers to catch type errors in code that uses nanoid before runtime.
The package is maintained as part of typeshed, the central repository for Python type stubs. It has no runtime dependencies—it only adds type information to your development environment. Installation is straightforward and adds no overhead to your application, only to your type-checking workflow.
Use it for
- Enable mypy or pyright to type-check code that imports and calls nanoid functions.
- Catch type mismatches when passing arguments to nanoid or using its return values in a type-aware IDE.
- Support strict type-checking workflows in projects that generate unique IDs with nanoid.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you use nanoid and run static type checking.
It has no runtime cost, low install friction, and is actively maintained by typeshed. Install it alongside nanoid in development environments to enable full type coverage. Not needed if you don't use type checkers or don't use nanoid.
Install
types-nanoid on PyPI
Before you install
Low install friction with no runtime dependencies. Actively maintained as part of typeshed; last commit 2026-08-14. Tested against mypy 1.20.0 and pyright 1.1.408.
Requires Python >= 3.10. The nanoid package itself must be installed separately for runtime use.
License in practice
Licensed under Apache-2.0 (permissive), allowing use in most projects without significant restriction.
Quickstart
pip install types-nanoid
# In your code, import nanoid and use it; type checkers will now understand its types
import nanoid
id = nanoid.generate()
Verify before relying
- Whether nanoid is automatically installed as a dependency or must be installed separately.
- Whether this stub package works with nanoid versions other than 2.0.0.
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 98 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 98,118 / month, #13,105 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Programming Language :: Python :: 3Typing :: Stubs Only |
Evidence: types_nanoid-2.0.0.20260508-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 for nanoid”
- types-nanoidProvides type hints for the nanoid package, enabling static type…
- fastnanoidGenerates unique, URL-friendly string IDs using a Rust-backed…
- nanoidGenerates cryptographically secure, URL-friendly unique IDs shorter…
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-tabulate · types-grpcio-reflection · types-mypy-extensions · types-webencodings · types-html5lib · types-colorama · types-retry · types-pynput · types-pyaudio · types-Flask-Migrate