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.
Metadata
Release files for cloud-detect 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| cloud-detect-0.0.2.tar.gz | 3.2 kB | Without provenance | Details for cloud-detect-0.0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| cloud_detect-0.0.2-py3-none-any.whl | Python 3 | none | any | Details for cloud_detect-0.0.2-py3-none-any.whl |
Total release size: 8.7 kB
Release files / cloud-detect-0.0.2.tar.gz
| Download URL | cloud-detect-0.0.2.tar.gz |
|---|---|
| Size | 3.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
baf8c133086617d270bbff264077c53c0215e45fb0e5e0a3bfa32147a715515d
|
|
BLAKE2b-256 checksum How to use checksums |
f436803237c1cd6cf9b430bbee9fbb0b76f66271abc707bdaa05a2b32617f0cf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.0
|
Release files / cloud_detect-0.0.2-py3-none-any.whl
| Download URL | cloud_detect-0.0.2-py3-none-any.whl |
|---|---|
| Size | 5.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
681fdbc74f1a0c1cde176d12abcac6df68e58c7f780e39a16154649e233c5557
|
|
BLAKE2b-256 checksum How to use checksums |
7bb64023e6ce19d8c71aa872c21bfe39edc269f33b386d7a97ca5d5cdaafbff6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.0
|
Security for cloud-detect 0.0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.