Skip to main content

zsasa Python Bindings

Python bindings for zsasa — a high-performance SASA calculator in Zig.

Full Documentation

Installation

pip install zsasa
# or
uv add zsasa

Optional Dependencies

pip install zsasa[gemmi]      # Gemmi integration
pip install zsasa[biopython]  # BioPython integration
pip install zsasa[biotite]    # Biotite integration
pip install zsasa[all]        # All integrations

Quick Start

import numpy as np
from zsasa import calculate_sasa

coords = np.array([[0.0, 0.0, 0.0], [3.0, 0.0, 0.0]])
radii = np.array([1.5, 1.5])
result = calculate_sasa(coords, radii)
print(f"Total SASA: {result.total_area:.2f} Ų")
# With structure file (gemmi)
from zsasa.integrations.gemmi import calculate_sasa_from_structure
result = calculate_sasa_from_structure("protein.cif")
print(f"Total: {result.total_area:.1f} Ų")

Features

  • Two algorithms: Shrake-Rupley and Lee-Richards, with bitmask LUT optimization
  • Selectable precision: f64 (default) or f32
  • Multi-threading: Automatic parallelization
  • Atom classification: CCD, ProtOr, NACCESS, and OONS classifiers
  • Analysis: Per-residue aggregation, RSA, polar/nonpolar classification
  • Batch processing: process_directory() for proteome-scale datasets
  • MD trajectory: MDTraj and MDAnalysis integrations; use pyztraj for direct trajectory-file I/O
  • Integrations: Gemmi, BioPython, Biotite

See the full API reference for details.

Development

cd python
uv run --with pytest pytest tests/ -v    # Tests
ruff format . && ruff check --fix .      # Lint

License

MIT

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

zsasa-0.9.1.tar.gz (300.7 kB view details)

Uploaded Source

Built Distributions

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

zsasa-0.9.1-cp313-cp313-win_amd64.whl (1.5 MB view details)

Uploaded CPython 3.13Windows x86-64

zsasa-0.9.1-cp313-cp313-manylinux_2_28_x86_64.whl (4.9 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.28+ x86-64

zsasa-0.9.1-cp313-cp313-manylinux_2_28_aarch64.whl (4.9 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.28+ ARM64

zsasa-0.9.1-cp313-cp313-macosx_11_0_x86_64.whl (1.3 MB view details)

Uploaded CPython 3.13macOS 11.0+ x86-64

zsasa-0.9.1-cp313-cp313-macosx_11_0_arm64.whl (1.2 MB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

zsasa-0.9.1-cp312-cp312-win_amd64.whl (1.5 MB view details)

Uploaded CPython 3.12Windows x86-64

zsasa-0.9.1-cp312-cp312-manylinux_2_28_x86_64.whl (4.9 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ x86-64

zsasa-0.9.1-cp312-cp312-manylinux_2_28_aarch64.whl (4.9 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ ARM64

zsasa-0.9.1-cp312-cp312-macosx_11_0_x86_64.whl (1.3 MB view details)

Uploaded CPython 3.12macOS 11.0+ x86-64

zsasa-0.9.1-cp312-cp312-macosx_11_0_arm64.whl (1.2 MB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

zsasa-0.9.1-cp311-cp311-win_amd64.whl (1.5 MB view details)

Uploaded CPython 3.11Windows x86-64

zsasa-0.9.1-cp311-cp311-manylinux_2_28_x86_64.whl (4.9 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.28+ x86-64

zsasa-0.9.1-cp311-cp311-manylinux_2_28_aarch64.whl (4.9 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.28+ ARM64

zsasa-0.9.1-cp311-cp311-macosx_11_0_x86_64.whl (1.3 MB view details)

Uploaded CPython 3.11macOS 11.0+ x86-64

zsasa-0.9.1-cp311-cp311-macosx_11_0_arm64.whl (1.2 MB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

File details

Details for the file zsasa-0.9.1.tar.gz.

File metadata

  • Download URL: zsasa-0.9.1.tar.gz
  • Upload date:
  • Size: 300.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for zsasa-0.9.1.tar.gz
Algorithm Hash digest
SHA256 abc50609485b5cc812b5fedaf02d23c012670705c05f94b3e4497cb51e7cc829
MD5 28679859de33bd6e2d19bf95b04ff2c0
BLAKE2b-256 92d1d7af6c65d3a6657b1139d3cc44e7230ce6b1984f825e2beffc4a08c4b05c

See more details on using hashes here.

Provenance

The following attestation bundles were made for zsasa-0.9.1.tar.gz:

Publisher: publish.yml on N283T/zsasa

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file zsasa-0.9.1-cp313-cp313-win_amd64.whl.

File metadata

  • Download URL: zsasa-0.9.1-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 1.5 MB
  • Tags: CPython 3.13, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for zsasa-0.9.1-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 50e3eca8c42347df8ef6e8b36251c9d325eb07c31c85440926c211dcc7d72451
MD5 0381ee99f69ce4eb7143073afd8d1bcf
BLAKE2b-256 1890567c4cfefbdb28c9b37c0f5f7e02f5a88f0041fee5a891f0fc7ebd1f63bf

See more details on using hashes here.

Provenance

The following attestation bundles were made for zsasa-0.9.1-cp313-cp313-win_amd64.whl:

Publisher: publish.yml on N283T/zsasa

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file zsasa-0.9.1-cp313-cp313-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for zsasa-0.9.1-cp313-cp313-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 c0c21e0aa99084ae4425ae907ad8bde0812ff3815911c4d838262c5cf638df49
MD5 4de030b5b718af23b462c3f1e66a2690
BLAKE2b-256 5fd731032ded2571abf7ea8cd702a98bea33d1f1e99b3bf8bdc44cc20eddf7a3

See more details on using hashes here.

Provenance

The following attestation bundles were made for zsasa-0.9.1-cp313-cp313-manylinux_2_28_x86_64.whl:

Publisher: publish.yml on N283T/zsasa

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file zsasa-0.9.1-cp313-cp313-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for zsasa-0.9.1-cp313-cp313-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 d67761561ede86cef2375075d946e6e78ef6acb9937fd1a75ef212b868820f73
MD5 1475813aa9ed4249c59135cdb56aa06c
BLAKE2b-256 5b2e4c6147e4470ef2acce97985ff9a698f327e1c1dca122df0a6ec6d88ad9c0

See more details on using hashes here.

Provenance

The following attestation bundles were made for zsasa-0.9.1-cp313-cp313-manylinux_2_28_aarch64.whl:

Publisher: publish.yml on N283T/zsasa

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file zsasa-0.9.1-cp313-cp313-macosx_11_0_x86_64.whl.

File metadata

File hashes

Hashes for zsasa-0.9.1-cp313-cp313-macosx_11_0_x86_64.whl
Algorithm Hash digest
SHA256 ab1050cd4911cb6166c81c5e805fb70d7c5b3b6f1f5ead7e046defec05f1d5a0
MD5 9b84ab1e1f06d99ecfef6c2c8eaf8cf1
BLAKE2b-256 00fe189c8792826850ca8f24789ea89373fca1b7205b1a33b190fe3729cd54e8

See more details on using hashes here.

Provenance

The following attestation bundles were made for zsasa-0.9.1-cp313-cp313-macosx_11_0_x86_64.whl:

Publisher: publish.yml on N283T/zsasa

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file zsasa-0.9.1-cp313-cp313-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for zsasa-0.9.1-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2f0266cdc7b6493ee915e970333def6e83a046abc392cf52a3737e8e8b87e09e
MD5 3c7e9e58abc7dbbf87056f6435c7e9c5
BLAKE2b-256 8fd74dd5bae4c9a5993d8f4bcab5001c3f44241ad0c0cec8bf3eb0049025d101

See more details on using hashes here.

Provenance

The following attestation bundles were made for zsasa-0.9.1-cp313-cp313-macosx_11_0_arm64.whl:

Publisher: publish.yml on N283T/zsasa

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file zsasa-0.9.1-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: zsasa-0.9.1-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 1.5 MB
  • Tags: CPython 3.12, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for zsasa-0.9.1-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 9607c2e9a82e8e3a7ea8bdfdde824aa53b5ac9d2aff3ee1a4bef8de40d53dd95
MD5 1cd39a6030f3fabc0a8b650cdba2991a
BLAKE2b-256 b70c3b9603dd49c5f1d4418f4999c84ee4a8252e6373c23d5ce7f07e337d5f59

See more details on using hashes here.

Provenance

The following attestation bundles were made for zsasa-0.9.1-cp312-cp312-win_amd64.whl:

Publisher: publish.yml on N283T/zsasa

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file zsasa-0.9.1-cp312-cp312-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for zsasa-0.9.1-cp312-cp312-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 e08bc3d3ed7f0de5850f9ef7002940e4479796a5b38ccb61d5189847767ccbea
MD5 c95f2a5dd3d89613ac4119707684c4db
BLAKE2b-256 0d7c817c664a6498c69feef845d662d645debaa809439ba5a64da18f8e93de12

See more details on using hashes here.

Provenance

The following attestation bundles were made for zsasa-0.9.1-cp312-cp312-manylinux_2_28_x86_64.whl:

Publisher: publish.yml on N283T/zsasa

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file zsasa-0.9.1-cp312-cp312-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for zsasa-0.9.1-cp312-cp312-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 294505d3803b60d7625e45795c527f2c5c7a2e5d026303b84dd6e0fde55756dd
MD5 8345b8cd36f264b5bc2fc64941b50a0b
BLAKE2b-256 2fa8974a5e5abe6bda883d117ccfbc49f3aee543e48d87940d62d08813b58a3b

See more details on using hashes here.

Provenance

The following attestation bundles were made for zsasa-0.9.1-cp312-cp312-manylinux_2_28_aarch64.whl:

Publisher: publish.yml on N283T/zsasa

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file zsasa-0.9.1-cp312-cp312-macosx_11_0_x86_64.whl.

File metadata

File hashes

Hashes for zsasa-0.9.1-cp312-cp312-macosx_11_0_x86_64.whl
Algorithm Hash digest
SHA256 110bc80bb9aba22f1547f92da2e9dd0b6620299f84b5557f38575d684b1e7fd8
MD5 9509f4b8f0bc2b68f77c333dcfdb8122
BLAKE2b-256 b7fc0fe000288e30c706b985d41b1d17e180784e9e8f00dad15d85a96d4ca122

See more details on using hashes here.

Provenance

The following attestation bundles were made for zsasa-0.9.1-cp312-cp312-macosx_11_0_x86_64.whl:

Publisher: publish.yml on N283T/zsasa

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file zsasa-0.9.1-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for zsasa-0.9.1-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 afe2a68af5ca9996d69eb7ca297e37af04b91ac3f9538bce03a887ea3e896cc1
MD5 daedf3dae12e753ebe2464b73fe1a909
BLAKE2b-256 dc8eb9bb8969a1fadbd19229e83d827e7643453500ccb89a9ecac019154638a2

See more details on using hashes here.

Provenance

The following attestation bundles were made for zsasa-0.9.1-cp312-cp312-macosx_11_0_arm64.whl:

Publisher: publish.yml on N283T/zsasa

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file zsasa-0.9.1-cp311-cp311-win_amd64.whl.

File metadata

  • Download URL: zsasa-0.9.1-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 1.5 MB
  • Tags: CPython 3.11, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for zsasa-0.9.1-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 ddc21c496bd5838ffa59184d244eea9078598c8b0ccd34b6eb2a5d69144df761
MD5 5e09a7acbad142ac24a30571f24447dd
BLAKE2b-256 8103482fe8428c45f9a1cca7137fd5349056e2c67921c6ae77b58a80b0ff0967

See more details on using hashes here.

Provenance

The following attestation bundles were made for zsasa-0.9.1-cp311-cp311-win_amd64.whl:

Publisher: publish.yml on N283T/zsasa

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file zsasa-0.9.1-cp311-cp311-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for zsasa-0.9.1-cp311-cp311-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 5502c1d8ab1ee7c869f96542c795e2891552d045517ba565d1d1366e88caaf47
MD5 8789f96baf0afd1d9178661a8019127f
BLAKE2b-256 1864a0f61c92362685eeb657ca47306dde4cbbb6055a2bd88e81621d5c6a2311

See more details on using hashes here.

Provenance

The following attestation bundles were made for zsasa-0.9.1-cp311-cp311-manylinux_2_28_x86_64.whl:

Publisher: publish.yml on N283T/zsasa

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file zsasa-0.9.1-cp311-cp311-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for zsasa-0.9.1-cp311-cp311-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 717f08d82d47a9d8c5d623ddb1221bbb7f7072208af89d258f25280bf34746bf
MD5 91b7eaf83a21c6eef8289f3e172b9f33
BLAKE2b-256 451746f29cedda7af30f5ab85d8d9891300611b8c1d1b4127593654002f0e670

See more details on using hashes here.

Provenance

The following attestation bundles were made for zsasa-0.9.1-cp311-cp311-manylinux_2_28_aarch64.whl:

Publisher: publish.yml on N283T/zsasa

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file zsasa-0.9.1-cp311-cp311-macosx_11_0_x86_64.whl.

File metadata

File hashes

Hashes for zsasa-0.9.1-cp311-cp311-macosx_11_0_x86_64.whl
Algorithm Hash digest
SHA256 f8f63913a8f12e91137ef69a1b39a4eeaae29ff7f2b902737c5c57482ec2af46
MD5 45220ae6e5735c8943bfed20dc5db1c5
BLAKE2b-256 5890ab3200b2cd69ee9a3a9cea7bad9bfd7583b509cc533ab5db7c31abdaf4c4

See more details on using hashes here.

Provenance

The following attestation bundles were made for zsasa-0.9.1-cp311-cp311-macosx_11_0_x86_64.whl:

Publisher: publish.yml on N283T/zsasa

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file zsasa-0.9.1-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for zsasa-0.9.1-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6ca7fe70d04a0de5e9459e0aec0cbc7f34577d1a091b3c20b51c1bdcb2ef4e89
MD5 99f0393b16b12e1b455742e1f7980359
BLAKE2b-256 2b5e5e08dd729d640caaece3603b89204d81f847089bca3020d6500125d0adc3

See more details on using hashes here.

Provenance

The following attestation bundles were made for zsasa-0.9.1-cp311-cp311-macosx_11_0_arm64.whl:

Publisher: publish.yml on N283T/zsasa

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

0.9.1 This release

16 files

0.9.0

16 files

0.8.0

16 files

0.7.1

16 files

0.7.0

16 files

0.6.0

16 files

0.5.0

16 files

0.4.0

16 files

0.3.2

16 files

0.3.1

16 files

0.3.0

16 files

0.2.11

16 files

0.2.8

16 files

0.2.7

16 files

0.2.6

16 files

0.2.5

16 files

0.2.4

16 files

0.2.3

16 files

0.2.1

16 files

0.2.0

16 files

0.1.3

16 files

0.1.2

16 files

0.1.1

16 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