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()
    • tetrahedral_stereo_from_smiles() for the ordered-ligand tetrahedral stereo representation
  • 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.2.tar.gz (76.1 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.2-cp39-abi3-win_amd64.whl (194.2 kB view details)

Uploaded CPython 3.9+Windows x86-64

cosmolkit-0.0.2-cp39-abi3-manylinux_2_34_x86_64.whl (359.0 kB view details)

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

cosmolkit-0.0.2-cp39-abi3-macosx_11_0_arm64.whl (306.6 kB view details)

Uploaded CPython 3.9+macOS 11.0+ ARM64

File details

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

File metadata

  • Download URL: cosmolkit-0.0.2.tar.gz
  • Upload date:
  • Size: 76.1 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.2.tar.gz
Algorithm Hash digest
SHA256 4720fa7008677257199433dca2b99d4f9cb87c92507ae2e56f9cc8d2dee7059a
MD5 eb708beddcd5731c3771dea295dfbd03
BLAKE2b-256 e29cd85af002585382d4734cddd3a0c0eaf1252a2f9b8eb2be5b9afb9ba7b1d8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: cosmolkit-0.0.2-cp39-abi3-win_amd64.whl
  • Upload date:
  • Size: 194.2 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.2-cp39-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 bf6889885fde119d167198d46e20161a3da746d5ee5907d45f3abc976eb8fddc
MD5 89c1c2210520495d35daced0bf9eddeb
BLAKE2b-256 cda99fd31cd4e3a2c749a7c054beeed3452ad13a172dacade442621a7ae589e8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cosmolkit-0.0.2-cp39-abi3-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 8d0fb4fbc027e4883b7d895509010890438572fc9171d9914563ac2c26c94b0c
MD5 c198edcedef6aff0f130af49cf5a7ae0
BLAKE2b-256 a8391dfd11f28279f9c06bcce773ef16dc5447d41be4c7409c5e5e38eee33696

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cosmolkit-0.0.2-cp39-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1e2fc297ddb6b2e1d786a21f55c879d42a2c79dfda74a448da3c84c0b6f4aa5a
MD5 b20f4208690ab1ad05ef0f3d5915a434
BLAKE2b-256 90131dcd772f7f46f47051ff859a5e8ef0cc81a4080f4233a08b0a5e543b921c

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