| Name | python-openstackclient JSON |
| Version |
8.2.0
JSON |
| download |
| home_page | None |
| Summary | OpenStack Command-line Client |
| upload_time | 2025-08-21 09:35:00 |
| maintainer | None |
| docs_url | None |
| author | None |
| requires_python | >=3.10 |
| license | Apache-2.0 |
| keywords |
|
| VCS |
|
| bugtrack_url |
|
| requirements |
No requirements were recorded.
|
| Travis-CI |
No Travis.
|
| coveralls test coverage |
No coveralls.
|
===============
OpenStackClient
===============
.. image:: https://img.shields.io/pypi/v/python-openstackclient.svg
:target: https://pypi.org/project/python-openstackclient/
:alt: Latest Version
OpenStackClient (OSC) is a command-line client for OpenStack that brings
the command set for Compute, Identity, Image, Network, Object Store and Block
Storage APIs together in a single shell with a uniform command structure.
Support for additional service APIs is provided via plugins.
The primary goal is to provide a unified shell command structure and a common
language to describe operations in OpenStack.
Getting Started
===============
OpenStack Client can be installed from PyPI using pip:
.. code-block:: shell
python3 -m pip install python-openstackclient
You can use ``--help`` or the ``help`` command to get a list of global options
and supported commands:
.. code-block:: shell
openstack --help
openstack help
You can also get help for a specific command:
.. code-block:: shell
openstack server create --help
openstack help server create
You can add support for additional services by installing their clients. For
example, to add support for the DNS service (designate):
.. code-block:: shell
python3 -m pip install python3-designateclient
A ``Dockerfile`` is provided for your convenience in the repository. You can
use this to build your own container images:
.. code-block:: shell
git clone https://opendev.org/openstack/python-openstackclient
cd python-openstackclient
podman build . -t example.com/myuser/openstackclient
For more information the available options and commands, refer to the `Users
Guide`__.
.. __: https://docs.openstack.org/python-openstackclient/latest/cli/index.html
Configuration
=============
OpenStack Client must be configured with authentication information in order to
communicate with a given OpenStack cloud. This configuration can be achieved
via a ``clouds.yaml`` file, a set of environment variables (often shared via an
``openrc`` file), a set of command-line options, or a combination of all three.
Your cloud provider or deployment tooling will typically provide either a
``clouds.yaml`` file or ``openrc`` file for you. If using a ``clouds.yaml``
file, OpenStack Client expects to find it in one of the following locations:
* If set, the path indicated by the ``OS_CLIENT_CONFIG_FILE`` environment
variable
* ``.`` (the current directory)
* ``$HOME/.config/openstack``
* ``/etc/openstack``
The options you should set will depend on the configuration of your cloud and
the authentication mechanism(s) supported. For example, consider a cloud that
supports username/password authentication. Configuration for this cloud using a
``clouds.yaml`` file would look like so:
.. code-block:: yaml
clouds:
my-cloud:
auth:
auth_url: '<url-to-openstack-identity>'
project_name: '<project-name>'
project_domain_name: '<project-domain-name>'
username: '<username>'
user_domain_name: '<user-domain-name>'
password: '<password>' # (optional)
region_name: '<region>'
The corresponding environment variables would look very similar:
.. code-block:: shell
export OS_AUTH_URL=<url-to-openstack-identity>
export OS_REGION_NAME=<region>
export OS_PROJECT_NAME=<project-name>
export OS_PROJECT_DOMAIN_NAME=<project-domain-name>
export OS_USERNAME=<username>
export OS_USER_DOMAIN_NAME=<user-domain-name>
export OS_PASSWORD=<password> # (optional)
Likewise, the corresponding command-line options would look very similar:
::
openstack
--os-auth-url <url-to-openstack-identity>
--os-region <region>
--os-project-name <project-name>
--os-project-domain-name <project-domain-name>
--os-username <username>
--os-user-domain-name <user-domain-name>
[--os-password <password>]
.. note::
If a password is not provided above (in plaintext), you will be
interactively prompted to provide one securely.
Some clouds use federated authentication. If this is the case, your
configuration will be slightly more involved. For example, to configure
username/password authentication for a federated user using a ``clouds.yaml``
file:
.. code-block:: yaml
clouds:
my-cloud:
auth:
auth_url: '<url-to-openstack-identity>'
project_name: '<project-name>'
project_domain_name: '<project-domain-name>'
username: '<username-in-idp>'
user_domain_name: '<user-domain-name>'
password: '<password-in-idp>'
identity_provider: '<the-desired-idp-in-keystone>'
client_id: '<the-client-id-configured-in-the-idp>'
client_secret: '<the-client-secret-configured-in-the-idp>'
openid_scope: '<the-scopes-of-desired-attributes-to-claim-from-idp>'
protocol: '<the-protocol-used-in-the-apache2-oidc-proxy>'
access_token_type: '<the-access-token-type-used-by-your-idp>'
discovery_endpoint: '<the-well-known-endpoint-of-the-idp>'
auth_type: 'v3oidcpassword'
region_name: '<region>'
The corresponding environment variables would look very similar:
.. code-block:: shell
export OS_PROJECT_NAME=<project-name>
export OS_PROJECT_DOMAIN_NAME=<project-domain-name>
export OS_AUTH_URL=<url-to-openstack-identity>
export OS_IDENTITY_API_VERSION=3
export OS_AUTH_TYPE=v3oidcpassword
export OS_USERNAME=<username-in-idp>
export OS_PASSWORD=<password-in-idp>
export OS_IDENTITY_PROVIDER=<the-desired-idp-in-keystone>
export OS_CLIENT_ID=<the-client-id-configured-in-the-idp>
export OS_CLIENT_SECRET=<the-client-secred-configured-in-the-idp>
export OS_OPENID_SCOPE=<the-scopes-of-desired-attributes-to-claim-from-idp>
export OS_PROTOCOL=<the-protocol-used-in-the-apache2-oidc-proxy>
export OS_ACCESS_TOKEN_TYPE=<the-access-token-type-used-by-your-idp>
export OS_DISCOVERY_ENDPOINT=<the-well-known-endpoint-of-the-idp>
Likewise, the corresponding command-line options would look very similar:
.. code-block:: shell
--os-project-name <project-name>
--os-project-domain-name <project-domain-name>
--os-auth-url <url-to-openstack-identity>
--os-identity-api-version 3
--os-auth-plugin openid
--os-auth-type v3oidcpassword
--os-username <username-in-idp>
--os-password <password-in-idp>
--os-identity-provider <the-desired-idp-in-keystone>
--os-client-id <the-client-id-configured-in-the-idp>
--os-client-secret <the-client-secred-configured-in-the-idp>
--os-openid-scope <the-scopes-of-desired-attributes-to-claim-from-idp>
--os-protocol <the-protocol-used-in-the-apache2-oidc-proxy>
--os-access-token-type <the-access-token-type-used-by-your-idp>
--os-discovery-endpoint <the-well-known-endpoint-of-the-idp>
For more information on configuring authentication, including an overview of
the many authentication mechanisms supported, refer to the `Authentication
guide`__. For more information on configuration in general, refer to the
`Configuration guide`__.
.. __: https://docs.openstack.org/python-openstackclient/latest/cli/authentication.html.
.. __: https://docs.openstack.org/python-openstackclient/latest/configuration/index.html
Contributing
============
You can clone the repository from opendev.org::
git clone https://opendev.org/openstack/python-openstackclient
cd python-openstackclient
OpenStack Client uses the same contributor process as other OpenStack projects.
For information on this process, including help on setting up you Gerrit
account and an overview of the CI process, refer to the `OpenStack Contributors
Guide`__.
For more information on contributing to OpenStack Client itself, including
guidance on how to design new commands and how to report bugs, refer to the
`Contributors Guide`__.
.. __: https://docs.openstack.org/python-openstackclient/latest/contributor/index.html
.. __: https://docs.opendev.org/opendev/infra-manual/latest/developers.html
Links
-----
* `Issue Tracker <https://bugs.launchpad.net/python-openstackclient>`_
* `Code Review <https://review.opendev.org/#/q/status:open+project:openstack/openstacksdk,n,z>`_
* `Documentation <https://docs.openstack.org/python-openstackclient/latest/>`_
* `PyPi <https://pypi.org/project/python-openstackclient>`_
* `Mailing list <https://lists.openstack.org/mailman3/lists/openstack-discuss.lists.openstack.org/>`_
* `Release Notes <https://docs.openstack.org/releasenotes/python-openstackclient>`_
* `IRC (#openstack-sdks on OFTC (irc.oftc.net)) <irc://irc.oftc.net/openstack-sdks>`_
Raw data
{
"_id": null,
"home_page": null,
"name": "python-openstackclient",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.10",
"maintainer_email": null,
"keywords": null,
"author": null,
"author_email": "OpenStack <openstack-discuss@lists.openstack.org>",
"download_url": "https://files.pythonhosted.org/packages/a5/8f/7852b32aa5759ab9333b5ad50834304e61bf06b87fa01ad82063e12411aa/python_openstackclient-8.2.0.tar.gz",
"platform": null,
"description": "===============\nOpenStackClient\n===============\n\n.. image:: https://img.shields.io/pypi/v/python-openstackclient.svg\n :target: https://pypi.org/project/python-openstackclient/\n :alt: Latest Version\n\nOpenStackClient (OSC) is a command-line client for OpenStack that brings\nthe command set for Compute, Identity, Image, Network, Object Store and Block\nStorage APIs together in a single shell with a uniform command structure.\nSupport for additional service APIs is provided via plugins.\n\nThe primary goal is to provide a unified shell command structure and a common\nlanguage to describe operations in OpenStack.\n\nGetting Started\n===============\n\nOpenStack Client can be installed from PyPI using pip:\n\n.. code-block:: shell\n\n python3 -m pip install python-openstackclient\n\nYou can use ``--help`` or the ``help`` command to get a list of global options\nand supported commands:\n\n.. code-block:: shell\n\n openstack --help\n openstack help\n\nYou can also get help for a specific command:\n\n.. code-block:: shell\n\n openstack server create --help\n openstack help server create\n\nYou can add support for additional services by installing their clients. For\nexample, to add support for the DNS service (designate):\n\n.. code-block:: shell\n\n python3 -m pip install python3-designateclient\n\nA ``Dockerfile`` is provided for your convenience in the repository. You can\nuse this to build your own container images:\n\n.. code-block:: shell\n\n git clone https://opendev.org/openstack/python-openstackclient\n cd python-openstackclient\n podman build . -t example.com/myuser/openstackclient\n\nFor more information the available options and commands, refer to the `Users\nGuide`__.\n\n.. __: https://docs.openstack.org/python-openstackclient/latest/cli/index.html\n\nConfiguration\n=============\n\nOpenStack Client must be configured with authentication information in order to\ncommunicate with a given OpenStack cloud. This configuration can be achieved\nvia a ``clouds.yaml`` file, a set of environment variables (often shared via an\n``openrc`` file), a set of command-line options, or a combination of all three.\nYour cloud provider or deployment tooling will typically provide either a\n``clouds.yaml`` file or ``openrc`` file for you. If using a ``clouds.yaml``\nfile, OpenStack Client expects to find it in one of the following locations:\n\n* If set, the path indicated by the ``OS_CLIENT_CONFIG_FILE`` environment\n variable\n* ``.`` (the current directory)\n* ``$HOME/.config/openstack``\n* ``/etc/openstack``\n\nThe options you should set will depend on the configuration of your cloud and\nthe authentication mechanism(s) supported. For example, consider a cloud that\nsupports username/password authentication. Configuration for this cloud using a\n``clouds.yaml`` file would look like so:\n\n.. code-block:: yaml\n\n clouds:\n my-cloud:\n auth:\n auth_url: '<url-to-openstack-identity>'\n project_name: '<project-name>'\n project_domain_name: '<project-domain-name>'\n username: '<username>'\n user_domain_name: '<user-domain-name>'\n password: '<password>' # (optional)\n region_name: '<region>'\n\nThe corresponding environment variables would look very similar:\n\n.. code-block:: shell\n\n export OS_AUTH_URL=<url-to-openstack-identity>\n export OS_REGION_NAME=<region>\n export OS_PROJECT_NAME=<project-name>\n export OS_PROJECT_DOMAIN_NAME=<project-domain-name>\n export OS_USERNAME=<username>\n export OS_USER_DOMAIN_NAME=<user-domain-name>\n export OS_PASSWORD=<password> # (optional)\n\nLikewise, the corresponding command-line options would look very similar:\n\n::\n\n openstack\n --os-auth-url <url-to-openstack-identity>\n --os-region <region>\n --os-project-name <project-name>\n --os-project-domain-name <project-domain-name>\n --os-username <username>\n --os-user-domain-name <user-domain-name>\n [--os-password <password>]\n\n.. note::\n\n If a password is not provided above (in plaintext), you will be\n interactively prompted to provide one securely.\n\nSome clouds use federated authentication. If this is the case, your\nconfiguration will be slightly more involved. For example, to configure\nusername/password authentication for a federated user using a ``clouds.yaml``\nfile:\n\n.. code-block:: yaml\n\n clouds:\n my-cloud:\n auth:\n auth_url: '<url-to-openstack-identity>'\n project_name: '<project-name>'\n project_domain_name: '<project-domain-name>'\n username: '<username-in-idp>'\n user_domain_name: '<user-domain-name>'\n password: '<password-in-idp>'\n identity_provider: '<the-desired-idp-in-keystone>'\n client_id: '<the-client-id-configured-in-the-idp>'\n client_secret: '<the-client-secret-configured-in-the-idp>'\n openid_scope: '<the-scopes-of-desired-attributes-to-claim-from-idp>'\n protocol: '<the-protocol-used-in-the-apache2-oidc-proxy>'\n access_token_type: '<the-access-token-type-used-by-your-idp>'\n discovery_endpoint: '<the-well-known-endpoint-of-the-idp>'\n auth_type: 'v3oidcpassword'\n region_name: '<region>'\n\nThe corresponding environment variables would look very similar:\n\n.. code-block:: shell\n\n export OS_PROJECT_NAME=<project-name>\n export OS_PROJECT_DOMAIN_NAME=<project-domain-name>\n export OS_AUTH_URL=<url-to-openstack-identity>\n export OS_IDENTITY_API_VERSION=3\n export OS_AUTH_TYPE=v3oidcpassword\n export OS_USERNAME=<username-in-idp>\n export OS_PASSWORD=<password-in-idp>\n export OS_IDENTITY_PROVIDER=<the-desired-idp-in-keystone>\n export OS_CLIENT_ID=<the-client-id-configured-in-the-idp>\n export OS_CLIENT_SECRET=<the-client-secred-configured-in-the-idp>\n export OS_OPENID_SCOPE=<the-scopes-of-desired-attributes-to-claim-from-idp>\n export OS_PROTOCOL=<the-protocol-used-in-the-apache2-oidc-proxy>\n export OS_ACCESS_TOKEN_TYPE=<the-access-token-type-used-by-your-idp>\n export OS_DISCOVERY_ENDPOINT=<the-well-known-endpoint-of-the-idp>\n\nLikewise, the corresponding command-line options would look very similar:\n\n.. code-block:: shell\n\n --os-project-name <project-name>\n --os-project-domain-name <project-domain-name>\n --os-auth-url <url-to-openstack-identity>\n --os-identity-api-version 3\n --os-auth-plugin openid\n --os-auth-type v3oidcpassword\n --os-username <username-in-idp>\n --os-password <password-in-idp>\n --os-identity-provider <the-desired-idp-in-keystone>\n --os-client-id <the-client-id-configured-in-the-idp>\n --os-client-secret <the-client-secred-configured-in-the-idp>\n --os-openid-scope <the-scopes-of-desired-attributes-to-claim-from-idp>\n --os-protocol <the-protocol-used-in-the-apache2-oidc-proxy>\n --os-access-token-type <the-access-token-type-used-by-your-idp>\n --os-discovery-endpoint <the-well-known-endpoint-of-the-idp>\n\nFor more information on configuring authentication, including an overview of\nthe many authentication mechanisms supported, refer to the `Authentication\nguide`__. For more information on configuration in general, refer to the\n`Configuration guide`__.\n\n.. __: https://docs.openstack.org/python-openstackclient/latest/cli/authentication.html.\n.. __: https://docs.openstack.org/python-openstackclient/latest/configuration/index.html\n\nContributing\n============\n\nYou can clone the repository from opendev.org::\n\n git clone https://opendev.org/openstack/python-openstackclient\n cd python-openstackclient\n\nOpenStack Client uses the same contributor process as other OpenStack projects.\nFor information on this process, including help on setting up you Gerrit\naccount and an overview of the CI process, refer to the `OpenStack Contributors\nGuide`__.\n\nFor more information on contributing to OpenStack Client itself, including\nguidance on how to design new commands and how to report bugs, refer to the\n`Contributors Guide`__.\n\n.. __: https://docs.openstack.org/python-openstackclient/latest/contributor/index.html\n.. __: https://docs.opendev.org/opendev/infra-manual/latest/developers.html\n\nLinks\n-----\n\n* `Issue Tracker <https://bugs.launchpad.net/python-openstackclient>`_\n* `Code Review <https://review.opendev.org/#/q/status:open+project:openstack/openstacksdk,n,z>`_\n* `Documentation <https://docs.openstack.org/python-openstackclient/latest/>`_\n* `PyPi <https://pypi.org/project/python-openstackclient>`_\n* `Mailing list <https://lists.openstack.org/mailman3/lists/openstack-discuss.lists.openstack.org/>`_\n* `Release Notes <https://docs.openstack.org/releasenotes/python-openstackclient>`_\n* `IRC (#openstack-sdks on OFTC (irc.oftc.net)) <irc://irc.oftc.net/openstack-sdks>`_\n",
"bugtrack_url": null,
"license": "Apache-2.0",
"summary": "OpenStack Command-line Client",
"version": "8.2.0",
"project_urls": {
"Homepage": "https://docs.openstack.org/python-openstackclient/",
"Repository": "https://opendev.org/openstack/python-openstackclient/"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "95b07d34b084e2b190c0dc3fc149ff28b6a5e50c333b1443388d1970c3a8b9e5",
"md5": "fa70c39cec416fb579932acbad9adb2c",
"sha256": "3404243629974547de1c8c06e78438ee38c6a66ab1620da4d5200127d50c99d3"
},
"downloads": -1,
"filename": "python_openstackclient-8.2.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "fa70c39cec416fb579932acbad9adb2c",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.10",
"size": 1084482,
"upload_time": "2025-08-21T09:34:58",
"upload_time_iso_8601": "2025-08-21T09:34:58.595193Z",
"url": "https://files.pythonhosted.org/packages/95/b0/7d34b084e2b190c0dc3fc149ff28b6a5e50c333b1443388d1970c3a8b9e5/python_openstackclient-8.2.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "a58f7852b32aa5759ab9333b5ad50834304e61bf06b87fa01ad82063e12411aa",
"md5": "cb058c0bc8e3524b24ba9cf8db911b3b",
"sha256": "d612af18dfc66cc8f31e6ce96690b6c273ade8a240ec40b7f4835a8896fbbe01"
},
"downloads": -1,
"filename": "python_openstackclient-8.2.0.tar.gz",
"has_sig": false,
"md5_digest": "cb058c0bc8e3524b24ba9cf8db911b3b",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.10",
"size": 930209,
"upload_time": "2025-08-21T09:35:00",
"upload_time_iso_8601": "2025-08-21T09:35:00.371842Z",
"url": "https://files.pythonhosted.org/packages/a5/8f/7852b32aa5759ab9333b5ad50834304e61bf06b87fa01ad82063e12411aa/python_openstackclient-8.2.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-08-21 09:35:00",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "python-openstackclient"
}