{ "info": { "author": "Zach Sailer", "author_email": "zachsailer@gmail.com", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: MIT License", "Programming Language :: Python", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: Implementation :: CPython", "Programming Language :: Python :: Implementation :: PyPy" ], "description": "\n# kubeconf\n\n**Lightweight Python module for creating, manipulating, and editing kubeconfig files**\n\n*Why not use or wrap `kubectl config`?*\n`kubectl config` is great and writing a Python wrapper is a fine solution. However, `kubectl config` is quite limited in functionality. I wanted more control over my kubernetes config. *kubeconfig* gives me that control. It doesn't use *kubectl* at all. Rather, it reads, edits, and writes config files entirely on its own. \n\n## Getting starting\n\nInstall this package using pip:\n```\npip install kubeconf\n```\n\n**Basic Usage**\n\n```python\nfrom kubeconf import KubeConf\n\nk = KubeConf(path='path/to/config')\n\n# Open the file\nk.open()\n\n# Add a cluster\nk.add_cluster(\n name='mycluster',\n server='...',\n certificate_authority_data='...',\n)\n\n# Add a user for that cluster\nk.add_user(\n user='me'\n)\n\n# Add a context to map the user to the cluster\nk.add_context(\n name='mycontext',\n cluster_name='mycluster',\n user_name='me'\n)\n\n# Commit change to the file.\nk.close()\n```\n\n## Developing\n\nDownload and install this repo from source, and move into the base directory.\n```\ngit clone https://github.com/Zsailer/kubeconf\ncd kubeconf\n```\nIf you use [pipenv](https://pipenv.readthedocs.io/en/latest/), you can install a developement version:\n```\npipenv install --dev\n``` \n\nOtherwise you can install a development version using pip\n```\npip install -e .\n```\n\n## Licensing\n\nThe code in this project is licensed under MIT license.\n\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/Zsailer/kubeconf", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "kubeconf", "package_url": "https://pypi.org/project/kubeconf/", "platform": "", "project_url": "https://pypi.org/project/kubeconf/", "project_urls": { "Homepage": "https://github.com/Zsailer/kubeconf" }, "release_url": "https://pypi.org/project/kubeconf/0.0.5/", "requires_dist": null, "requires_python": "", "summary": "Lightweight Python module for creating, manipulating, and editing kubeconfig files", "version": "0.0.5" }, "last_serial": 4404374, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "107394c2ff2098e030921687449eaca0", "sha256": "03b5b656188794426b85caecc3f17b8b0cc1406c581b024b72333bf502a10f5f" }, "downloads": -1, "filename": "kubeconf-0.0.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "107394c2ff2098e030921687449eaca0", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 4250, "upload_time": "2018-10-19T00:11:11", "url": "https://files.pythonhosted.org/packages/a3/15/04e52083e465d7ffdabd3d874baf2918eabca0de6f73160bbb12aa0b3c7e/kubeconf-0.0.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "8a1c7b222b8ae76a747bacd9e7ae06ad", "sha256": "c9bf3b44d20ddbbc11b7ac926ebadea1376a9bddf6599a1d9df9514d7d32b448" }, "downloads": -1, "filename": "kubeconf-0.0.1.tar.gz", "has_sig": false, "md5_digest": "8a1c7b222b8ae76a747bacd9e7ae06ad", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4055, "upload_time": "2018-10-19T00:11:13", "url": "https://files.pythonhosted.org/packages/38/a4/fd62536b087cf1322ea1ed357c840d0f4d108b15143a4816841d83f90edb/kubeconf-0.0.1.tar.gz" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "7bb6c86b0885ab58243ec56ae192034d", "sha256": "affad490fed1cc8c93c87512c144223b3e60d464c7a84f0c7d2ec06f872cd0d2" }, "downloads": -1, "filename": "kubeconf-0.0.2-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "7bb6c86b0885ab58243ec56ae192034d", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 4402, "upload_time": "2018-10-22T16:30:53", "url": "https://files.pythonhosted.org/packages/e0/10/9be729f9d52c67033c87c7d080af3a2b5e8e89e62c7fb23e2859f1f68017/kubeconf-0.0.2-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "01a4a085033bb3b006272e6807595a0d", "sha256": "bfcf342ee8615cc9e71b9dc6250bac158e154360b96b393d24b9e1cc886c5d75" }, "downloads": -1, "filename": "kubeconf-0.0.2.tar.gz", "has_sig": false, "md5_digest": "01a4a085033bb3b006272e6807595a0d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4199, "upload_time": "2018-10-22T16:30:54", "url": "https://files.pythonhosted.org/packages/77/61/0d5acee776d1124cac38c85a010b88caede60bcf119ece9e08ecdae5c006/kubeconf-0.0.2.tar.gz" } ], "0.0.3": [ { "comment_text": "", "digests": { "md5": "97591b495c5c91eefb2bade78399383a", "sha256": "5f6956e75e54891d52d10732c50db712aedb78862cd527cce0bbc2fcb054ae23" }, "downloads": -1, "filename": "kubeconf-0.0.3-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "97591b495c5c91eefb2bade78399383a", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 5395, "upload_time": "2018-10-22T23:50:12", "url": "https://files.pythonhosted.org/packages/86/9b/d172d1e08401c63e6048d0502c508fdef1fd6b69e9b3860b42e4906e1663/kubeconf-0.0.3-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "faf3a21c6643a2358eefaf3af8307b80", "sha256": "22722ded6a79cd48836656a2c391a6562a4af9d1f8852ca0d0902a318a0b55b7" }, "downloads": -1, "filename": "kubeconf-0.0.3.tar.gz", "has_sig": false, "md5_digest": "faf3a21c6643a2358eefaf3af8307b80", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4392, "upload_time": "2018-10-22T23:50:13", "url": "https://files.pythonhosted.org/packages/73/60/da296ef962fd38ecc24bd7f327f5c32e2e547ac659a348e4fc333fd82520/kubeconf-0.0.3.tar.gz" } ], "0.0.4": [ { "comment_text": "", "digests": { "md5": "f4f92853440979c27ba2844dda06ed37", "sha256": "ef1d146c485b6695d42521fbde1e55f252a7f79e6a37bfd1932e9b0128e5201f" }, "downloads": -1, "filename": "kubeconf-0.0.4-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "f4f92853440979c27ba2844dda06ed37", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 5406, "upload_time": "2018-10-22T23:55:49", "url": "https://files.pythonhosted.org/packages/28/d9/739beafca65222e3a5e265cc6ec1f048db76cb5e35ff48131fe599d34464/kubeconf-0.0.4-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "6ad610ac08919c06a45840f68285f383", "sha256": "64aac2fbe3d872b76af4eb80ccbd67f7b3c04cd135873085038c3513a2f821da" }, "downloads": -1, "filename": "kubeconf-0.0.4.tar.gz", "has_sig": false, "md5_digest": "6ad610ac08919c06a45840f68285f383", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4395, "upload_time": "2018-10-22T23:55:51", "url": "https://files.pythonhosted.org/packages/d5/ba/a0aa97e0102d94cc770af57124a52baafc00e442f79a57cabce2a5c27112/kubeconf-0.0.4.tar.gz" } ], "0.0.5": [ { "comment_text": "", "digests": { "md5": "64c8a0bc96957784c9e40ffc7e639c21", "sha256": "36b82db238738f4bb33f14abe4f59459df2c26574a2a26ac875f12511c0d653f" }, "downloads": -1, "filename": "kubeconf-0.0.5-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "64c8a0bc96957784c9e40ffc7e639c21", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 5457, "upload_time": "2018-10-23T00:49:16", "url": "https://files.pythonhosted.org/packages/43/6e/8ca3f89ddf94a27b7162f4c1728bb6cb3d03ff89ac033c311cd8581ad9a0/kubeconf-0.0.5-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "9e83a845a6e879ed9c93e56c8f324096", "sha256": "7e04dfe796512902a6fc37a70a6fdb9158027bde7320d53ca1ead191b7e5aace" }, "downloads": -1, "filename": "kubeconf-0.0.5.tar.gz", "has_sig": false, "md5_digest": "9e83a845a6e879ed9c93e56c8f324096", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4439, "upload_time": "2018-10-23T00:49:17", "url": "https://files.pythonhosted.org/packages/49/21/021449dc75f145e9b8ffce774e5af2fd0a6da926745633ee0884c53a6c13/kubeconf-0.0.5.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "64c8a0bc96957784c9e40ffc7e639c21", "sha256": "36b82db238738f4bb33f14abe4f59459df2c26574a2a26ac875f12511c0d653f" }, "downloads": -1, "filename": "kubeconf-0.0.5-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "64c8a0bc96957784c9e40ffc7e639c21", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 5457, "upload_time": "2018-10-23T00:49:16", "url": "https://files.pythonhosted.org/packages/43/6e/8ca3f89ddf94a27b7162f4c1728bb6cb3d03ff89ac033c311cd8581ad9a0/kubeconf-0.0.5-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "9e83a845a6e879ed9c93e56c8f324096", "sha256": "7e04dfe796512902a6fc37a70a6fdb9158027bde7320d53ca1ead191b7e5aace" }, "downloads": -1, "filename": "kubeconf-0.0.5.tar.gz", "has_sig": false, "md5_digest": "9e83a845a6e879ed9c93e56c8f324096", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4439, "upload_time": "2018-10-23T00:49:17", "url": "https://files.pythonhosted.org/packages/49/21/021449dc75f145e9b8ffce774e5af2fd0a6da926745633ee0884c53a6c13/kubeconf-0.0.5.tar.gz" } ] }