Skip to main content

PydSEAMSlib

Open in Colab

pydseams

built with nix

Python bindings for the d-SEAMS C++ engine (seams-core).

This repository is the Python package pydseams. The C++ engine and seams CLI live in seams-core. Lua/Fennel is dseams in yodaStruct. Neighbour search is linkcell. Do not grow a second engine here. import pydseamslib still works.

Released versions live in CHANGELOG.md (Keep a Changelog). Unreleased notes are files under changelog.d/. The cut is towncrier build --version X.Y.Z.

pip install pydseamslib
pip install 'pydseamslib[ase]'      # ASE Atoms
pip install 'pydseamslib[solvis]'   # solvis / PyVista

Nix flake:

nix build
nix develop

Docs: docs/orgmode/ (ox-rst) and docs/source/ (Shibuya). Site: https://d-seams.github.io/PydSEAMSlib/.

import pydseams as ds

frame = ds.read("water.lammpstrj")   # also .xyz, .pdb, .gro, .dcd, .con
print(frame.chill_plus())
print(frame.cages())
print(frame.density(bins=100, axis="z"))

mixed = ds.read("ions.lammpstrj", all_atoms=True, atom_type=1)
sites = ds.yoda.parseSiteSpec("1=polar,2=apolar")
print(mixed.domain(sites, ds.yoda.Kind.polar))

ions = ds.yoda.parseSiteSpec("1=cationHead,2=anion")
print(mixed.pairs(ions))

frame = ds.from_ase(atoms)
atoms = frame.to_ase()
system = frame.to_solvis()           # optional extra

ds.read picks the engine reader from the suffix. yoda is the compiled surface. Helpers (Frame, io, ASE, solvis) stay in Python. _core and cyoda still name the same module.

Frame.density, Frame.pairs, and Frame.domain expose the same site-resolved density, ion-pair, and connected-domain analyses as the CLI. Use ds.read(..., all_atoms=True) when a site analysis needs every LAMMPS type. A file with more than one element symbol gives each symbol its own c_type, and the cutoff graph contains like and unlike pairs. Pass periodic=False for a molecule so pairs are not wrapped across the bounding span. atom_type is the species single-type ice routines still receive. pydseams.band.band_rows names the pairs that enter or leave that graph from one frame to the next. ASE adapters accept nonsingular cells periodic in all three directions and preserve cell orientation and displacement on roundtrip. Hydrogen donors use an ASE mol-id array when present and periodic nearest-atom ownership otherwise. All-atom ASE imports (select=None) use cutoff bonding; hydrogen-bond topology requires a heavy-atom selection such as select="O".

Cutoff, frame, and k follow the same twelve-factor table as seams: SEAMS_CONFIG or ./seams.env, then the environment, then the function argument. pydseams.config is the reader.

Primary author: Ruhila S. The project started as PSF GSoC 2023 (pyseams).

Requires Python 3.11+. CPython 3.11 has a version-specific wheel. Python 3.12 and newer use the CPython 3.12 stable ABI (one abi3 wheel per platform). Free-threaded CPython has no limited ABI and is not a target.

License

MIT.

Metadata

Release files for pydseamslib 2.11.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pydseamslib 2.11.1
File Size Uploaded
pydseamslib-2.11.1.tar.gz 496.6 kB Details

Built distributions (wheels)

Table of built distributions (wheels) for pydseamslib 2.11.1
File
pydseamslib-2.11.1-cp312-abi3-manylinux_2_28_x86_64.whl CPython 3.12 abi3 Linux glibc 2.28+ x86-64 Details
pydseamslib-2.11.1-cp312-abi3-manylinux_2_28_aarch64.whl CPython 3.12 abi3 Linux glibc 2.28+ ARM64 Details
pydseamslib-2.11.1-cp312-abi3-macosx_14_0_arm64.whl CPython 3.12 abi3 macOS 14.0+ ARM64 Details
pydseamslib-2.11.1-cp311-cp311-manylinux_2_28_x86_64.whl CPython 3.11 CPython 3.11 Linux glibc 2.28+ x86-64 Details
pydseamslib-2.11.1-cp311-cp311-manylinux_2_28_aarch64.whl CPython 3.11 CPython 3.11 Linux glibc 2.28+ ARM64 Details
pydseamslib-2.11.1-cp311-cp311-macosx_14_0_arm64.whl CPython 3.11 CPython 3.11 macOS 14.0+ ARM64 Details

Total release size: 19.0 MB

Release files / pydseamslib-2.11.1.tar.gz

Download URL pydseamslib-2.11.1.tar.gz
Size 496.6 kB
Tags Source
SHA-256 checksum
How to use checksums
25a6f720ece34ea308981b42b581ecf6a51725f64c4c0e3a0dc48b42f890816a
BLAKE2b-256 checksum
How to use checksums
c49a67fec5c0e7f4b3d41e73dbda3978f00761e3a14acdbe67ff4dcce577d6f6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 16, 2026.

Transparency log

Release files / pydseamslib-2.11.1-cp312-abi3-manylinux_2_28_x86_64.whl

Download URL pydseamslib-2.11.1-cp312-abi3-manylinux_2_28_x86_64.whl
Size 3.7 MB
Tags CPython 3.12 Linux glibc 2.28+ x86-64 abi3
SHA-256 checksum
How to use checksums
8030bb89a53d89a12f4140d3d14430e54feea922aa2191747e22de192667efeb
BLAKE2b-256 checksum
How to use checksums
76d3ebdff0d35f81d350a95cc4193147dc8a117b5e7811c0a109dfd074d105c6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 16, 2026.

Transparency log

Release files / pydseamslib-2.11.1-cp312-abi3-manylinux_2_28_aarch64.whl

Download URL pydseamslib-2.11.1-cp312-abi3-manylinux_2_28_aarch64.whl
Size 3.2 MB
Tags CPython 3.12 Linux glibc 2.28+ ARM64 abi3
SHA-256 checksum
How to use checksums
0db77a7449d6e1ee09468c1b6115bb2a28f37d2fd8bcf546b74e7518d08e0370
BLAKE2b-256 checksum
How to use checksums
816158c5885004052677d304e89b6764464da1ad058531c74cadc8f9a9720129
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 16, 2026.

Transparency log

Release files / pydseamslib-2.11.1-cp312-abi3-macosx_14_0_arm64.whl

Download URL pydseamslib-2.11.1-cp312-abi3-macosx_14_0_arm64.whl
Size 2.3 MB
Tags CPython 3.12 abi3 macOS 14.0+ ARM64
SHA-256 checksum
How to use checksums
543aa7c1946887434b2ee715f2ac8751e7e41416f9d8455a1d9867f25ae1d067
BLAKE2b-256 checksum
How to use checksums
63886bb0fc015e754b5221c571b1b0b6b3ab1dcbce607559e4a2e5a070ea5e4d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 16, 2026.

Transparency log

Release files / pydseamslib-2.11.1-cp311-cp311-manylinux_2_28_x86_64.whl

Download URL pydseamslib-2.11.1-cp311-cp311-manylinux_2_28_x86_64.whl
Size 3.7 MB
Tags CPython 3.11 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
0b256382c94904cb6080b1e91a56467d41047879be86ed033fa24d928fdb13f0
BLAKE2b-256 checksum
How to use checksums
32d82ffd5535ac950975914b055db94b38c097e78abce4d746e5f43b1a7db96a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 16, 2026.

Transparency log

Release files / pydseamslib-2.11.1-cp311-cp311-manylinux_2_28_aarch64.whl

Download URL pydseamslib-2.11.1-cp311-cp311-manylinux_2_28_aarch64.whl
Size 3.2 MB
Tags CPython 3.11 Linux glibc 2.28+ ARM64
SHA-256 checksum
How to use checksums
767994791a8d496afa679afc3cb6d521cd23950de23f2e899b9fcc3b77794485
BLAKE2b-256 checksum
How to use checksums
7add4480a3c895808a69accff81156baa85e8124137b8bef28d7da5ad8f4e9c1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 16, 2026.

Transparency log

Release files / pydseamslib-2.11.1-cp311-cp311-macosx_14_0_arm64.whl

Download URL pydseamslib-2.11.1-cp311-cp311-macosx_14_0_arm64.whl
Size 2.3 MB
Tags CPython 3.11 macOS 14.0+ ARM64
SHA-256 checksum
How to use checksums
8d15019f3a4f33d5e0fac9d74063a37fa11bce69e0877a2ca60bc654549e5f9c
BLAKE2b-256 checksum
How to use checksums
d822c922c953c3f450f2791893d40f33f18c39a2d40579a23d2ee712bd0fd0ff
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 16, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

2.11.1 This release

7 release files

2.9.1

4 release files

2.9.0

4 release files

2.8.1

4 release files

2.7.0

4 release files

2.6.0

4 release files

2.5.1

4 release files

0.0.2

17 release files

0.0.1

9 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page