Skip to main content
Help the Python Software Foundation raise $60,000 USD by December 31st!  Building the PSF Q4 Fundraiser

Public cloud market price tracker for Amazon EC2 and Azure

Project description


PyPI version

Public Cloud Market Price Tracker

UC Davis ECS 193, 2019

Contrail is a public cloud market price tracker that allows you to easily access and compare the prices and characteristics of VMs over various locations, cloud providers, and times.

Quick Start

Virtual Environment

Create virtual environment:

virtualenv -p python3 venv
python3 -m virtualenv venv

Start virtual environment:

source venv/bin/activate

You should see (venv) show up in command prompt.

Install requirements our project uses:

pip install -r requirements.txt

To exit virtual environment:



By default, the site will read data from the official Contrail database. To collect your own data, see Collecting your own data below.

Start Django

Make sure you are in the main Contrail folder and the virtual environment is activated.

Collect static files:

python frontend collectstatic

Start the Django server:

python frontend runserver

Open in a browser.


Given attributes, return instances that match and their prices

    'operating_system': "Linux",
    'aws': "True",
    'gcp': "True",
    'azure': "False",
    'region': None,
    'vcpus': None,
    'memory': 8,


    "instance_type": "c4"
    "operating_system": "Linux",
    "provider": "AWS",
    "region": "US East",
    "vcpus": 8,
    "memory": 8,
    "reserved", "spot",
    "price_type": "on_demand",
    "price": 0.233,
    "price_unit": "per hour"

Collecting your own data

Contrail is split into a few distinct components:

  • Crawler: Collects and stores raw offer data from various cloud providers.
  • Loader: Parses raw offer data and stores it in a Clickhouse data warehouse.
  • API/Frontend: Communicates with the data warehouse and displays data nicely.

The Quick Start above only sets up the API/Frontend component. By default, it points to our own data source. You will have to set up your own backend (crawler and loader) to collect your own data.

Read more about setting up the first two components here: Crawler, Loader.

Project details

Download files

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

Files for contrail, version 1.0.2
Filename, size File type Python version Upload date Hashes
Filename, size contrail-1.0.2-py3-none-any.whl (55.0 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size contrail-1.0.2.tar.gz (37.0 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page