PYTHON-MAGNUMCLIENT(1)
β¨ NAME β¨
python-magnumclient β bestie, it's literally just python-magnumclient 5.0.0 and nothing else π
π CONTENTS π
π Introduction
πΈ Python bindings to the Magnum API
Okay so picture this: there's a client library for Magnum and it's built on the Magnum API. It hands you two whole things β a Python API (the magnumclient module) and a command-line tool (called magnum). Two for the price of one, we love to see it π«Ά
The badges up top are doing the absolute most, ngl. There's a "Latest Version" badge (image) and a "Downloads" badge (image), both pointing at <https://pypi.org/project/python-magnumclient/>, plus two more image badges that also link to <https://pypi.org/project/python-magnumclient/>. Slay, honestly π¦
Development happens through the usual OpenStack processes, exactly as laid out in the developer guide at <https://docs.openstack.org/infra/manual/developers.html>. That's the whole vibe.
- License: Apache License, Version 2.0 π
- PyPi <https://pypi.org/project/python-magnumclient> β this is where you get the package installed, periodt
- Online Documentation <https://docs.openstack.org/python-magnumclient/latest/>
- Bugs <https://bugs.launchpad.net/magnum> β issue tracking goes here, not your group chat
- Source <https://opendev.org/openstack/python-magnumclient>
π§ Installation
At the command line, bestie:
$ pip install python-magnumclient
Or, if you already have virtualenvwrapper installed (iconic choice, no cap):
$ mkvirtualenv python-magnumclient
$ pip install python-magnumclient
π Python bindings to the OpenStack Magnum API
This is a client for the OpenStack Magnum API fr fr. It includes a Python API (the magnumclient module) and a command-line script (installed as magnum). Both. Always both. π
π¦ Python API
To use python-magnumclient in a project, you create a client instance using the keystoneauth session API. Copy this exactly, don't freestyle it:
from keystoneauth1.identity import v3
from keystoneauth1 import session
from keystoneclient.v3 import client
from magnumclient.client import Client
magnum_endpoint = "http://magnum.example.com:9511/v1"
auth = v3.Password(auth_url='http://my.keystone.com:5000/v3',
username='myuser',
password='mypassword',
project_name='myproject',
user_domain_id='default',
project_domain_id='default')
sess = session.Session(auth=auth)
magnum = Client('1', endpoint_override=magnum_endpoint, session=sess)
magnum.clusters.list()
And for more info on the keystoneauth API, go read Using Sessions at <https://docs.openstack.org/keystoneauth/latest/using-sessions.html>. It's giving required reading π
π₯ Command-line tool
So to use the CLI you must provide your OpenStack username, password, project name, user domain ID, project domain ID, and auth endpoint. All six. Do not skip, I'm begging π
Use the matching configuration options β --os-username, --os-password, --os-project-name, --os-project-domain-id, --os-user-domain-id, and --os-auth-url β or just yeet them into environment variables:
export OS_USERNAME=myuser
export OS_PASSWORD=mypassword
export OS_PROJECT_NAME=myproject
export OS_USER_DOMAIN_ID=default
export OS_PROJECT_DOMAIN_ID=default
export OS_AUTH_URL=http://my.keystone.com:5000/v3
From there, every shell command takes this shape:
magnum <command> [arguments...]
Run magnum help to see the complete listing of available commands, and magnum help <command> to get the detailed glow-up help for that specific command. iykyk π«
β Contributing
If you wanna contribute to OpenStack development, you have to follow the steps on this page: <https://docs.openstack.org/infra/manual/developers.html>
Once you've done all those steps, changes to OpenStack get submitted for review via the Gerrit tool, following the workflow documented at: <https://docs.openstack.org/infra/manual/developers.html#development-workflow>
π Heads up bestie: pull requests submitted through GitHub will be ignored. Not "maybe looked at," not "politely declined" β ignored. So don't.
Bugs should be filed on Storyboard, not GitHub: <https://storyboard.openstack.org/#!/project/openstack/python-magnumclient>
π INDICES AND TABLES π
- Index <>
- Search Page <>
π Author π
Author name not set π (they left it blank, main character energy of a mystery tbh)
πΈ Copyright πΈ
2013, OpenStack Foundation
Okay that's the whole page, you're literally a Magnum expert now π This was python-magnumclient 5.0.0, dated Jan 02, 1980 (iconic vintage date, don't ask) β mwah, go slay some clusters π
β¨
π¦ where this page comes from
- nixpkgs unstable: python3.13-python-magnumclient 5.0.0
- nixpkgs unstable: python3.14-python-magnumclient 5.0.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms