Skip to main content

Convenience CLI tools to work with Microsoft Azure.

Project description

Some tools for Azure Machine Learning

uv tool install git+https://github.com/fepegar/azure-tools
uvx aml download
uvx aml snapshot

Examples

Download and show user logs from a run

run_id="khaki_jelly_s70lr4lk7b"
config_path="workspace_properties.json"

# Default directory where logs are saved
logs_dir="user_logs"

uv tool install --python "<3.13" --prerelease=allow --with pip azure-cli
uvx az extension remove --name ml
uvx az extension add --name ml

config_query='{resource_group: .resource_group, workspace_name: .name, subscription_id: (.id | split("/")[2])}'
uvx az ml workspace show | uvx jq --raw-output $config_query > $config_path
cat $config_path

# We need to specify the Python version because uv's resolver ignores upper
# bounds for Python version in pyproject.toml
# https://docs.astral.sh/uv/reference/resolver-internals/#requires-python
# and azureml.core._metrics breaks for Python >= 3.13
uvx --python "<3.13" --from azure-tools \
    aml download \
        --config $config_path \
        --run-id $run_id \
        --source-aml-path $logs_dir \
        --convert-logs

uvx --from toolong tl $run_id/$logs_dir/*.log

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

azure_tools-0.1.3.tar.gz (4.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

azure_tools-0.1.3-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

Details for the file azure_tools-0.1.3.tar.gz.

File metadata

  • Download URL: azure_tools-0.1.3.tar.gz
  • Upload date:
  • Size: 4.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.5.5

File hashes

Hashes for azure_tools-0.1.3.tar.gz
Algorithm Hash digest
SHA256 ddf47e7d65b8de626f2e07de7b0ed0c80b6cd05652b78394e9379f8793b01f5b
MD5 f6eff4690056b28dac4a4e37b2ab9ef9
BLAKE2b-256 9c29439455c43145b0baec1a608f85796f54f159c968a907f569176791570818

See more details on using hashes here.

File details

Details for the file azure_tools-0.1.3-py3-none-any.whl.

File metadata

File hashes

Hashes for azure_tools-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 51b8f1b88266e42ea1dbc7faee9dded4311a1fbd3e48b7bb8d6b35c3bf45fe23
MD5 d3fdbec82ec8df305b26fd1c840f8160
BLAKE2b-256 bc1515d823418a2fe42de7235ba4b187f9bd9c97cf26d6f7ab37e217c150d340

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page