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.5.tar.gz (82.7 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.5-cp39-abi3-win_amd64.whl (256.3 kB view details)

Uploaded CPython 3.9+Windows x86-64

cosmolkit-0.0.5-cp39-abi3-manylinux_2_34_x86_64.whl (425.6 kB view details)

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

cosmolkit-0.0.5-cp39-abi3-macosx_11_0_arm64.whl (364.2 kB view details)

Uploaded CPython 3.9+macOS 11.0+ ARM64

File details

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

File metadata

  • Download URL: cosmolkit-0.0.5.tar.gz
  • Upload date:
  • Size: 82.7 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.5.tar.gz
Algorithm Hash digest
SHA256 2384ca04ff4ec2e9234e17d5da28493b250c9625d45490cd67378fd45b7c11e3
MD5 b698825ac17ae1c03ea5283c73750206
BLAKE2b-256 2d91702331dadd4165b54c355cdd35a1456232ddc5db8363ad317cbd696500d8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: cosmolkit-0.0.5-cp39-abi3-win_amd64.whl
  • Upload date:
  • Size: 256.3 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.5-cp39-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 629a1804d4d1f5e5f065617611aaf11a12bc3b7b519a838dea408feaafbe4b8d
MD5 d162aa6e4b1125932656e560cc28f23e
BLAKE2b-256 55d1f88aecd64c78cc70bbd66733fed46cd83d34a87f5b03ebb29439b8c19622

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cosmolkit-0.0.5-cp39-abi3-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 63fe190e4b334135ea62aac542a96f832273be35d85d436dc115a8b9afe5502f
MD5 dce46051446a9e356647f0a597c9572b
BLAKE2b-256 e6b28cea1e2f76da0586b0c8887d51a5b70cc29faa598447f434901a4e0d55bb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cosmolkit-0.0.5-cp39-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 08f7f14d0d37ab0222e494110f4851bf9a7d001159c43e47822a8325a8c6d3d7
MD5 7234a3ea9f8c5c842b270f16a7ffc1b5
BLAKE2b-256 c145ecbdb76f4d26ff55553bd8ee838e1b21a352172e4f12da6940a957d808ce

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