Python-Keycloak — python-keycloak latest documentation
Python library for Keycloak API integration and authentication management
What it is
Python-Keycloak is the official documentation site for a Python package that provides programmatic access to the Keycloak API. Keycloak is an open-source identity and access management solution widely used for single sign-on, user federation, and fine-grained authorization. This documentation helps developers integrate Keycloak capabilities directly into Python applications without manual HTTP requests.
This description was generated by AI from the site's public content and may contain errors.
What you can do there
- Read comprehensive API documentation for all Keycloak client modules
- Follow quickstart guides for OpenID Connect, admin, and UMA clients
- Browse versioned changelog with release notes and breaking changes
- Learn how to contribute code, tests, and documentation to the project
- Install the library via pip and integrate Keycloak into Python applications
Who it's for
Python developers integrating Keycloak authentication and authorization into applications
Frequently asked questions about Python-Keycloak — python-keycloak latest documentation
›What is python-keycloak used for?
Python-keycloak is a Python library that provides programmatic access to the Keycloak API for authentication, user management, and authorization tasks.
›How do I install python-keycloak?
Install the package via pip with the command pip install python-keycloak, then import the needed client classes in your code.
›Does python-keycloak support asynchronous Python frameworks?
Yes, the library includes asynchronous clients compatible with async frameworks like FastAPI and aiohttp for non-blocking Keycloak operations.
›What Keycloak features does the admin client cover?
The admin client supports realm management, user and group operations, role assignments, client configuration, and other administrative tasks exposed by the Keycloak Admin REST API.
›Is python-keycloak actively maintained?
The project shows frequent releases with a detailed changelog dating back to 2017, and version 7.1.1 was published in February 2026 indicating ongoing maintenance.
›Can I contribute to python-keycloak development?
Yes, the documentation includes a contributor guide covering development setup, testing, conventional commits, and pull request processes for community contributions.
›What authentication flows does the OpenID client support?
The OpenID client handles standard OpenID Connect flows including authorization code, client credentials, password grant, and token refresh with PKCE support for public clients.
