Utilities for Azure
Project description
azutils
azutils
is to provide convenient Python functions for Azure Services.
- Databricks,
- Azure Batch ?
install
$ pip install azutils
usage
- for
Databricks
from azutils.databricks import DatabricksClient
token = "..."
dc = DatabricksClient(token=token)
# list cluster
cluster_list = dc.clusters_list()
for cluster in cluster_list:
print(cluster)
# * cluster_name: some-cluster
# * cluster_id: XXXX-XXXXXX-xxxxxxx
# * spark_version: 7.1.x-scala2.12
# * driver_node_type: Standard_DS12_v2
# * node_type: Standard_DS3_v2
# * cost: 96.208 + 79.408 * NUM [YEN/HOUR]
cluster_id = "XXXX-XXXXXX-xxxxxxx"
print(dc.cluster_cost(cluster_id=cluster_id, start_time="2020-10-01", end_time="2020-10-31"))
# display cluster usage with `seaborn`
cluster_id_1 = "XXXX-XXXXXX-xxxxxx1"
cluster_id_2 = "XXXX-XXXXXX-xxxxxx2"
dc.cluster_running_time_as_sns(cluster_id=[cluster_id_1, cluster_id_2])
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
azutils-0.1.2.tar.gz
(8.7 kB
view details)
Built Distribution
File details
Details for the file azutils-0.1.2.tar.gz
.
File metadata
- Download URL: azutils-0.1.2.tar.gz
- Upload date:
- Size: 8.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.54.0 CPython/3.9.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7a3f029899556ea89115fd2c6dc3d5cc74c1fb4b6ab8229dfc45383ef64f9962 |
|
MD5 | fa30fc39d8bf7917d4fe2b63f794ccd1 |
|
BLAKE2b-256 | e49c2d5a8b7c8d84a10657b11238954d23fe65fb8b945a7bbe11c703149e7843 |
File details
Details for the file azutils-0.1.2-py3-none-any.whl
.
File metadata
- Download URL: azutils-0.1.2-py3-none-any.whl
- Upload date:
- Size: 8.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.54.0 CPython/3.9.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9ee325252bf015e94f17c7e06ab8d55a237f097b3e27a8fa8cb80fd35c31b027 |
|
MD5 | 826a3991d443a188aa3c7db5f5cf1f6e |
|
BLAKE2b-256 | 058bbb588908455dbf426e42d776bc0d2ddb1fdbfc25e7f8290612a59cb4c08e |