Skip to main content

zendock

Open demo in Colab

zendock is a focused Python package for the molecular docking workflow sketched in notebooks/zendock_colab_demo.ipynb.

This package provides the stack needed to perform molecular docking for scientific use, prioritizing access and ease of use.

The base package keeps imports lightweight. Install extras for ligand/receptor preparation, docking, and visualization workflows.

Demo

Try the interactive Google Colab notebook:

Open the Zendock demo in Colab

Philosophy

  • Lightweight import by default, optional extras for full workflows
  • Notebook prototype, package implementation
  • uv for development
  • pip works for end users

Install

Users

Install from PyPI with regular pip:

pip install zendock

Install the complete workflow stack with:

pip install "zendock[all]"

Targeted extras are also available:

pip install "zendock[prep]"  # ligand/receptor preparation
pip install "zendock[dock]"  # Vina docking
pip install "zendock[viz]"   # 3D/interaction visualization

Development with uv

Create an environment and install the package in editable mode:

uv venv
source .venv/bin/activate
uv pip install -e ".[all]"

Install developer tools too:

uv pip install -e ".[dev]"

Development Workflow

Typical loop:

uv venv
source .venv/bin/activate
uv pip install -e ".[all,dev]"
pytest
python -m build

Project Layout

src/zendock/
  __init__.py
  docking.py
  exceptions.py
  fetching.py
  ligand.py
  models.py
  receptor.py
  result_store.py
  results.py
  tools.py
  utils.py
  workspace.py
tests/
Docking.ipynb
pyproject.toml

Current Public API

from zendock import DockingRunner, Ligand, OutputLayout, Receptor

DockingRunner is the notebook-friendly facade. New code can pass an OutputLayout to centralize output directories and use the typed result objects cached on runner.last_result after docking.

After run_docking(), cached results can be inspected as a Polars table:

results = runner.display_docking_results(ligand_name="ligand", n_poses=5)
# Prints the pose table plus mean lRMSD and mean uRMSD for those five poses.

rmsd_means = runner.get_docking_rmsd_means(ligand_name="ligand", n_poses=5)
# One-row Polars table: mean lRMSD, mean uRMSD

Interaction outputs are generated from saved docking results. Export methods return paths, while display helpers render the generated files in notebooks (or print a fallback in non-notebook environments):

runner.display_2d_interaction_map(ligand_name="ligand")
runner.display_3d_interaction_map(ligand_name="ligand")
runner.display_interaction_table(ligand_name="ligand")

The equivalent export methods are export_2d_interaction_diagram, export_3d_interaction_diagram, and export_interaction_table.

Notes

  • Polars is used for tabular docking-result display.
  • The package is licensed under MIT.

Download files

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

Source Distribution

zendock-0.2.5.tar.gz (105.0 kB view details)

Uploaded Source

Built Distribution

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

zendock-0.2.5-py3-none-any.whl (22.8 kB view details)

Uploaded Python 3

File details

Details for the file zendock-0.2.5.tar.gz.

File metadata

  • Download URL: zendock-0.2.5.tar.gz
  • Upload date:
  • Size: 105.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.16 {"installer":{"name":"uv","version":"0.11.16","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for zendock-0.2.5.tar.gz
Algorithm Hash digest
SHA256 e0d2fc1e3617e710f0af96730b9bba35ebbfcfe565bef1cf35bc5aafb27ad470
MD5 b43f308aeaf42019cef5ca7e708091c1
BLAKE2b-256 4c7705814194f96d97ad58d200c458fd3721ecee896b2de143c66fda0bcda20c

See more details on using hashes here.

File details

Details for the file zendock-0.2.5-py3-none-any.whl.

File metadata

  • Download URL: zendock-0.2.5-py3-none-any.whl
  • Upload date:
  • Size: 22.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.16 {"installer":{"name":"uv","version":"0.11.16","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for zendock-0.2.5-py3-none-any.whl
Algorithm Hash digest
SHA256 4f5c78647c10916eb7860fbcb547bbbac0636ab4bac0fbf92d946519a0ba596c
MD5 62e9ba6ce69e95e3065f0ed4cf6db8b5
BLAKE2b-256 6c2051bf2f9a4ca8181e3ede4062a1c1607f1cfd2f1ca3cefc64caf718ad0a63

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.2.5 This release

2 files

0.2.4

2 files

0.2.3

2 files

0.2.1

2 files

0.2.0

2 files

0.1.1

2 files

0.1.0

2 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