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
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_openworks 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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file azure_blob_tui-0.1.0.tar.gz.
File metadata
- Download URL: azure_blob_tui-0.1.0.tar.gz
- Upload date:
- Size: 68.7 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f629246471e2ccb52d1e07e8bcfc120e1075a8bfad02d5076d1cc7b607ce707b
|
|
| MD5 |
d5d7f805ea3c2241ec4fcbe99fee7749
|
|
| BLAKE2b-256 |
f7831c9ab63723a1745b85855082b0241b26ddb1bf171d5640e4d22e8f053376
|
File details
Details for the file azure_blob_tui-0.1.0-py3-none-any.whl.
File metadata
- Download URL: azure_blob_tui-0.1.0-py3-none-any.whl
- Upload date:
- Size: 15.6 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c7854f4b72e73c76377188e4fa56286bdd51489a033d22ad1eb9e05f618c002d
|
|
| MD5 |
79fc63e8cc39af0fcebfcbe820e9198b
|
|
| BLAKE2b-256 |
76032e4b1bbc0bfafa8684cb2b5492a5f1e31cf7f7922e59d836da2ff5829e46
|