Congress客户端
项目描述
Congress客户端
自由软件:Apache许可证
独立Congress客户端
通过克隆仓库并运行设置文件来安装Congress CLI。主仓库始终包含最新的源代码,因此如果您正在安装和测试Congress的特定分支,请克隆python-congressclient的匹配分支。
执行无认证安装的独立Congress的CLI命令
安装python-openstackclient
$ pip install python-openstackclient
克隆主仓库并安装python-congressclient
$ git clone https://github.com/openstack/python-congressclient.git $ cd python-congressclient $ python setup.py install
(可选) 克隆分支;例如,如果你正在使用 OpenStack 和 Congress 的 Ocata 版本
$ git clone -b stable/ocata https://github.com/openstack/python-congressclient.git $ cd python-congressclient $ python setup.py install
阅读 HTML 文档。如果缺少,请安装 python-sphinx 和 oslosphinx 扩展
$ sudo pip install sphinx $ sudo pip install oslosphinx
构建文档 $ make docs
在浏览器中打开 doc/html/index.html
执行 CLI 命令
$ cd python-congressclient For example: $ export CONGRESS_URL="http://127.0.0.1:1789" $ openstack --os-token foo --os-url $CONGRESS_URL (openstack) congress policy create test_policy +--------------+--------------------------------------+ | Field | Value | +--------------+--------------------------------------+ | abbreviation | test_ | | description | | | id | 8595f24a-7d74-45ee-8168-0b3e937b8419 | | kind | nonrecursive | | name | test_policy | | owner_id | user | +--------------+--------------------------------------+ (openstack) congress policy rule create test_policy "p(5)" +---------+--------------------------------------+ | Field | Value | +---------+--------------------------------------+ | comment | None | | id | 5ce7fb18-a227-447e-bec8-93e99c0052a5 | | name | None | | rule | p(5) | +---------+--------------------------------------+ (openstack) congress policy rule list test_policy // ID: 5ce7fb18-a227-447e-bec8-93e99c0052a5 // Name: None p(5) (openstack) exit $
功能
待办事项
项目详情
下载文件
下载适合您平台的文件。如果您不确定选择哪个,请了解更多关于 安装包 的信息。
源分发
python-congressclient-2.0.1.tar.gz (38.8 kB 查看哈希值)
构建分发
关闭
哈希值 for python_congressclient-2.0.1-py3-none-any.whl
算法 | 哈希摘要 | |
---|---|---|
SHA256 | d7c4945d822851fd261d3aa84577c4e06f07c6eca2d61d95880a29b9f0cae511 |
|
MD5 | ceb7392de768f8159263037e5f5bb4d6 |
|
BLAKE2b-256 | 84ceb276665af6289744147810d45a4306996bd6abaa4d0b9ab6dc8c3fbd60f3 |