safetensors
PyPIv0.8.0Not recommended for new projects
No — safetensors should not be adopted for new projects. No license declared — you have no explicit right to use this code.
- ?Adoption: grade ?, Not reported by this registry.
No download data reported for this package yet.
- BMaintenance: grade B, Good.
Last published 92 days ago. 19 releases in the last 2 years.
- AWeight: grade A, Excellent.
Zero runtime dependencies, about 462 KB installed.
- BSupply chain: grade B, Good.
This package lists no maintainer.
- FLicense: grade F, Failing.
No license declared — you have no explicit right to use this code.
Grades are computed deterministically from registry metadata collected by PackageGraph — downloads, dependents, publish dates, the resolved dependency tree, maintainer count, and declared licenses. No third-party scores are used.
Install cost
What you actually take on by adding safetensors to a project.
Runtime packages this one declares itself.
Distinct packages in the full runtime tree, deduplicated the way a package manager would.
Unpacked size of this package plus its entire runtime tree.
Longest resolved dependency chain below this package.
Compatibility
- Python
- python >=3.10
Quick start
A usage example from the safetensors README.
from safetensors.numpy import save_file, load_file
import numpy as np
tensors = {
"a": np.zeros((2, 2)),
"b": np.zeros((2, 3), dtype=np.uint8)
}
save_file(tensors, "./model.safetensors")
# Now loading
loaded = load_file("./model.safetensors")Used by
Popular packages that depend on safetensors.
Relationship graph
Dependencies (left) and dependents (right) of safetensors.
Frequently installed together
Fundamental package for array computing in Python
Fast, Extensible Progress Meter
Core utilities for Python packages
Client library to download and publish models, datasets and other repos on the huggingface.co hub
Alternative regular expression module, to replace re.
No description provided.
Typer, build great CLIs. Easy to code. Based on Python type hints.
Release history
18 releases in the last two years, typically about 8 days apart.
| Version | Published | Size | License |
|---|---|---|---|
| 0.8.0latest | 3 months ago | 462 KB | — |
| 0.8.0rc1 | 3 months ago | 462 KB | — |
| 0.8.0rc0 | 4 months ago | 458 KB | — |
| 0.8.0.dev0 | 4 months ago | 458 KB | — |
| 0.7.0 | 9 months ago | 457 KB | — |
| 0.7.0rc1 | 9 months ago | 457 KB | — |
| 0.7.0.dev0 | 9 months ago | 457 KB | — |
| 0.7.0rc0 | 10 months ago | 453 KB | — |
| 0.6.2 | 1 year ago | 444 KB | — |
| 0.6.1 | 1 year ago | 445 KB | — |
| 0.6.1rc0 | 1 year ago | 445 KB | — |
| 0.6.0.dev0 | 1 year ago | 444 KB | — |
| 0.6.0rc0 | 1 year ago | 444 KB | — |
| 0.5.3 | 1 year ago | 427 KB | — |
| 0.5.2 | 1 year ago | 417 KB | — |
Overview
safetensors is an PyPI package. It has 1 known dependents in the graph. The latest version is 0.8.0.
Who should use it
Teams working in the PyPI ecosystem who need this functionality and value a focused solution.
When not to use it
Consider an alternative if you need to or if a more actively-maintained option better fits your PyPI stack.
Pros
- Zero runtime dependencies — minimal footprint.
Cons
- No license detected — review usage terms before adopting.
Auto-generated from collected registry metadata. No external claims are inferred.
Frequently asked questions
Should I use safetensors?
No — safetensors should not be adopted for new projects. No license declared — you have no explicit right to use this code.
How do I install safetensors?
Run `pip install safetensors` to add safetensors to your PyPI project.
What license is safetensors released under?
No license was detected in safetensors's metadata; review the repository before use.
How popular is safetensors?
PyPI does not publish download counts. Within PackageGraph's crawl, 1 known packages depend on safetensors.
Is safetensors still maintained?
The most recent release of safetensors (v0.8.0) was published 3 months ago.