{ "info": { "author": "Daniel Gonzalez Lopes", "author_email": "danielgonzalezlopes@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Natural Language :: English", "Operating System :: POSIX :: Linux", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Topic :: Software Development :: Libraries :: Python Modules", "Topic :: System :: Networking", "Topic :: System :: Systems Administration" ], "description": "# cloud-detect\n[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/cloud-detect.svg)](https://pypi.org/project/cloud-detect/)\n[![PyPI](https://img.shields.io/pypi/v/cloud-detect.svg)](https://pypi.org/project/cloud-detect/)\n[![PyPI - License](https://img.shields.io/pypi/l/cloud-detect.svg)](https://github.com/dgzlopes/cloud-detect/blob/master/LICENSE.md)\n[![Build Status](https://travis-ci.org/dgzlopes/cloud-detect.svg?branch=master)](https://travis-ci.org/dgzlopes/cloud-detect)\n\n## About\n`cloud-detect` is a Python module that determines a host's cloud provider. Highly inspired by the Go based [Satellite](https://github.com/banzaicloud/satellite), `cloud-detect` uses the same techniques (file systems and provider metadata) to properly identify cloud providers.\n\n## Features\n- Supports identification of AWS, GCP, Azure and Digital Ocean hosts.\n- Supports skipping providers identification.\n- Logging integration.\n- Small and extensible.\n\n## Usage\n\n```\n>>> from cloud_detect import provider\n>>> provider()\n'aws'\n>>> provider(excluded='aws')\n'unknown'\n```\n> Right now the only possible responses are: 'aws', 'gcp', 'do', 'azure' or 'unknown'\n## Installation\nVia pip:\n```\npip install cloud-detect\n```\n\n## Examples\n[Termination-handler](https://github.com/dgzlopes/termination-handler) uses cloud-detect to keep the handling of termination notices on spot/preemptible instances cloud-agnostic, making easier to operate the same tooling in various distinct environments.\n\n## How to contribute\n1. Check for open issues or open a fresh issue to start a discussion around a feature idea or a bug.\n2. Fork [the repository](https://github.com/dgzlopes/cloud-detect) on GitHub to start making your changes to the master branch (or branch off of it).\n3. Write a test which shows that the bug was fixed or that the feature works as expected.\n4. Send a [pull request](https://help.github.com/en/articles/creating-a-pull-request-from-a-fork) and bug [me](https://github.com/dgzlopes) until it gets merged and published.\n\nSome things that would be great to have:\n- Add cloud providers (Vultr, Oracle)\n- Add codecov\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/dgzlopes/cloud-detect", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "cloud-detect", "package_url": "https://pypi.org/project/cloud-detect/", "platform": "", "project_url": "https://pypi.org/project/cloud-detect/", "project_urls": { "Homepage": "https://github.com/dgzlopes/cloud-detect" }, "release_url": "https://pypi.org/project/cloud-detect/0.0.4/", "requires_dist": [ "requests (<3,>=2.21.0)" ], "requires_python": ">=3.4", "summary": "Module that determines a host's cloud provider", "version": "0.0.4" }, "last_serial": 5730210, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "c5a88fbc03c8c14b9ac3db35305dd3c7", "sha256": "1c4ee2f6fc7fc66126347b0ea5826a0c40583503609e21d25620832809a2bf73" }, "downloads": -1, "filename": "cloud_detect-0.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "c5a88fbc03c8c14b9ac3db35305dd3c7", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.4", "size": 5461, "upload_time": "2019-08-02T10:48:58", "url": "https://files.pythonhosted.org/packages/58/90/cc538b7982ca28e0d191dd3bfb8d365726c0b842078ee14bcd33ea176b7c/cloud_detect-0.0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "8a77f38a658de9b22ce4140c80d0a78d", "sha256": "bb0963f4274fe55f3812672608926ad54a5f5a3f8c98d352c36b5404ef14c890" }, "downloads": -1, "filename": "cloud-detect-0.0.1.tar.gz", "has_sig": false, "md5_digest": "8a77f38a658de9b22ce4140c80d0a78d", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.4", "size": 3231, "upload_time": "2019-08-02T10:49:00", "url": "https://files.pythonhosted.org/packages/06/09/31800593461b839acd147262b51aac815c60bd130c11d44d5a4b935c49c4/cloud-detect-0.0.1.tar.gz" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "b0f50c629c01a428b09f937b300d4a53", "sha256": "681fdbc74f1a0c1cde176d12abcac6df68e58c7f780e39a16154649e233c5557" }, "downloads": -1, "filename": "cloud_detect-0.0.2-py3-none-any.whl", "has_sig": false, "md5_digest": "b0f50c629c01a428b09f937b300d4a53", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.4", "size": 5455, "upload_time": "2019-08-02T10:51:34", "url": "https://files.pythonhosted.org/packages/7b/b6/4023e6ce19d8c71aa872c21bfe39edc269f33b386d7a97ca5d5cdaafbff6/cloud_detect-0.0.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "552d1fc4e06a28308f1256a8ab24a388", "sha256": "baf8c133086617d270bbff264077c53c0215e45fb0e5e0a3bfa32147a715515d" }, "downloads": -1, "filename": "cloud-detect-0.0.2.tar.gz", "has_sig": false, "md5_digest": "552d1fc4e06a28308f1256a8ab24a388", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.4", "size": 3219, "upload_time": "2019-08-02T10:51:35", "url": "https://files.pythonhosted.org/packages/f4/36/803237c1cd6cf9b430bbee9fbb0b76f66271abc707bdaa05a2b32617f0cf/cloud-detect-0.0.2.tar.gz" } ], "0.0.3": [ { "comment_text": "", "digests": { "md5": "a2326487ffb47077432cd8f3276e37d0", "sha256": "65c66062b73751ebbb4b26ccc7eea43c624a537e625f443ffb5c100d9901e950" }, "downloads": -1, "filename": "cloud_detect-0.0.3-py3-none-any.whl", "has_sig": false, "md5_digest": "a2326487ffb47077432cd8f3276e37d0", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.4", "size": 6324, "upload_time": "2019-08-22T11:00:06", "url": "https://files.pythonhosted.org/packages/fa/9b/a143ee134d223d7da4bb3e564fb51ddc6c7ae265368bd47d60b655feb701/cloud_detect-0.0.3-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "fb00f7de0efe296245da0701b5cf3f4c", "sha256": "6c796399498b4857bd1d42246aea01284f83f995688c806b2304b085013e72be" }, "downloads": -1, "filename": "cloud-detect-0.0.3.tar.gz", "has_sig": false, "md5_digest": "fb00f7de0efe296245da0701b5cf3f4c", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.4", "size": 3542, "upload_time": "2019-08-22T11:00:08", "url": "https://files.pythonhosted.org/packages/02/f6/50b8af866064330ec233303cd16e6a7bea91d6ad25c13adeb31c9bff67bb/cloud-detect-0.0.3.tar.gz" } ], "0.0.4": [ { "comment_text": "", "digests": { "md5": "e554b924b1d1af941ab77db11c33bbd7", "sha256": "07ac59e9a2dc95ff847c5377d863b7dc9b8c98b8089f703a959435864c4f0e6d" }, "downloads": -1, "filename": "cloud_detect-0.0.4-py3-none-any.whl", "has_sig": false, "md5_digest": "e554b924b1d1af941ab77db11c33bbd7", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.4", "size": 7259, "upload_time": "2019-08-26T10:59:16", "url": "https://files.pythonhosted.org/packages/35/c1/fb1b099cbe94afef6eb4d197d9243d48424d0ab10a9cbf5add05dc0eeee0/cloud_detect-0.0.4-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "73e8b5c7215dd4ecc0a0d78e007c0649", "sha256": "14fedb7316f5704c1d338e46dd326043077c7bf0ea8e0c6f68ad366a0dcbd6da" }, "downloads": -1, "filename": "cloud-detect-0.0.4.tar.gz", "has_sig": false, "md5_digest": "73e8b5c7215dd4ecc0a0d78e007c0649", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.4", "size": 3849, "upload_time": "2019-08-26T10:59:17", "url": "https://files.pythonhosted.org/packages/ff/5d/7285fed78b5e8f19456a002598d6b50d6bc267134b2da0d8fc98b8cc2f51/cloud-detect-0.0.4.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "e554b924b1d1af941ab77db11c33bbd7", "sha256": "07ac59e9a2dc95ff847c5377d863b7dc9b8c98b8089f703a959435864c4f0e6d" }, "downloads": -1, "filename": "cloud_detect-0.0.4-py3-none-any.whl", "has_sig": false, "md5_digest": "e554b924b1d1af941ab77db11c33bbd7", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.4", "size": 7259, "upload_time": "2019-08-26T10:59:16", "url": "https://files.pythonhosted.org/packages/35/c1/fb1b099cbe94afef6eb4d197d9243d48424d0ab10a9cbf5add05dc0eeee0/cloud_detect-0.0.4-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "73e8b5c7215dd4ecc0a0d78e007c0649", "sha256": "14fedb7316f5704c1d338e46dd326043077c7bf0ea8e0c6f68ad366a0dcbd6da" }, "downloads": -1, "filename": "cloud-detect-0.0.4.tar.gz", "has_sig": false, "md5_digest": "73e8b5c7215dd4ecc0a0d78e007c0649", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.4", "size": 3849, "upload_time": "2019-08-26T10:59:17", "url": "https://files.pythonhosted.org/packages/ff/5d/7285fed78b5e8f19456a002598d6b50d6bc267134b2da0d8fc98b8cc2f51/cloud-detect-0.0.4.tar.gz" } ] }