Skip to main content

A terminal application to view safetensors files

Project description

SafeView

A terminal application to view safetensors files. SafeView provides a clean, interactive terminal interface for exploring safetensors files and Hugging Face models. safe-view safe-view search

Features

  • Interactive terminal UI for browsing tensors
  • Detailed tensor information including shape, data type, and size
  • Statistical information about tensor values (min, max, mean, std) - loaded on demand when a tensor is selected
  • Support for local safetensors files and Hugging Face model repositories
  • Real-time search and filtering by tensor name
  • Clean and intuitive Textual-based interface
  • Optimized loading - only metadata is loaded initially, tensor statistics shown when a tensor is selected and enter is pressed

Installation

From PyPI:

pip install safe-view

Using pip (from local directory):

pip install .

Using uv:

uv pip install .

Development mode:

If you want to run in development mode, you can install in editable mode:

pip install -e .

or with uv:

uv pip install -e .

Usage

After installation, you can run the application directly from the command line:

safe-view /path/to/your/file.safetensors

Or for a Hugging Face model:

safe-view Qwen/Qwen3-0.6B

For help:

safe-view --help

Controls

  • q: Quit the application
  • h, j, k, l or arrow keys: Navigate between tensors
  • g: Go to top of the tensor list
  • G: Go to bottom of the tensor list
  • Ctrl+f / Ctrl+b: Page up/down
  • /: Enter search mode to filter tensors by name
  • Escape: Exit search mode
  • Click on a tensor in the left panel or press Enter to view its details and statistics on the right

Requirements

  • Python 3.9+
  • Dependencies listed in pyproject.toml

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

safe_view-0.2.1.tar.gz (6.4 kB view details)

Uploaded Source

Built Distribution

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

safe_view-0.2.1-py3-none-any.whl (7.7 kB view details)

Uploaded Python 3

File details

Details for the file safe_view-0.2.1.tar.gz.

File metadata

  • Download URL: safe_view-0.2.1.tar.gz
  • Upload date:
  • Size: 6.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.9.5

File hashes

Hashes for safe_view-0.2.1.tar.gz
Algorithm Hash digest
SHA256 fe23ca7fa3b471174e5d8672e98dd8f7b42e6bd691e704bd2798050d888b0735
MD5 fbb372d16c14cd9102db2ca156c0f53f
BLAKE2b-256 e6e9522fcfd379a5feed99ef46197567fcb3739d9d9328c91167fcbd8c83428c

See more details on using hashes here.

File details

Details for the file safe_view-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: safe_view-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 7.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.9.5

File hashes

Hashes for safe_view-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 99455b8267a9727a4eac490d6c17a5ca63dbf46a249135ece0b125849b2e107e
MD5 a4487da9e47ca1cd1e326525f14a514d
BLAKE2b-256 f615a5242a97e81b68cd4fcd3df6ecb133d6d62f572a4167e04d7e66a1289206

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