--- id: python3-openid version: "3.2.0" license: unclear license_treatment: permissive maintenance: dormant --- # python3-openid — OpenID support for modern servers and consumers. License: permissive · Maintenance: dormant · Downloads: 8.3M/mo ## What it is and what it does python3-openid is a port of the Python OpenID library adapted for Python 3, providing both server and consumer implementations of the OpenID authentication protocol. It lets web applications authenticate users by delegating to external OpenID providers, or act as an OpenID provider themselves. The library wraps the core OpenID flows—discovery, authentication request, and verification—and includes optional storage backends for MySQL and PostgreSQL to persist authentication state. The package depends only on defusedxml for secure XML parsing, keeping the core footprint small. It maintains API compatibility with the original python-openid library where possible, making it a drop-in replacement for Python 3 projects. The library includes logging hooks to surface recoverable errors and a working example server and consumer in its repository. Use it for: - Integrate OpenID login into a web application so users can authenticate with their existing OpenID accounts. - Build an OpenID provider service that other applications can delegate authentication to. - Migrate a Python 2 application using python-openid to Python 3 with minimal API changes. - Store OpenID session state in MySQL or PostgreSQL for production deployments requiring persistent authentication records. - Add federated identity support to a web service without implementing OAuth or SAML from scratch. ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. Implements OpenID authentication protocol support for Python 3 servers and clients, allowing applications to delegate user authentication to OpenID providers. Yes, if you need OpenID support in Python 3 and can accept dormant maintenance. The library is production-stable, has no known vulnerabilities, and carries low install friction. However, be aware that active development stopped in 2020; if you require ongoing security patches or feature development, consider whether OpenID remains the right authentication choice for your use case, or evaluate actively maintained alternatives like OAuth 2.0 libraries. ## Install pip install python3-openid uv add python3-openid poetry add python3-openid ## Installing python3-openid Before you install: Low install friction with a single runtime dependency (defusedxml). Maintenance is dormant—the last release was 2020-06-29, over 2237 days ago, though the repository remains active with a recent commit on 2024-11-05. Production-stable but not actively developed. License in practice: Licensed under Apache Software License (permissive), so you can use, modify, and distribute it freely in commercial and open-source projects without copyleft obligations. Quickstart: pip install python3-openid from openid.consumer.consumer import Consumer from openid.store.memorystore import MemoryStore store = MemoryStore() consumer = Consumer({}, store) Requires Python 3.5 or later; optional MySQL or PostgreSQL storage requires installing the relevant extra (e.g., pip install python3-openid[mysql]). Verify before relying: - Whether PyPy3 compatibility issues mentioned in the description have been resolved since the last release. - Current state of documentation generation and availability beyond Epydoc format. - Whether the API remains fully compatible with the original python-openid library as intended. ## Package facts - License: not declared (permissive) - Python support: unspecified - Install friction: low - Maintenance: dormant - Downloads: 8.3M/month (top 5,000 on PyPI) - Known vulnerabilities: none known ## Tags openid authentication python, openid provider consumer, openid protocol implementation, python openid library, openid server client, authentication, openid-protocol, legacy-maintained [View on SkillFed](https://skillfed.io/packages/python3-openid) · [View on PyPI](https://pypi.org/project/python3-openid/)