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.

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)
  • Support for local safetensors files and Hugging Face model repositories
  • Real-time search and filtering by tensor name
  • Clean and intuitive Textual-based interface

Installation

Using pip:

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 to view its details 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.1.0.tar.gz (5.8 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.1.0-py3-none-any.whl (7.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: safe_view-0.1.0.tar.gz
  • Upload date:
  • Size: 5.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.13

File hashes

Hashes for safe_view-0.1.0.tar.gz
Algorithm Hash digest
SHA256 521aff7712b205a9f0b6dd54a921c8eeabdb28e4afb2ca81b5ae84ea95adaf98
MD5 b018e87458c9cedf838e13f8f87fcd1a
BLAKE2b-256 996b4d8e05265291afa24520347b812b1cd1694a172f70cfcab2088b3c8bdd70

See more details on using hashes here.

File details

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

File metadata

  • Download URL: safe_view-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 7.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.13

File hashes

Hashes for safe_view-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2e2d361eaa47dd924af7ad26c8053cff6345182167b18939ce3f3bbceae02abf
MD5 f0461e045a5c1095a914ca604ef0a198
BLAKE2b-256 c5cd10078cfeaec05824eb80a280a6f5e9ab18ff92b13977dcd48aeb9e9bc52d

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