Skip to main content

Python bindings for COSMolKit

Project description

Python Bindings

This directory hosts PyO3-based Python bindings for COSMolKit.

Use the repository-level Python environment:

  • uv sync --group dev
  • .venv/bin/python -m pip install -e python

Current layout:

  • pyproject.toml package metadata for the published Python distribution
  • Cargo.toml and src/lib.rs for the Rust extension module crate built with PyO3 + maturin
  • no Python shim package; cosmolkit is provided directly by the compiled extension module

Current status:

  • the package is still partial and not yet a full public API surface
  • low-level bindings now expose:
    • placeholder(), rust_version(), and core_version()
    • Molecule.from_smiles(), Molecule.read_sdf(), atoms(), bonds(), and find_chiral_centers()
    • Molecule.tetrahedral_stereo() for the ordered-ligand tetrahedral stereo representation (spec: tetrahedral_stereo_representation.md)
  • Molecule.ensure_conformer() and the higher-level 3D pipeline remain intentionally unimplemented on the COSMolKit side

Examples:

  • python/examples/tetrahedral_stereo.py shows the internal tetrahedral stereo representation exposed to Python
  • python/examples/io_and_properties.py and the other example files still describe the intended longer-term API shape

Local development:

  • uv sync --group dev
  • .venv/bin/python -m pip install -e python
  • .venv/bin/python -c "import cosmolkit; print(cosmolkit.placeholder())"

Publishing:

  • GitHub Actions workflow: .github/workflows/python-publish.yml
  • expected PyPI secret: PYPI_API_TOKEN
  • trigger: see the workflow file for the current tag/release policy

Project details


Download files

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

Source Distribution

cosmolkit-0.0.3.tar.gz (76.8 kB view details)

Uploaded Source

Built Distributions

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

cosmolkit-0.0.3-cp39-abi3-win_amd64.whl (210.9 kB view details)

Uploaded CPython 3.9+Windows x86-64

cosmolkit-0.0.3-cp39-abi3-manylinux_2_34_x86_64.whl (374.9 kB view details)

Uploaded CPython 3.9+manylinux: glibc 2.34+ x86-64

cosmolkit-0.0.3-cp39-abi3-macosx_11_0_arm64.whl (320.3 kB view details)

Uploaded CPython 3.9+macOS 11.0+ ARM64

File details

Details for the file cosmolkit-0.0.3.tar.gz.

File metadata

  • Download URL: cosmolkit-0.0.3.tar.gz
  • Upload date:
  • Size: 76.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for cosmolkit-0.0.3.tar.gz
Algorithm Hash digest
SHA256 a01a1f706042d635510c9cb082e9a7af648d7d1f44dd3baa2e8339d476bc6c0c
MD5 86f81caf9ac116ececbdecf236bf5e0a
BLAKE2b-256 747b973489f73903ec47e964545293996a556d51ad5d2519632d0d84aede426e

See more details on using hashes here.

File details

Details for the file cosmolkit-0.0.3-cp39-abi3-win_amd64.whl.

File metadata

  • Download URL: cosmolkit-0.0.3-cp39-abi3-win_amd64.whl
  • Upload date:
  • Size: 210.9 kB
  • Tags: CPython 3.9+, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for cosmolkit-0.0.3-cp39-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 052c8f1f6580e2677142a7a625d90bdf9b990ee4556c2739de596adbc7cb2e5d
MD5 38cd4f7e25b5786b62d481fc3153643a
BLAKE2b-256 ea50b7e2b9b5cf09de2f4af2004e15ccc17ac6d192969a0bb2e6d60f66be873d

See more details on using hashes here.

File details

Details for the file cosmolkit-0.0.3-cp39-abi3-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for cosmolkit-0.0.3-cp39-abi3-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 414034d2f233bf1441df6b8d9632cff9900987763ba21d4d820a7230c84f3b24
MD5 9730bd555dc17a01f7afc9d3e31d10ce
BLAKE2b-256 bbe7217d550fc6807fce7d48a41b233ed892062659b2b15b4c659e7268c63b0a

See more details on using hashes here.

File details

Details for the file cosmolkit-0.0.3-cp39-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for cosmolkit-0.0.3-cp39-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3434882e90adf800fe05b775357bc2539d266a91e6945dead574717752ed3053
MD5 d5775e65d20c1916e789cfded0a5a171
BLAKE2b-256 a8234c4a4debf64e07a858752d65a51e57421c95cfd62381f0f83081379f1253

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page