View instance information on all supported cloud providers
Project description
# cloudview
View instance information on all supported cloud providers
## Usage
```
Usage: cloudview [OPTIONS]
Options:
-a, --all show all instances
-o, --output text|html|json|JSON output type
-p, --port PORT run a web server on port PORT
-r, --reverse reverse sort
-s, --sort name|time|status sort type
-t, --time TIME_FORMAT time format as used by strftime(3)
-h, --help show this help message and exit
-d, --debug debug mode
-V, --version show version and exit
```
**NOTE**: Use `--output JSON` to dump _all_ available information received from each provider's SDK.
This script is best run with Docker to have all dependencies in just one packages, but it may be run stand-alone on systems with Python 3.4+
## To run stand-alone:
```
pip install --user cloudview
```
**NOTE**: You may need to upgrade `pip` before with `pip install --user --upgrade pip`.
## To run with Docker:
Build image with:
```
docker build -t cloud --pull .
```
Run with:
```
docker run --rm -v ~/.aws:/root/.aws:ro -v "$GOOGLE_APPLICATION_CREDENTIALS:$GOOGLE_APPLICATION_CREDENTIALS:ro" -e AZURE_TENANT_ID -e AZURE_SUBSCRIPTION_ID -e AZURE_CLIENT_SECRET -e AZURE_CLIENT_ID -e GOOGLE_APPLICATION_CREDENTIALS=/root/$(basename $GOOGLE_APPLICATION_CREDENTIALS) cloudview --all --port 7777
```
To set up a web server showing this information running on port 7777:
```
docker run --rm -d -p 7777:7777 -v ~/.aws:/root/.aws:ro -v "$GOOGLE_APPLICATION_CREDENTIALS:$GOOGLE_APPLICATION_CREDENTIALS:ro" -e AZURE_TENANT_ID -e AZURE_SUBSCRIPTION_ID -e AZURE_CLIENT_SECRET -e AZURE_CLIENT_ID -e GOOGLE_APPLICATION_CREDENTIALS cloudview --all --port 7777
```
## Run the web server with [Docker Compose](https://docs.docker.com/compose/install/):
```
docker-compose up -d
```
To stop the web server:
```
docker-compose down
```
To rebuild with latest version:
```
docker-compose build --pull
```
## TODO
- Search by tag
- Sort by instance type
- Use apache-libcloud?
- Expose filtering functionality
View instance information on all supported cloud providers
## Usage
```
Usage: cloudview [OPTIONS]
Options:
-a, --all show all instances
-o, --output text|html|json|JSON output type
-p, --port PORT run a web server on port PORT
-r, --reverse reverse sort
-s, --sort name|time|status sort type
-t, --time TIME_FORMAT time format as used by strftime(3)
-h, --help show this help message and exit
-d, --debug debug mode
-V, --version show version and exit
```
**NOTE**: Use `--output JSON` to dump _all_ available information received from each provider's SDK.
This script is best run with Docker to have all dependencies in just one packages, but it may be run stand-alone on systems with Python 3.4+
## To run stand-alone:
```
pip install --user cloudview
```
**NOTE**: You may need to upgrade `pip` before with `pip install --user --upgrade pip`.
## To run with Docker:
Build image with:
```
docker build -t cloud --pull .
```
Run with:
```
docker run --rm -v ~/.aws:/root/.aws:ro -v "$GOOGLE_APPLICATION_CREDENTIALS:$GOOGLE_APPLICATION_CREDENTIALS:ro" -e AZURE_TENANT_ID -e AZURE_SUBSCRIPTION_ID -e AZURE_CLIENT_SECRET -e AZURE_CLIENT_ID -e GOOGLE_APPLICATION_CREDENTIALS=/root/$(basename $GOOGLE_APPLICATION_CREDENTIALS) cloudview --all --port 7777
```
To set up a web server showing this information running on port 7777:
```
docker run --rm -d -p 7777:7777 -v ~/.aws:/root/.aws:ro -v "$GOOGLE_APPLICATION_CREDENTIALS:$GOOGLE_APPLICATION_CREDENTIALS:ro" -e AZURE_TENANT_ID -e AZURE_SUBSCRIPTION_ID -e AZURE_CLIENT_SECRET -e AZURE_CLIENT_ID -e GOOGLE_APPLICATION_CREDENTIALS cloudview --all --port 7777
```
## Run the web server with [Docker Compose](https://docs.docker.com/compose/install/):
```
docker-compose up -d
```
To stop the web server:
```
docker-compose down
```
To rebuild with latest version:
```
docker-compose build --pull
```
## TODO
- Search by tag
- Sort by instance type
- Use apache-libcloud?
- Expose filtering functionality
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
cloudview-0.1.8.tar.gz
(7.2 kB
view details)
Built Distribution
cloudview-0.1.8-py3-none-any.whl
(10.7 kB
view details)
File details
Details for the file cloudview-0.1.8.tar.gz
.
File metadata
- Download URL: cloudview-0.1.8.tar.gz
- Upload date:
- Size: 7.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fc1aa6aa548ec0893b70416ac399c6021b9f754b373a9bd52e16c5da053c12e0 |
|
MD5 | a862008a280846d52c024d359877927e |
|
BLAKE2b-256 | 4ee08d69e2ff324cde30b7118530f01f7b64f703f0fa2d08b27cd2d3e3405939 |
File details
Details for the file cloudview-0.1.8-py3-none-any.whl
.
File metadata
- Download URL: cloudview-0.1.8-py3-none-any.whl
- Upload date:
- Size: 10.7 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/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 24845e4ea36eb0ab020540ec1b82744f0a05d10485b16bd4a7832a3d93f2603c |
|
MD5 | 4370a2530cd7906239d9fc2ca86b8afc |
|
BLAKE2b-256 | ea4e22789c033ee28dc5d8c5b0f1b6359a25a1b0d0ce28f4f66dd096c6d07b31 |