This release is a pre-release and may not be stable for production use.
Vesin: fast neighbor lists for atomistic systems
| English 🇺🇸/🇬🇧 | Occitan |
Arpitan |
French 🇫🇷 | Gallo‑Italic |
Catalan |
Spanish 🇪🇸 | Italian 🇮🇹 |
|---|---|---|---|---|---|---|---|
| neighbo(u)r | vesin | vesin | voisin | visin | veí | vecino | vicino |
Vesin is a fast and easy to use library computing neighbor lists for atomistic systems, with CPU and GPU support. We provide an interface for the following programing languages and frameworks:
- C (compatible with C++). The code can be used as an external library, or included as a single file and built directly by your own build system;
- Fortran;
- Python;
- PyTorch, supporting both
torch.compileand TorchScript; - Jax
Installation
To use the code from Python, you can install it with pip:
pip install vesin
pip install vesin-torch # for PyTorch support
pip install vesin-jax # for Jax support
See the documentation for more information on how to install the code and use it.
Usage instruction
You can either use the NeighborList calculator class:
import numpy as np
from vesin import NeighborList
# positions can be anything compatible with numpy's ndarray
positions = [
(0, 0, 0),
(0, 1.3, 1.3),
]
box = 3.2 * np.eye(3)
calculator = NeighborList(cutoff=4.2, full_list=True)
i, j, S, d = calculator.compute(
points=positions,
box=box,
periodic=True,
quantities="ijSd",
)
Benchmarks
You can find below benchmark result computing neighbor lists for increasingly
large diamond supercells, using an AMD EPYC 9334 CPU and an NVIDIA H100 GPU. You
can run this benchmark on your system with
python -m benchmarks.run (from the repository root). Cross on points indicate
that a specific code could
not run the calculation after or before the cross (for example, NNPOps requires
the cell to be twice the cutoff in size, and can't run with large cutoffs and
small cells).
License
Vesin is is distributed under the 3 clauses BSD license. By contributing to this code, you agree to distribute your contributions under the same license.
Citation
If you found vesin useful, you can cite the article where it was presented
(http://doi.org/10.1063/5.0304911) as
@article{metatensor-and-metatomic,
title = {Metatensor and Metatomic: Foundational Libraries for Interoperable Atomistic Machine Learning},
volume = {164},
ISSN = {1089-7690},
url = {http://doi.org/10.1063/5.0304911},
DOI = {10.1063/5.0304911},
number = {6},
journal = {The Journal of Chemical Physics},
publisher = {AIP Publishing},
author = {Bigi, Filippo and Abbott, Joseph W. and Loche, Philip and Mazitov, Arslan and Tisi, Davide and Langer, Marcel F. and Goscinski, Alexander and Pegolo, Paolo and Chong, Sanggyu and Goswami, Rohit and Febrer, Pol and Chorna, Sofiia and Kellner, Matthias and Ceriotti, Michele and Fraux, Guillaume},
year = {2026},
month = Feb
}
Metadata
Release files for vesin 0.7.0rc1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| vesin-0.7.0rc1.tar.gz | 165.7 kB | Without provenance | Details for vesin-0.7.0rc1.tar.gz |
Built distributions (wheels)
| File | Actions Reset | |||
|---|---|---|---|---|
| vesin-0.7.0rc1-py3-none-win_amd64.whl | Python 3 | none | Windows x86-64 | Details for vesin-0.7.0rc1-py3-none-win_amd64.whl |
| vesin-0.7.0rc1-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl | Python 3 | none | Linux glibc 2.17+ x86-64 | Details for vesin-0.7.0rc1-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl |
| vesin-0.7.0rc1-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.whl | Python 3 | none | Linux glibc 2.17+ ARM64 | Details for vesin-0.7.0rc1-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.whl |
| vesin-0.7.0rc1-py3-none-macosx_11_0_x86_64.whl | Python 3 | none | macOS 11.0+ x86-64 | Details for vesin-0.7.0rc1-py3-none-macosx_11_0_x86_64.whl |
| vesin-0.7.0rc1-py3-none-macosx_11_0_arm64.whl | Python 3 | none | macOS 11.0+ ARM64 | Details for vesin-0.7.0rc1-py3-none-macosx_11_0_arm64.whl |
Total release size: 1.2 MB
Release files / vesin-0.7.0rc1.tar.gz
| Download URL | vesin-0.7.0rc1.tar.gz |
|---|---|
| Size | 165.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
676b633a6c290a690067405e2c4a0ff171c33e63cddc610c9f3979ec25b8821b
|
|
BLAKE2b-256 checksum How to use checksums |
75266962f858dba5ecaeab7aef0f0fb9c437700fd8c480e0d50385f2b562a662
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.10
|
Release files / vesin-0.7.0rc1-py3-none-win_amd64.whl
| Download URL | vesin-0.7.0rc1-py3-none-win_amd64.whl |
|---|---|
| Size | 165.0 kB |
| Tags | Python 3 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
00ef04b0b8c93a87e59f46c85ec636a88241edea07ab305f799236b870441729
|
|
BLAKE2b-256 checksum How to use checksums |
c336c416948f9cb937674cc52fc00ef2b21ebd90591a68ce56ef48208a045ad4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.10
|
Release files / vesin-0.7.0rc1-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
| Download URL | vesin-0.7.0rc1-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl |
|---|---|
| Size | 275.8 kB |
| Tags | Linux glibc 2.17+ x86-64 Python 3 |
|
SHA-256 checksum How to use checksums |
59c4cea1dbe77cd6eb496bf67f321a53a805b30338721206d2167f30565a3b38
|
|
BLAKE2b-256 checksum How to use checksums |
4a6dbb6df5812aac8164c3ea82c554965165c623963b607217dc0b93caa812e1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.10
|
Release files / vesin-0.7.0rc1-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
| Download URL | vesin-0.7.0rc1-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.whl |
|---|---|
| Size | 246.2 kB |
| Tags | Linux glibc 2.17+ ARM64 Python 3 |
|
SHA-256 checksum How to use checksums |
3043e78c8c403e49794985fdae272ec69a52061dab5b157908eecd4de5df1d28
|
|
BLAKE2b-256 checksum How to use checksums |
7fdf2e2b986f0dfece7fe5274b1d0eec4b28eacee22a4ba71f7d78b44f9ea87b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.10
|
Release files / vesin-0.7.0rc1-py3-none-macosx_11_0_x86_64.whl
| Download URL | vesin-0.7.0rc1-py3-none-macosx_11_0_x86_64.whl |
|---|---|
| Size | 158.2 kB |
| Tags | Python 3 macOS 11.0+ x86-64 |
|
SHA-256 checksum How to use checksums |
129258d13f748940a6706fcf498cc90ea162b4499b696980c7d0ae6d2b71bac0
|
|
BLAKE2b-256 checksum How to use checksums |
48f90b49a68ac3a694e944d9ef8b02f922f1982bbf3ed6fa7780b9d61adbcc48
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.10
|
Release files / vesin-0.7.0rc1-py3-none-macosx_11_0_arm64.whl
| Download URL | vesin-0.7.0rc1-py3-none-macosx_11_0_arm64.whl |
|---|---|
| Size | 147.8 kB |
| Tags | Python 3 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
fbce6f33062552aa5271b4f6d578dbf149aebeb2537ec4cfff4d5a9a052d61f3
|
|
BLAKE2b-256 checksum How to use checksums |
c1a4249ebe49f1feab7c0dc246f23b0af1fdf9c70d6b4d8a329c7322a8a3ac75
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.10
|
Security for vesin 0.7.0rc1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.