Module for determining your cloud provider.
Project description
cloud-detect
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 and GCP 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' or 'unknown'
Installation
Via pip:
pip install cloud-detect
How to contribute
- Check for open issues or open a fresh issue to start a discussion around a feature idea or a bug.
- Fork the repository on GitHub to start making your changes to the master branch (or branch off of it).
- Write a test which shows that the bug was fixed or that the feature works as expected.
- Send a pull request and bug me until it gets merged and published.
Some things that would be great to have:
- More cloud providers
- Add codecov
- Add automated testing and releases with CircleCI.
Project details
Release history Release notifications | RSS feed
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.1.tar.gz
(3.2 kB
view hashes)
Built Distribution
Close
Hashes for cloud_detect-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1c4ee2f6fc7fc66126347b0ea5826a0c40583503609e21d25620832809a2bf73 |
|
MD5 | c5a88fbc03c8c14b9ac3db35305dd3c7 |
|
BLAKE2b-256 | 5890cc538b7982ca28e0d191dd3bfb8d365726c0b842078ee14bcd33ea176b7c |