{ "info": { "author": "Yellow Pages Inc.", "author_email": "cloud@yp.ca", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "License :: OSI Approved :: Apache Software License", "Operating System :: OS Independent", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Programming Language :: Python :: 3 :: Only" ], "description": "Atlas Broker\n============\n\nAtlas Broker for Kubernetes Service Catalog\n\n`Code documentation (sphinx) `__\n\nDocker\n------\n\nThe docker folder provides everything to create an image that will serve Service Catalog requests in Kubernetes.\n\nAtlasbroker module\n------------------\n\nInstallation\n^^^^^^^^^^^^\n\nThis package is available for Python 3.5+.\n\n.. code:: bash\n\n pip3 install atlasbroker\n\nOr install the development version from github:\n\n.. code:: bash\n\n pip3 install git+https://github.com/mickybart/python-atlasbroker.git\n\nPrerequisite\n^^^^^^^^^^^^\n\nExamples in this README are using the secret.json file to inject Atlas and Mongo credentials.\nOf course you can use any other solution provided by your infrastructure.\n\n.. code:: python\n\n # Secrets structure\n #\n secrets = {\n \"mongo\" : {\n \"uri\": \"\",\n \"db\": \"\",\n \"timeoutms\": 5000,\n \"collection\" : \"\"\n },\n \"atlas\" : {\n \"user\": \"\",\n \"password\" : \"\",\n \"group\" : \"\"\n }\n }\n\nQuick start\n^^^^^^^^^^^\n\n.. code:: python\n\n from atlasbroker.broker import Broker\n from atlasbroker.config import Config\n\n secrets = Config.load_json(\"secret.json\")\n\n config = Config(secrets[\"atlas\"], secrets[\"mongo\"])\n\n Broker(config).run()\n\nCustom Config\n^^^^^^^^^^^^^\n\nThe class Config is the main way to customize the broker. All important functions like \ngenerate credentials, database name, permissions of the database user, UUID, etc are exposed on this class.\n\nPlease read the Code documentation for more details.\n\n.. code:: python\n\n from atlasbroker.broker import Broker\n from atlasbroker.config import Config\n\n secrets = Config.load_json(\"secret.json\")\n\n class CustomConfig(Config):\n PARAMETER_NAMESPACE=\"ns\"\n\n def generate_binding_username(self, binding):\n return binding.binding_id + '-rw'\n\n def generate_instance_dbname(self, instance):\n return instance.parameters[self.PARAMETER_NAMESPACE]\n\n config = CustomConfig(secrets[\"atlas\"], secrets[\"mongo\"])\n\n Broker(config).run()\n\nError Types\n-----------\n\nExceptions\n^^^^^^^^^^\n\n- ErrClusterNotFound\n Cluster not found\n- ErrClusterConfig\n Cluster configuration not found\n- ErrStorageMongoConnection\n The storage is not able to communicate with MongoDB\n- ErrStorageTypeUnsupported\n Type unsupported\n- ErrStorageRemoveInstance\n Failed to remove the instance\n- ErrStorageRemoveBinding\n Failed to remove the binding\n- ErrStorageStore\n Failed to store the instance or binding\n- ErrStorageFindInstance\n Failed to find the instance\n- ErrPlanUnsupported\n Plan not supported\n\nInternal Notes\n--------------\n\n`Code documentation (sphinx) `__\n\nBugs or Issues\n--------------\n\nPlease report bugs, issues or feature requests to `Github\nIssues `__\n\n\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/mickybart/python-atlasbroker", "keywords": "atlas,mongo,mongodb,cloud,kubernetes,broker", "license": "Apache License 2.0", "maintainer": "", "maintainer_email": "", "name": "atlasbroker", "package_url": "https://pypi.org/project/atlasbroker/", "platform": "", "project_url": "https://pypi.org/project/atlasbroker/", "project_urls": { "Homepage": "https://github.com/mickybart/python-atlasbroker" }, "release_url": "https://pypi.org/project/atlasbroker/2.0.0/", "requires_dist": [ "flask", "openbrokerapi (>=2.0.0)", "pymongo", "pwgen", "atlasapi" ], "requires_python": ">=3.5", "summary": "Kubernetes Broker for MongoDB Atlas Cloud provider", "version": "2.0.0" }, "last_serial": 3800184, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "f2847af9d07cf327d418906c774a6d12", "sha256": "68ebcd635d91c3757dbbdb23f1c5803b86a7ecd863960b1a858d9843b96ec7e4" }, "downloads": -1, "filename": "atlasbroker-1.0.0-py3-none-any.whl", "has_sig": false, "md5_digest": "f2847af9d07cf327d418906c774a6d12", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.5", "size": 19865, "upload_time": "2018-01-08T17:37:07", "url": "https://files.pythonhosted.org/packages/96/07/14736cfef8c64c326acacad4486ed0df35839c5497ec3335711c17802c89/atlasbroker-1.0.0-py3-none-any.whl" } ], "1.1.0": [ { "comment_text": "", "digests": { "md5": "e4f42271e0bb0f39aa47a1c4b9428253", "sha256": "667d8a19466b4d078bae52611c5ed721f789344d32bf4583c70f596d25aa0b0c" }, "downloads": -1, "filename": "atlasbroker-1.1.0-py3-none-any.whl", "has_sig": false, "md5_digest": "e4f42271e0bb0f39aa47a1c4b9428253", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.5", "size": 19564, "upload_time": "2018-01-09T20:23:29", "url": "https://files.pythonhosted.org/packages/d4/a6/0850ff9e0a2ccc300a74662b2a53d5b33c3a67f855c2132a2929af007b8e/atlasbroker-1.1.0-py3-none-any.whl" } ], "1.1.1": [ { "comment_text": "", "digests": { "md5": "9d9f3203d6d897764db27a27662d578c", "sha256": "c4e4a8273e3aecbf15d2d68bb930d32f34cb04f3b4bb604701e2454fafe5acf8" }, "downloads": -1, "filename": "atlasbroker-1.1.1-py3-none-any.whl", "has_sig": false, "md5_digest": "9d9f3203d6d897764db27a27662d578c", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.5", "size": 19512, "upload_time": "2018-01-30T15:21:09", "url": "https://files.pythonhosted.org/packages/96/b7/5d3fb3ab318638ca81b926e2ab388152a47aeb68153997b51fb3392598a3/atlasbroker-1.1.1-py3-none-any.whl" } ], "1.1.2": [ { "comment_text": "", "digests": { "md5": "1bcdfd482689803c98172804a38c183e", "sha256": "fb0aa56937b89aba811d32bb074e9ee250ad666a8be134e9c5cdb166975a4456" }, "downloads": -1, "filename": "atlasbroker-1.1.2-py3-none-any.whl", "has_sig": false, "md5_digest": "1bcdfd482689803c98172804a38c183e", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.5", "size": 19516, "upload_time": "2018-01-30T15:30:04", "url": "https://files.pythonhosted.org/packages/08/c9/ee16f2e594c7ce64fd8271c30bfb7b99ad8891dca859e52333e34b6bf323/atlasbroker-1.1.2-py3-none-any.whl" } ], "1.1.3": [ { "comment_text": "", "digests": { "md5": "948f97f949588d845e3a6d8b424221c3", "sha256": "d2a9988936e6404e67f90af028004a102c7562d27518cb747f0a781a9a1d85f0" }, "downloads": -1, "filename": "atlasbroker-1.1.3-py3-none-any.whl", "has_sig": false, "md5_digest": "948f97f949588d845e3a6d8b424221c3", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.5", "size": 19529, "upload_time": "2018-03-13T13:45:27", "url": "https://files.pythonhosted.org/packages/22/05/44668afc23d2fdf6a62a9ddab809f0e69460ed45530cb01ef102215a8eb4/atlasbroker-1.1.3-py3-none-any.whl" } ], "2.0.0": [ { "comment_text": "", "digests": { "md5": "d7106b0a27e61188f111b1a2fe3d7d5d", "sha256": "7f9529495155496d96d1aa9ef4bb985bad23c0f48bdb3d1a6f6c3f0e07edc009" }, "downloads": -1, "filename": "atlasbroker-2.0.0-py3-none-any.whl", "has_sig": false, "md5_digest": "d7106b0a27e61188f111b1a2fe3d7d5d", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.5", "size": 18062, "upload_time": "2018-04-23T19:40:15", "url": "https://files.pythonhosted.org/packages/b3/9a/a0ba7e3304a2e2543e92c98e76f6eeffabbd5d6ecb0380233148deaef8be/atlasbroker-2.0.0-py3-none-any.whl" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "d7106b0a27e61188f111b1a2fe3d7d5d", "sha256": "7f9529495155496d96d1aa9ef4bb985bad23c0f48bdb3d1a6f6c3f0e07edc009" }, "downloads": -1, "filename": "atlasbroker-2.0.0-py3-none-any.whl", "has_sig": false, "md5_digest": "d7106b0a27e61188f111b1a2fe3d7d5d", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.5", "size": 18062, "upload_time": "2018-04-23T19:40:15", "url": "https://files.pythonhosted.org/packages/b3/9a/a0ba7e3304a2e2543e92c98e76f6eeffabbd5d6ecb0380233148deaef8be/atlasbroker-2.0.0-py3-none-any.whl" } ] }