types-ldap3
Typing stubs for ldap3
Decision gist · record as of 2026-08-14
Yes, if you use ldap3 and run static type checking. Install it alongside ldap3 to get type validation and IDE support. It has no runtime overhead, low friction, and is actively maintained. If you do not use a type checker or do not use ldap3, it provides no value.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.10 or later; only provides type information, does not replace the ldap3 package itself.
- Low install friction; a pure-Python stub package with minimal dependencies (only types-pyasn1).
- Actively maintained as part of typeshed, with recent releases and no known vulnerabilities.
License · maintenance · safety
Apache-2.0 (permissive) — Apache-2.0 permissive license allows use in most projects without restriction, including commercial and proprietary software.
last release 2026-05-18 (88 days) · last repo commit 2026-08-14 · 37 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 462,243 downloads/mo, #6,527 on PyPI
Alternatives
Verify before relying
pip install types-ldap3
# In your Python code with mypy or pyright enabled:
import ldap3
conn: ldap3.Connection = ldap3.Server('ldap://example.com')- Whether type coverage is complete for all ldap3 2.9.* APIs or if gaps remain
- Compatibility with ldap3 versions outside the 2.9.* range
What it is and what it does
types-ldap3 is a type stub package from the typeshed project that provides type annotations for the ldap3 library. It allows static type checkers like mypy and pyright to understand and validate code that uses ldap3 for LDAP directory operations, catching type errors before runtime.
The package is a pure-Python stub-only distribution with no runtime code. It targets ldap3 version 2.9.* and has been tested with mypy 2.1.0 and pyright 1.1.409. Installation is lightweight, requiring only types-pyasn1 as a runtime dependency. It is actively maintained through the typeshed project and receives regular updates.
Use it for
- Enable mypy or pyright to type-check code that queries LDAP directories via ldap3
- Catch type mismatches in ldap3 connection parameters and search filters before deployment
- Support IDE autocomplete and inline type hints for ldap3 API calls
- Validate LDAP authentication and directory binding code in type-strict projects
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you use ldap3 and run static type checking.
Install it alongside ldap3 to get type validation and IDE support. It has no runtime overhead, low friction, and is actively maintained. If you do not use a type checker or do not use ldap3, it provides no value.
Install
types-ldap3 on PyPI
Before you install
Low install friction; a pure-Python stub package with minimal dependencies (only types-pyasn1). Actively maintained as part of typeshed, with recent releases and no known vulnerabilities.
Requires Python 3.10 or later; only provides type information, does not replace the ldap3 package itself.
License in practice
Apache-2.0 permissive license allows use in most projects without restriction, including commercial and proprietary software.
Quickstart
pip install types-ldap3
# In your Python code with mypy or pyright enabled:
import ldap3
conn: ldap3.Connection = ldap3.Server('ldap://example.com')
Verify before relying
- Whether type coverage is complete for all ldap3 2.9.* APIs or if gaps remain
- Compatibility with ldap3 versions outside the 2.9.* range
Package facts
| License | Apache-2.0 permissive |
| Python support | Supports the current Python release >=3.10 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 1 packagetypes-pyasn1 |
| Maintenance | Actively maintained 88 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 462,243 / month, #6,527 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_ldap3-2.9.13.20260518-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 › “ldap3 type stubs”
- types-ldap3Provides type stubs for the ldap3 package, enabling static type…
- ldap3ldap3 is a pure Python LDAP V3 client library that implements RFC…
- types-assertpyProvides type stubs enabling static type checkers like mypy and…
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-polib · python3-ldap · ldap3 · types-qrcode · types-netaddr · types-shapely · types-toml · types-PySocks · types-pysftp · types-pyflakes