Python client library for the OpenStack Shared File Systems API (Manila). Current version 6.0.0, requires Python >=3.10. Release follows OpenStack cycle.
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
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.