Registry / devops / python-zunclient

python-zunclient

JSON →
library5.4.0pypypi✓ verified 86d ago

Client library for OpenStack Zun (Container Management service). Version 5.4.0. This is a legacy OpenStack client, mainly in maintenance mode.

pip install python-zunclient
INSTALL
IMPORT
SIG · PYTHON-ZUNCLIENT
P
python-zunclient
devopspythonv5.4.0
Install
11.6s avg
Import
492ms
Disk
139MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v5.4.0 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 0.496s · 128.4MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 11.6s · import 0.488s · 130MB
139MB installed
● package 139MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

client
from zunclient import client

Initialize Zun client and list containers.

import os from zunclient import client # Create client using Keystone auth auth_url = os.environ.get('OS_AUTH_URL', 'http://localhost:5000/v3') project_name = os.environ.get('OS_PROJECT_NAME', 'admin') username = os.environ.get('OS_USERNAME', 'admin') password = os.environ.get('OS_PASSWORD', 'admin') user_domain_name = os.environ.get('OS_USER_DOMAIN_NAME', 'Default') project_domain_name = os.environ.get('OS_PROJECT_DOMAIN_NAME', 'Default') kclient = client.Client(1, auth_url=auth_url, username=username, password=password, project_name=project_name, user_domain_name=user_domain_name, project_domain_name=project_domain_name) print('Containers:', list(kclient.containers.list()))
zun --version
Debug
Known issues
gotchaThe library supports multiple API versions (1, 2). Version 2 is microversion-based. Using the wrong API version may cause unexpected AttributeErrors.
fix
Specify the correct API version when creating the client: `client.Client(2, ...)` or `client.Client(1, ...)`.
affects: all
deprecatedOpenStack Zun and its client library are in maintenance mode. No new features are added; only critical bug fixes. Consider using the OpenStack SDK (openstacksdk) for a more modern and unified API.
fix
Migrate to `openstacksdk` using `import openstack` and `conn = openstack.connect()`.
affects: >=5.0.0
Errors
Common errors & fixes
AttributeError: module 'zunclient' has no attribute 'client'
Importing incorrectly; the correct module is `zunclient.client`.
fix
Use `from zunclient import client` (do not use `import zunclient` then `zunclient.client`).
zunclient.exceptions.EndpointNotFound
No Zun service endpoint found in Keystone catalog. The service may not be enabled, or the auth URL is wrong.
fix
Verify OpenStack services are running and the service catalog contains a 'container' endpoint. Ensure env vars OS_AUTH_URL, OS_USERNAME, etc. are correct.
Upgrade
Version history
5.4.0latest on PyPI · released Feb 27, 2026
Audit
Dependencies
keystoneauth1requiredAuthentication for OpenStack APIs
osc-librequiredOpenStackClient common library
Agent activity
9 hits · last 30 days
node
8
Resources
python-zunclient — pip install python-zunclient · libregistry