ikeys-cli


Nameikeys-cli JSON
Version 0.3.7 PyPI version JSON
home_pagehttps://github.com/MrLYC/ikeys-cli
Summaryikeystone python client
upload_time2017-02-14 09:27:56
maintainerNone
docs_urlNone
authorMrLYC
requires_pythonNone
licenseMIT
keywords ikeystone
VCS
bugtrack_url
requirements mock requests IFV
Travis-CI
Coveralis test coverage No Coveralis.
            ikeys-cli
=========

|Build Status| |Codacy Badge| |codecov| |PyPI|

ikeystone python client

Installation
------------

PYPI
~~~~

.. code:: shell

    pip install ikeys-cli

GIT
~~~

.. code:: shell

    pip install https://github.com/MrLYC/ikeys-cli/archive/master.zip

Quick start
-----------

.. code:: python

    from ikeys_cli import IKeytoneAPI
    api = IKeytoneAPI(url="https://ikeystone.example.com/v1/")
    api.authenticate(
        domain="server_domain",
        user="server_user",
        password="server_password",
        project="server_project",
    )
    result = api.domain.request.verify({
        "domian": "client_domain",
        "user": "client_user",
        "project": "client_project",
        "expires": "client_expires",
        "nonce": "client_nonce",
        "signature": "client_signature",
    })

    assert(result.errno == 0, result.errmsg)
    print result.data

.. |Build Status| image:: https://travis-ci.org/MrLYC/ikeys-cli.svg?branch=master
   :target: https://travis-ci.org/MrLYC/ikeys-cli
.. |Codacy Badge| image:: https://api.codacy.com/project/badge/Grade/a60c4c155da142a7beea2d454495f347
   :target: https://www.codacy.com/app/imyikong/ikeys-cli?utm_source=github.com&utm_medium=referral&utm_content=MrLYC/ikeys-cli&utm_campaign=badger
.. |codecov| image:: https://codecov.io/gh/MrLYC/ikeys-cli/branch/master/graph/badge.svg
   :target: https://codecov.io/gh/MrLYC/ikeys-cli
.. |PyPI| image:: https://img.shields.io/pypi/pyversions/ikeys-cli.svg
   :target: https://pypi.python.org/pypi/ikeys-cli
            

Raw data

            {
    "maintainer": null, 
    "docs_url": null, 
    "requires_python": null, 
    "maintainer_email": null, 
    "cheesecake_code_kwalitee_id": null, 
    "coveralis": false, 
    "keywords": "ikeystone", 
    "upload_time": "2017-02-14 09:27:56", 
    "requirements": [
        {
            "name": "mock", 
            "specs": [
                [
                    ">=", 
                    "1.3.0"
                ]
            ]
        }, 
        {
            "name": "requests", 
            "specs": [
                [
                    ">=", 
                    "2.7.0"
                ]
            ]
        }, 
        {
            "name": "IFV", 
            "specs": [
                [
                    ">=", 
                    "0.1.4"
                ]
            ]
        }
    ], 
    "author": "MrLYC", 
    "home_page": "https://github.com/MrLYC/ikeys-cli", 
    "github_user": "MrLYC", 
    "download_url": "https://pypi.python.org/packages/b5/c6/b007ded8054ae95274915e1034836e4294dc1e97137199a578b977d2fcb8/ikeys-cli-0.3.7.tar.gz", 
    "platform": "UNKNOWN", 
    "version": "0.3.7", 
    "cheesecake_documentation_id": null, 
    "description": "ikeys-cli\n=========\n\n|Build Status| |Codacy Badge| |codecov| |PyPI|\n\nikeystone python client\n\nInstallation\n------------\n\nPYPI\n~~~~\n\n.. code:: shell\n\n    pip install ikeys-cli\n\nGIT\n~~~\n\n.. code:: shell\n\n    pip install https://github.com/MrLYC/ikeys-cli/archive/master.zip\n\nQuick start\n-----------\n\n.. code:: python\n\n    from ikeys_cli import IKeytoneAPI\n    api = IKeytoneAPI(url=\"https://ikeystone.example.com/v1/\")\n    api.authenticate(\n        domain=\"server_domain\",\n        user=\"server_user\",\n        password=\"server_password\",\n        project=\"server_project\",\n    )\n    result = api.domain.request.verify({\n        \"domian\": \"client_domain\",\n        \"user\": \"client_user\",\n        \"project\": \"client_project\",\n        \"expires\": \"client_expires\",\n        \"nonce\": \"client_nonce\",\n        \"signature\": \"client_signature\",\n    })\n\n    assert(result.errno == 0, result.errmsg)\n    print result.data\n\n.. |Build Status| image:: https://travis-ci.org/MrLYC/ikeys-cli.svg?branch=master\n   :target: https://travis-ci.org/MrLYC/ikeys-cli\n.. |Codacy Badge| image:: https://api.codacy.com/project/badge/Grade/a60c4c155da142a7beea2d454495f347\n   :target: https://www.codacy.com/app/imyikong/ikeys-cli?utm_source=github.com&utm_medium=referral&utm_content=MrLYC/ikeys-cli&utm_campaign=badger\n.. |codecov| image:: https://codecov.io/gh/MrLYC/ikeys-cli/branch/master/graph/badge.svg\n   :target: https://codecov.io/gh/MrLYC/ikeys-cli\n.. |PyPI| image:: https://img.shields.io/pypi/pyversions/ikeys-cli.svg\n   :target: https://pypi.python.org/pypi/ikeys-cli", 
    "lcname": "ikeys-cli", 
    "bugtrack_url": null, 
    "github": true, 
    "name": "ikeys-cli", 
    "license": "MIT", 
    "travis_ci": true, 
    "github_project": "ikeys-cli", 
    "summary": "ikeystone python client", 
    "split_keywords": [
        "ikeystone"
    ], 
    "author_email": "imyikong@gmail.com", 
    "urls": [
        {
            "has_sig": false, 
            "upload_time": "2017-02-14T09:27:56", 
            "comment_text": "", 
            "python_version": "source", 
            "url": "https://pypi.python.org/packages/b5/c6/b007ded8054ae95274915e1034836e4294dc1e97137199a578b977d2fcb8/ikeys-cli-0.3.7.tar.gz", 
            "md5_digest": "1e5a7983654df5380fab482e2218a2eb", 
            "downloads": 0, 
            "filename": "ikeys-cli-0.3.7.tar.gz", 
            "packagetype": "sdist", 
            "path": "b5/c6/b007ded8054ae95274915e1034836e4294dc1e97137199a578b977d2fcb8/ikeys-cli-0.3.7.tar.gz", 
            "size": 4385
        }
    ], 
    "_id": null, 
    "cheesecake_installability_id": null
}