Skip to main content

changeme

Project description

azure-blob-tui

Terminal TUI for browsing Azure Blob Storage, plus Python helpers to read/write blobs directly from your training code (no local files required).

First-time setup

Run the TUI once to configure account/container/prefix and (optionally) store SAS in an encrypted local file. On later runs, if SAS is stored, you only need the passphrase (no need to re-enter SAS).

azure-blob-tui --configure

During first run you will be prompted for:

  • account name / container name / default prefix
  • whether to store SAS in an encrypted local file
  • (if yes) the SAS token and a passphrase to encrypt it

Later runs:

  • If SAS is stored, you will only be prompted for the passphrase.
  • If you set AZURE_BLOB_TUI_PASSPHRASE, no prompt is needed.

Use the TUI

azure-blob-tui

Reconfigure

azure-blob-tui --configure

Use in training code (no local files)

Save/load with torch.save / torch.load

import torch
from azure_blob import blob_open

# Save directly to Blob
with blob_open("checkpoints/step-100/model.pt", "wb") as f:
    torch.save(model.state_dict(), f)

# Load directly from Blob
with blob_open("checkpoints/step-100/model.pt", "rb") as f:
    state = torch.load(f, weights_only=False)

Save JSON/YAML/text to Blob

import io
import json
from azure_blob import blob_open

with blob_open("artifacts/config.json", "wb") as raw:
    with io.TextIOWrapper(raw, encoding="utf-8") as f:
        json.dump({"lr": 1e-4}, f)

Notes

  • SAS tokens are not stored in the config file, but in an encrypted local file.
  • blob_open works for any file type (torch checkpoints, JSON, YAML, text, etc.).

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_blob_tui-0.1.1.tar.gz (68.8 kB view details)

Uploaded Source

Built Distribution

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

azure_blob_tui-0.1.1-py3-none-any.whl (15.7 kB view details)

Uploaded Python 3

File details

Details for the file azure_blob_tui-0.1.1.tar.gz.

File metadata

  • Download URL: azure_blob_tui-0.1.1.tar.gz
  • Upload date:
  • Size: 68.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.9.25 {"installer":{"name":"uv","version":"0.9.25","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for azure_blob_tui-0.1.1.tar.gz
Algorithm Hash digest
SHA256 af2120aba385ced8215674ab0ac89d1be180f03bd3277d68762c9ae9d04c4063
MD5 448f74debafa8108e41a0c15719d23aa
BLAKE2b-256 9d7f279630759a49ebfe7dce6082ff3cb7a04ba51e57fe393d4b2d6c689d319d

See more details on using hashes here.

File details

Details for the file azure_blob_tui-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: azure_blob_tui-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 15.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.9.25 {"installer":{"name":"uv","version":"0.9.25","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for azure_blob_tui-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 36726deb93cdbc2e5f67fbbccb05f77041b53d6ab516360245dec8ab7c859d62
MD5 06a442f78284a43fcd7237da21598147
BLAKE2b-256 43fb45036843387a6e060d9cbea11a94a9b4b51587022c6e8f43d33fcf7e5361

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