{ "info": { "author": "Nikolay Makhotkin", "author_email": "nikolay.makhotkin@gmail.com", "bugtrack_url": null, "classifiers": [ "Intended Audience :: Information Technology", "Intended Audience :: System Administrators", "License :: OSI Approved :: Apache Software License", "Operating System :: POSIX :: Linux", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.5" ], "description": "# python-klabclient\n\n## Installation\n\nDeveloper installation:\n\n```bash\ngit clone https://github.com/kuberlab/python-klabclient\ncd python-klabclient\npip install -e . \n```\n* for MacOS add --ignore-installed six at the end of the command line\n\nUser installation:\n\n```bash\npip install python-klabclient\n```\n* for MacOS add --ignore-installed six at the end of the command line\n\n\nInstall in virtual environment:\n\n\n```bash\nvirtualenv venv\ncd venv\nbin/pip install python-klabclient\n```\n\n* `klab` console command will be accessed from `venv/bin/klab` path.\n\n\n## Uninstall:\n\n```bash\npip uninstall python-klabclient\n```\n\n* Also, if it is required, delete file `~/.kuberlab/config`.\n\n## Usage\n\n#### Use config for auth (default location is *~/.kuberlab/config*)\n\n```bash\ntouch ~/.kuberlab/config\ncat << EOF >> ~/.kuberlab/config\nbase_url: https://go.kuberlab.com/api/v0.2\ntoken: \nEOF\n```\n\n**Note**: Refer to [Config example](config.yaml.example) to see all possible values.\n\n#### Use environment variables\n\n```bash\n# Set token\nexport KUBERLAB_TOKEN=token\n# Or, use your login/password\nexport KUBERLAB_USERNAME=my@example.com\nexport KUBERLAB_PASSWORD=mypassword\n```\n\n#### Call CLI or see help to take a look on a command list:\n\n```bash\nklab workspace-list\n\n# See help\nklab --help\n```\n\n## App installation example\n\nSee how to install a simple app - [App installation](App_installation.md)\n\n**Note**: Priority for auth parameters: CLI parameters, Env variables, config values.\n\n## Usage as a python library\n\n```python\nfrom klabclient.api import client\n\n# Init session\nses = client.create_session(token='token') # Pick up default base_url\n# Or, use username and password\n# ses = client.create_session(username='username', password='password') # Pick up default base_url\n\nklab = client.Client(session=ses) # Pick up default klab_url\n\nworkspaces = klab.workspaces.list()\n# Print all workspace names\nprint([w.Name for w in workspaces])\n```\n\n\n\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "", "keywords": "", "license": "Apache Software License", "maintainer": "", "maintainer_email": "", "name": "python-klabclient", "package_url": "https://pypi.org/project/python-klabclient/", "platform": "", "project_url": "https://pypi.org/project/python-klabclient/", "project_urls": null, "release_url": "https://pypi.org/project/python-klabclient/1.0.4/", "requires_dist": [ "PyYAML (>=3.10.0)", "cliff (>=2.8.0)", "oslo.utils (>=3.20.0)", "pbr (!=2.1.0,>=2.0.0)", "requests (>=2.14.2)", "six (>=1.9.0)" ], "requires_python": "", "summary": "Kuberlab API Client Library", "version": "1.0.4" }, "last_serial": 3725965, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "034073f94c15d70301d718074305035e", "sha256": "679ff80329ff74cdbffaccce490b49ff51b18b9d3225f9ac0bab4379b8b32da4" }, "downloads": -1, "filename": "python_klabclient-1.0.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "034073f94c15d70301d718074305035e", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 45887, "upload_time": "2018-02-28T12:53:24", "url": "https://files.pythonhosted.org/packages/b4/23/1deb64ca3c5ec043c66abac6f9f302a3c571c108b676897cc0cef2699064/python_klabclient-1.0.0-py2.py3-none-any.whl" } ], "1.0.1": [ { "comment_text": "", "digests": { "md5": "e906133106ce75aa84323df0fc105aca", "sha256": "d8f7959696637f583363b57747013a6fb7b49f6f8449f4dc160b22b9128e0066" }, "downloads": -1, "filename": "python_klabclient-1.0.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "e906133106ce75aa84323df0fc105aca", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 45923, "upload_time": "2018-02-28T18:27:49", "url": "https://files.pythonhosted.org/packages/0c/cf/c4699e05814d2a7fa8e782e99e66951bfd45c2bf77e8882a768d2ec07dbb/python_klabclient-1.0.1-py2.py3-none-any.whl" } ], "1.0.2": [ { "comment_text": "", "digests": { "md5": "862b16d094cb1f74fa20c0f4f2a27b6c", "sha256": "0e87d3389564d389a55a95872ae7f11fde306ed13319afea4e47008ea1b67b91" }, "downloads": -1, "filename": "python_klabclient-1.0.2-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "862b16d094cb1f74fa20c0f4f2a27b6c", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 47607, "upload_time": "2018-03-06T16:51:23", "url": "https://files.pythonhosted.org/packages/64/27/d227ca6c9e853da7f8e1b54bcb7191493fa015806961c9a51e67bcfa1b37/python_klabclient-1.0.2-py2.py3-none-any.whl" } ], "1.0.3": [ { "comment_text": "", "digests": { "md5": "d29c9d9cf40e987069ef5d1e088db39a", "sha256": "3417fda0bd731e45b2155cf9466d4c077c955c2ff055624e96c1415d82cb5f65" }, "downloads": -1, "filename": "python_klabclient-1.0.3-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "d29c9d9cf40e987069ef5d1e088db39a", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 47687, "upload_time": "2018-04-02T10:10:04", "url": "https://files.pythonhosted.org/packages/ec/6b/82f5b054643d99de80a19611b17fe821bf4ea17363f9aa7436e4ff665f5e/python_klabclient-1.0.3-py2.py3-none-any.whl" } ], "1.0.4": [ { "comment_text": "", "digests": { "md5": "89473cc331830173516193e254f5d7b8", "sha256": "6a29ce3b196adedf0b1bb3c5f6aa9fce3e0bd01719872d4dfa3b687d158a2f49" }, "downloads": -1, "filename": "python_klabclient-1.0.4-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "89473cc331830173516193e254f5d7b8", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 47684, "upload_time": "2018-04-02T10:17:21", "url": "https://files.pythonhosted.org/packages/9e/41/806b44083b9021585f407a33509d8140d13b6fe26268bbb06f64c8debde6/python_klabclient-1.0.4-py2.py3-none-any.whl" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "89473cc331830173516193e254f5d7b8", "sha256": "6a29ce3b196adedf0b1bb3c5f6aa9fce3e0bd01719872d4dfa3b687d158a2f49" }, "downloads": -1, "filename": "python_klabclient-1.0.4-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "89473cc331830173516193e254f5d7b8", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 47684, "upload_time": "2018-04-02T10:17:21", "url": "https://files.pythonhosted.org/packages/9e/41/806b44083b9021585f407a33509d8140d13b6fe26268bbb06f64c8debde6/python_klabclient-1.0.4-py2.py3-none-any.whl" } ] }