Skip to main content

cloud-detect

PyPI - Python Version PyPI PyPI - License Build Status

About

cloud-detect is a Python module that determines a host's cloud provider. Highly inspired by the Go based Satellite, cloud-detect uses the same techniques (file systems and provider metadata) to properly identify cloud providers.

Features

  • Supports identification of AWS, GCP and Digital Ocean hosts.
  • Supports skipping providers identification.
  • Logging integration.
  • Small and extensible.

Usage

>>> from cloud_detect import provider
>>> provider()
'aws'
>>> provider(excluded='aws')
'unknown'

Right now the only possible responses are: 'aws', 'gcp', 'do' or 'unknown'

Installation

Via pip:

pip install cloud-detect

How to contribute

  1. Check for open issues or open a fresh issue to start a discussion around a feature idea or a bug.
  2. Fork the repository on GitHub to start making your changes to the master branch (or branch off of it).
  3. Write a test which shows that the bug was fixed or that the feature works as expected.
  4. Send a pull request and bug me until it gets merged and published.

Some things that would be great to have:

  • Add cloud providers (Azure, Vultr)
  • Add codecov

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cloud-detect-0.0.3.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cloud_detect-0.0.3-py3-none-any.whl (6.3 kB view details)

Uploaded Python 3

File details

Details for the file cloud-detect-0.0.3.tar.gz.

File metadata

  • Download URL: cloud-detect-0.0.3.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.33.0 CPython/3.4.8

File hashes

Hashes for cloud-detect-0.0.3.tar.gz
Algorithm Hash digest
SHA256 6c796399498b4857bd1d42246aea01284f83f995688c806b2304b085013e72be
MD5 fb00f7de0efe296245da0701b5cf3f4c
BLAKE2b-256 02f650b8af866064330ec233303cd16e6a7bea91d6ad25c13adeb31c9bff67bb

See more details on using hashes here.

File details

Details for the file cloud_detect-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: cloud_detect-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 6.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.33.0 CPython/3.4.8

File hashes

Hashes for cloud_detect-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 65c66062b73751ebbb4b26ccc7eea43c624a537e625f443ffb5c100d9901e950
MD5 a2326487ffb47077432cd8f3276e37d0
BLAKE2b-256 fa9ba143ee134d223d7da4bb3e564fb51ddc6c7ae265368bd47d60b655feb701

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page