types-pysaml2
Type Stubs for pysaml2
Decision gist · record as of 2026-08-14
Yes, but with caution. Install if you are already using pysaml2 and want type checking support in a stable, older codebase. Do not install if you are using a recent version of pysaml2 or expect the stubs to stay current—the package is abandoned and will not track pysaml2 updates. The GPLv3 copyleft license also requires careful review if you plan to distribute your code.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.7 or later.
- Type checking requires a static type checker like mypy or pyright to be configured in your project.
- Installs with no runtime dependencies.
License · maintenance · safety
GPLv3 (copyleft) — Licensed under GPLv3 (copyleft). Any project using this package must comply with GPLv3 terms, including potential source code disclosure obligations if distributed.
last release 2023-01-16 (1306 days)
0 known vulnerabilities (OSV.dev, 2026-08-14) · 155,417 downloads/mo, #10,815 on PyPI
Alternatives
Verify before relying
pip install types-pysaml2
# In your code, import pysaml2 as usual; type checkers will now resolve types
import pysaml2
from pysaml2.client import Client- How much of pysaml2's API surface is actually covered by these stubs (described as 'partial' but no percentage given).
- Whether the stubs remain compatible with recent versions of pysaml2 given the time since last release.
What it is and what it does
types-pysaml2 is a stub package that adds type annotations for the pysaml2 SAML authentication library. It allows developers using pysaml2 to get static type checking support in their IDE and type checkers like mypy, catching type errors before runtime. The package is explicitly marked as partial, covering only some of the functions and objects available in pysaml2, and contributions are welcome to expand coverage.
Since this is a pure stub package with no runtime dependencies, installation is lightweight and friction-free. However, the package is abandoned—the last release was 1306 days ago—meaning it will not track updates to pysaml2 itself, and type coverage gaps may persist or grow as pysaml2 evolves.
Use it for
- Add type checking to an existing pysaml2-based SAML authentication system without changing runtime behavior.
- Catch type mismatches in pysaml2 API calls during development using mypy or similar type checkers.
- Improve IDE autocomplete and inline documentation for pysaml2 objects and functions.
- Validate SAML client and server configuration code before deployment in a typed Python project.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, but with caution.
Install if you are already using pysaml2 and want type checking support in a stable, older codebase. Do not install if you are using a recent version of pysaml2 or expect the stubs to stay current—the package is abandoned and will not track pysaml2 updates. The GPLv3 copyleft license also requires careful review if you plan to distribute your code.
Install
types-pysaml2 on PyPI
Before you install
Installs with no runtime dependencies. However, the package is abandoned (last release 1306 days ago) and marked as Alpha, so type coverage may be incomplete and will not track future pysaml2 changes.
Requires Python 3.7 or later. Type checking requires a static type checker like mypy or pyright to be configured in your project.
License in practice
Licensed under GPLv3 (copyleft). Any project using this package must comply with GPLv3 terms, including potential source code disclosure obligations if distributed.
Quickstart
pip install types-pysaml2
# In your code, import pysaml2 as usual; type checkers will now resolve types
import pysaml2
from pysaml2.client import Client
Verify before relying
- How much of pysaml2's API surface is actually covered by these stubs (described as 'partial' but no percentage given).
- Whether the stubs remain compatible with recent versions of pysaml2 given the time since last release.
Package facts
| License | GPLv3 copyleft |
| Python support | Supports the current Python release >=3.7, <4 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | None |
| Maintenance | Abandoned 1,306 days since the last release |
| First released | |
| Downloads | 155,417 / month, #10,815 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 3 - AlphaIntended Audience :: DevelopersLicense :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)Programming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Typing :: Stubs Only |
Evidence: types_pysaml2-1.0.1-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 › “pysaml2 type stubs”
- types-pysaml2Provides type annotations (stubs) for the pysaml2 SAML authentication…
- pysaml2PySAML2 is a pure Python implementation of SAML Version 2 Standard…
- djangosaml2Integrates SAML2 single sign-on authentication into Django…
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-smorest · types-sqlalchemy-utils · pysaml2 · plotly-stubs · djangosaml2 · djangosaml2idp2 · grafana-django-saml2-auth · python3-saml · types-pyOpenSSL · types-httplib2