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])
Metadata
Release files for azutils 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| azutils-0.1.2.tar.gz | 8.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| azutils-0.1.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 17.6 kB
Release files / azutils-0.1.2.tar.gz
| Download URL | azutils-0.1.2.tar.gz |
|---|---|
| Size | 8.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7a3f029899556ea89115fd2c6dc3d5cc74c1fb4b6ab8229dfc45383ef64f9962
|
|
BLAKE2b-256 checksum How to use checksums |
e49c2d5a8b7c8d84a10657b11238954d23fe65fb8b945a7bbe11c703149e7843
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / azutils-0.1.2-py3-none-any.whl
| Download URL | azutils-0.1.2-py3-none-any.whl |
|---|---|
| Size | 8.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9ee325252bf015e94f17c7e06ab8d55a237f097b3e27a8fa8cb80fd35c31b027
|
|
BLAKE2b-256 checksum How to use checksums |
058bbb588908455dbf426e42d776bc0d2ddb1fdbfc25e7f8290612a59cb4c08e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|