cloud-compute-pricing

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
example_vm = AzureVM("US West", "Standard_E8_v3")
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}
"""
)