Skip to main content

A SDK for cloud compute pricing

Project description

cloud-compute-pricing

image image image image

Examples

For more examples see the examples directory with this repo.

Azure Virtual Machines

Currently for Azure VMs there is support for On Demand, Spot, Low Priority, and Reserved Instance pricing.

Using the default parameters will return the price for the Linux On Demand VM.

See example below on how to use the AzureVM module.

from cloudprice import AzureVM

# Get Azure VM Pricing
example_vm = AzureVM("US West", "Standard_E8_v3")

# Get Azure VM Pricing for On Demand Instance
example_vm_standard = example_vm.getPrice()
print(
    f"""
Product Name: {example_vm_standard.product_name}
Meter Name: {example_vm_standard.meter_name}
Location: {example_vm_standard.location}
Effective Date: {example_vm_standard.effective_start_date}
Unit Price: {example_vm_standard.unit_price}
"""
)

Project details


Download files

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

Source Distribution

cloudprice-0.0.3.tar.gz (5.3 kB view hashes)

Uploaded Source

Built Distribution

cloudprice-0.0.3-py2.py3-none-any.whl (6.4 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page