Skip to main content

Keycloak Nanny

Simple Python wrapper around the Keycloak admin REST API, to programmatically create realms, clients, users, ...

Intended to be used on test/toy/dummy Keycloak instances, e.g. running locally in docker:

docker run --rm \
    -p 8642:8080 \
    -e KEYCLOAK_ADMIN=admin \
    -e KEYCLOAK_ADMIN_PASSWORD=admin \
    quay.io/keycloak/keycloak:21.0.2 start-dev

Then create realms, client and users against this instance:

kc_nanny = keycloaknanny.KeycloakNanny("http://localhost:8642"),


realm = nanny.create_realm()
print("Created realm", realm)
nanny.set_default_realm(realm.name)

client = nanny.create_client()
print("Created client", client)

user = nanny.create_user()
print("Created user", user)

Metadata

Release files for keycloaknanny 23.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for keycloaknanny 23.0.0
File Interpreter ABI Platform
keycloaknanny-23.0.0-py3-none-any.whl Python 3 none any Details

Release files / keycloaknanny-23.0.0-py3-none-any.whl

Download URL keycloaknanny-23.0.0-py3-none-any.whl
Size 4.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5257215a9c79410fc89ec5004f198c38dc6a9671d8a4e596303c100eee35869a
BLAKE2b-256 checksum
How to use checksums
b66f2b1a2129dc17512dcb09c4ec3ee9a63268eb3f9c9716d1c2d05b13f86147
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-httpx/0.23.3

Security for keycloaknanny 23.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

23.0.0 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page