Registry / aws / python-manilaclient

python-manilaclient

JSON →
library6.0.0pypypi✓ verified 35d ago

Python client library for the OpenStack Shared File Systems API (Manila). Current version 6.0.0, requires Python >=3.10. Release follows OpenStack cycle.

awsdevopshttp-networking
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

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

The correct import is from manilaclient (package name).

from manilaclient import client

Avoid wildcard imports; import specific exceptions like manilaclient.exceptions.ClientException.

from manilaclient import exceptions

For CLI usage, use the manila command, but programmatic shell access is via this module.

from manilaclient import shell

Authenticate and list shares.

import os from manilaclient import client # Use version 2 (default) or 1 version = '2' os_username = os.environ.get('OS_USERNAME', '') os_password = os.environ.get('OS_PASSWORD', '') os_tenant_name = os.environ.get('OS_TENANT_NAME', '') os_auth_url = os.environ.get('OS_AUTH_URL', '') # Authenticate and create client manila_client = client.Client(version, os_username, os_password, os_tenant_name, os_auth_url) # List shares shares = manila_client.shares.list() print(shares)
manila --version
Debug
Known footguns
breakingSupport for v1 API removed in version 5.0.0. Use v2 API only.
breakingMinimum required Python version is now 3.10 (as of 6.0.0).
gotchaThe client expects OS_TENANT_NAME (or OS_PROJECT_NAME) for scoping; missing env vars cause authentication errors.
deprecatedUse of auth_token parameter is deprecated; prefer session-based authentication.
Upgrade
Version history

Breaking-change detection hasn't run for this library yet.

Audit
Security & dependencies

CVE tracking and dependency tree are planned for a later release.

Agent activity
0 hits · last 30 days

No traffic data recorded yet.

Resources