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}
"""
)
Metadata
Release files for cloudprice 0.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| cloudprice-0.0.3.tar.gz | 5.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| cloudprice-0.0.3-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details |
Total release size: 11.7 kB
Release files / cloudprice-0.0.3.tar.gz
| Download URL | cloudprice-0.0.3.tar.gz |
|---|---|
| Size | 5.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c6512aab957624478277b156420c599bd72ee251e4efeaaacf8977acd6a9009a
|
|
BLAKE2b-256 checksum How to use checksums |
56e0552819918ae73efb388b0f54a963669a37db257d22c24ab28601f3483461
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / cloudprice-0.0.3-py2.py3-none-any.whl
| Download URL | cloudprice-0.0.3-py2.py3-none-any.whl |
|---|---|
| Size | 6.4 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
9220f515a0966462afd36c3f305133e4c3f6ad5230d2a3a6ff725b4efc0a53c4
|
|
BLAKE2b-256 checksum How to use checksums |
ba77fea04cdf42770c8062f1c0c50dac03961439952340cf2da9ea036d9e9cbd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|