A SDK for cloud compute pricing
Project description
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
# 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
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file cloudprice-0.0.3.tar.gz.
File metadata
- Download URL: cloudprice-0.0.3.tar.gz
- Upload date:
- Size: 5.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c6512aab957624478277b156420c599bd72ee251e4efeaaacf8977acd6a9009a
|
|
| MD5 |
c4265cc11dd7955b70b186d9b2ce6b52
|
|
| BLAKE2b-256 |
56e0552819918ae73efb388b0f54a963669a37db257d22c24ab28601f3483461
|
File details
Details for the file cloudprice-0.0.3-py2.py3-none-any.whl.
File metadata
- Download URL: cloudprice-0.0.3-py2.py3-none-any.whl
- Upload date:
- Size: 6.4 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9220f515a0966462afd36c3f305133e4c3f6ad5230d2a3a6ff725b4efc0a53c4
|
|
| MD5 |
5d86532494d6c90cca49d3551a23f5d3
|
|
| BLAKE2b-256 |
ba77fea04cdf42770c8062f1c0c50dac03961439952340cf2da9ea036d9e9cbd
|