{"id":15971536,"url":"https://github.com/dolph/python-keystoneclient","last_synced_at":"2025-10-05T13:37:05.476Z","repository":{"id":1873689,"uuid":"2799003","full_name":"dolph/python-keystoneclient","owner":"dolph","description":"Client library for the OpenStack Keystone API","archived":false,"fork":false,"pushed_at":"2012-09-11T12:41:18.000Z","size":454,"stargazers_count":1,"open_issues_count":0,"forks_count":3,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-04-04T15:52:54.894Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://github.com/4P/python-keystoneclient","language":"Python","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"Aufree/trip-to-iOS","license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dolph.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2011-11-17T22:11:53.000Z","updated_at":"2013-09-30T04:11:48.000Z","dependencies_parsed_at":"2022-08-20T12:10:22.603Z","dependency_job_id":null,"html_url":"https://github.com/dolph/python-keystoneclient","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dolph/python-keystoneclient","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dolph%2Fpython-keystoneclient","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dolph%2Fpython-keystoneclient/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dolph%2Fpython-keystoneclient/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dolph%2Fpython-keystoneclient/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dolph","download_url":"https://codeload.github.com/dolph/python-keystoneclient/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dolph%2Fpython-keystoneclient/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267972569,"owners_count":24174382,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-30T02:00:09.044Z","response_time":70,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-07T20:22:06.275Z","updated_at":"2025-10-05T13:37:00.432Z","avatar_url":"https://github.com/dolph.png","language":"Python","readme":"Python bindings to the OpenStack Keystone API\n=============================================\n\nThis is a client for the OpenStack Keystone API. There's a Python API (the\n``keystoneclient`` module), and a command-line script (``keystone``). The\nKeystone 2.0 API is still a moving target, so this module will remain in\n\"Beta\" status until the API is finalized and fully implemented.\n\nDevelopment takes place via the usual OpenStack processes as outlined in\nthe `OpenStack wiki`_.  The master repository is on GitHub__.\n\n__ http://wiki.openstack.org/HowToContribute\n__ http://github.com/openstack/python-keystoneclient\n\nThis code a fork of `Rackspace's python-novaclient`__ which is in turn a fork of\n`Jacobian's python-cloudservers`__. The python-keystoneclient is licensed under\nthe Apache License like the rest of OpenStack.\n\n__ http://github.com/rackspace/python-novaclient\n__ http://github.com/jacobian/python-cloudservers\n\n.. contents:: Contents:\n   :local:\n\nPython API\n----------\n\nBy way of a quick-start::\n\n    # use v2.0 auth with http://example.com:5000/v2.0\")\n    \u003e\u003e\u003e from keystoneclient.v2_0 import client\n    \u003e\u003e\u003e keystone = client.Client(username=USERNAME, password=PASSWORD, tenant_name=TENANT, auth_url=AUTH_URL)\n    \u003e\u003e\u003e keystone.tenants.list()\n    \u003e\u003e\u003e tenant = keystone.tenants.create(tenant_name=\"test\", description=\"My new tenant!\", enabled=True)\n    \u003e\u003e\u003e tenant.delete()\n\n\nCommand-line API\n----------------\n\nInstalling this package gets you a shell command, ``keystone``, that you\ncan use to interact with Keystone's Identity API.\n\nYou'll need to provide your OpenStack tenant, username and password. You can\ndo this with the ``--os-tenant-name``, ``--os-username`` and ``--os-password``\nparams, but it's easier to just set them as environment variables::\n\n    export OS_TENANT_NAME=project\n    export OS_USERNAME=user\n    export OS_PASSWORD=pass\n\nYou will also need to define the authentication url with ``--os-auth-url`` and the\nversion of the API with ``--os-identity-api-version``.  Or set them as an environment\nvariables as well::\n\n    export OS_AUTH_URL=http://example.com:5000/v2.0\n    export OS_IDENTITY_API_VERSION=2.0\n\nAlternatively, to authenticate to Keystone without a username/password,\nsuch as when there are no users in the database yet, use the service\ntoken and endpoint arguemnts.  The service token is set in keystone.conf as\n``admin_token``; set it with ``service_token``.  Note: keep the service token\nsecret as it allows total access to Keystone's database.  The admin endpoint is set\nwith ``--endpoint`` or ``SERVICE_ENDPOINT``::\n\n    export SERVICE_TOKEN=thequickbrownfox-jumpsover-thelazydog\n    export SERVICE_ENDPOINT=http://example.com:35357/v2.0\n\nSince Keystone can return multiple regions in the Service Catalog, you\ncan specify the one you want with ``--region_name`` (or\n``export OS_REGION_NAME``). It defaults to the first in the list returned.\n\nYou'll find complete documentation on the shell by running\n``keystone help``::\n\n    usage: keystone [--os-username \u003cauth-user-name\u003e]\n                    [--os-password \u003cauth-password\u003e]\n                    [--os-tenant-name \u003cauth-tenant-name\u003e]\n                    [--os-tenant-id \u003ctenant-id\u003e] [--os-auth-url \u003cauth-url\u003e]\n                    [--os-region-name \u003cregion-name\u003e]\n                    [--os-identity-api-version \u003cidentity-api-version\u003e]\n                    [--token \u003cservice-token\u003e] [--endpoint \u003cservice-endpoint\u003e]\n                    \u003csubcommand\u003e ...\n\n    Command-line interface to the OpenStack Identity API.\n\n    Positional arguments:\n      \u003csubcommand\u003e\n        catalog             List service catalog, possibly filtered by service.\n        ec2-credentials-create\n                            Create EC2-compatibile credentials for user per tenant\n        ec2-credentials-delete\n                            Delete EC2-compatibile credentials\n        ec2-credentials-get\n                            Display EC2-compatibile credentials\n        ec2-credentials-list\n                            List EC2-compatibile credentials for a user\n        endpoint-create     Create a new endpoint associated with a service\n        endpoint-delete     Delete a service endpoint\n        endpoint-get        Find endpoint filtered by a specific attribute or\n                            service type\n        endpoint-list       List configured service endpoints\n        role-create         Create new role\n        role-delete         Delete role\n        role-get            Display role details\n        role-list           List all available roles\n        service-create      Add service to Service Catalog\n        service-delete      Delete service from Service Catalog\n        service-get         Display service from Service Catalog\n        service-list        List all services in Service Catalog\n        tenant-create       Create new tenant\n        tenant-delete       Delete tenant\n        tenant-get          Display tenant details\n        tenant-list         List all tenants\n        tenant-update       Update tenant name, description, enabled status\n        token-get           Display the current user token\n        user-create         Create new user\n        user-delete         Delete user\n        user-list           List users\n        user-password-update\n                            Update user password\n        user-role-add       Add role to user\n        user-role-remove    Remove role from user\n        user-role-list      List roles for user\n        user-update         Update user's name, email, and enabled status\n        discover            Discover Keystone servers and show authentication\n                            protocols and\n        help                Display help about this program or one of its\n                            subcommands.\n\n    Optional arguments:\n      --os-username \u003cauth-user-name\u003e\n                            Defaults to env[OS_USERNAME]\n      --os-password \u003cauth-password\u003e\n                            Defaults to env[OS_PASSWORD]\n      --os-tenant-name \u003cauth-tenant-name\u003e\n                            Defaults to env[OS_TENANT_NAME]\n      --os-tenant-id \u003ctenant-id\u003e\n                            Defaults to env[OS_TENANT_ID]\n      --os-auth-url \u003cauth-url\u003e\n                            Defaults to env[OS_AUTH_URL]\n      --os-region-name \u003cregion-name\u003e\n                            Defaults to env[OS_REGION_NAME]\n      --os-identity-api-version \u003cidentity-api-version\u003e\n                            Defaults to env[OS_IDENTITY_API_VERSION] or 2.0\n      --token \u003cservice-token\u003e\n                            Defaults to env[SERVICE_TOKEN]\n      --endpoint \u003cservice-endpoint\u003e\n                            Defaults to env[SERVICE_ENDPOINT]\n\nSee \"keystone help COMMAND\" for help on a specific command.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdolph%2Fpython-keystoneclient","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdolph%2Fpython-keystoneclient","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdolph%2Fpython-keystoneclient/lists"}