All Projects → dgzlopes → cloud-detect

dgzlopes / cloud-detect

Licence: MIT license
Module that determines a host's cloud provider.

Programming Languages

python
139335 projects - #7 most used programming language
Makefile
30231 projects

Projects that are alternatives of or similar to cloud-detect

resoto
Resoto - Find leaky resources, manage quota limits, detect drift, and clean up!
Stars: ✭ 562 (+1907.14%)
Mutual labels:  gcp, multicloud
offensive-docker-vps
Create a VPS on Google Cloud Platform or Digital Ocean easily with Offensive Docker included to launch assessment to the targets.
Stars: ✭ 66 (+135.71%)
Mutual labels:  digitalocean, gcp
img ai app boilerplate
An image classification app boilerplate to serve your deep learning models asap!
Stars: ✭ 27 (-3.57%)
Mutual labels:  digitalocean, gcp
warp
WARP one-click script. Add an IPv4, IPv6 or dual-stack CloudFlare WARP network interface and Socks5 proxy for VPS. 一键脚本
Stars: ✭ 950 (+3292.86%)
Mutual labels:  digitalocean, gcp
metadata-one-liners
retrive metadata endpoint data with these one liners.
Stars: ✭ 38 (+35.71%)
Mutual labels:  metadata, gcp
Liquid-Application-Framework
Liquid Application Framework documentation, useful links and sample project
Stars: ✭ 467 (+1567.86%)
Mutual labels:  gcp, multicloud
Microservices-Nodejs-React
Applying Microservices Architecture using nodejs, MongoDB, redis, and handling async communication using nats. Deploying all these in a kubernetes cluster hosted on gcp.
Stars: ✭ 18 (-35.71%)
Mutual labels:  digitalocean, gcp
cloudpods
A cloud-native open-source unified multi-cloud and hybrid-cloud platform. 开源、云原生的多云管理及混合云融合平台
Stars: ✭ 1,469 (+5146.43%)
Mutual labels:  gcp, multicloud
Engine
Deploy your apps on any Cloud provider in just a few seconds
Stars: ✭ 1,132 (+3942.86%)
Mutual labels:  digitalocean, gcp
Komiser
☁️ Cloud Environment Inspector 👮🔒 💰
Stars: ✭ 2,684 (+9485.71%)
Mutual labels:  digitalocean, gcp
Porter
Kubernetes powered PaaS that runs in your own cloud.
Stars: ✭ 498 (+1678.57%)
Mutual labels:  digitalocean, gcp
CloudFrontier
Monitor the internet attack surface of various public cloud environments. Currently supports AWS, GCP, Azure, DigitalOcean and Oracle Cloud.
Stars: ✭ 102 (+264.29%)
Mutual labels:  digitalocean, gcp
Datacatalog Connectors
Commons code used by the Data Catalog connectors, and links for the connectors sample code.
Stars: ✭ 40 (+42.86%)
Mutual labels:  metadata, gcp
webping.cloud
Test your network latency to the nearest cloud provider in AWS, Azure, GCP, Alibaba Cloud, IBM Cloud, Oracle Cloud and DigitalOcean directly from your browser.
Stars: ✭ 60 (+114.29%)
Mutual labels:  digitalocean, gcp
k8s-digester
Add digests to container and init container images in Kubernetes pod and pod template specs. Use either as a mutating admission webhook, or as a client-side KRM function with kpt or kustomize.
Stars: ✭ 65 (+132.14%)
Mutual labels:  gcp
tfquery
tfquery: Run SQL queries on your Terraform infrastructure. Query resources and analyze its configuration using a SQL-powered framework.
Stars: ✭ 297 (+960.71%)
Mutual labels:  gcp
sdk
Home of the JupiterOne SDK
Stars: ✭ 21 (-25%)
Mutual labels:  gcp
gcp-serviceaccount-controller
This is a controller to automatically create gcp service accounts an save them into kubernetes secrets
Stars: ✭ 14 (-50%)
Mutual labels:  gcp
rubigo
[DEPRECATED] Golang vendor utility and package manager
Stars: ✭ 44 (+57.14%)
Mutual labels:  vendoring
waihona
Rust crate for performing cloud storage CRUD actions across major cloud providers e.g aws
Stars: ✭ 46 (+64.29%)
Mutual labels:  gcp

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 Alibaba, AWS, Azure, Digital Ocean, GCP and Oracle Cloud hosts.
  • Fast and supports asyncio
  • Logging integration.
  • Small and extensible.

Usage

>>> from cloud_detect import provider
>>> provider()
'aws'

>>> provider() # when tested in local/non-supported cloud env
'unknown'

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

You can get the list of supported providers using

>>> from cloud_detect import SUPPORTED_PROVIDERS

Installation

Via pip:

pip install cloud-detect

Examples

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.

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 (Vultr)
  • Add codecov
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].