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.tomlpackage metadata for the published Python distributionCargo.tomlandsrc/lib.rsfor the Rust extension module crate built with PyO3 + maturin- no Python shim package;
cosmolkitis 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(), andcore_version()Molecule.from_smiles(),Molecule.read_sdf(),atoms(),bonds(), andfind_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.pyshows the internal tetrahedral stereo representation exposed to Pythonpython/examples/io_and_properties.pyand 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
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file cosmolkit-0.0.4.tar.gz.
File metadata
- Download URL: cosmolkit-0.0.4.tar.gz
- Upload date:
- Size: 81.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ca51be8357f2e358c074061175ef44470b135c338ddbb34fdca14facba15961b
|
|
| MD5 |
65420257a48d82c79132cb9d488e0b6e
|
|
| BLAKE2b-256 |
9818992571e49d37f92f65ac1a7ebeedef5ab9cd3f454f6579d389cf6809de54
|
File details
Details for the file cosmolkit-0.0.4-cp39-abi3-win_amd64.whl.
File metadata
- Download URL: cosmolkit-0.0.4-cp39-abi3-win_amd64.whl
- Upload date:
- Size: 254.5 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
eb3be46ad9fd745ce66734f2051cf6b40b5a6157aee7a5a3370b43f4042a9cbe
|
|
| MD5 |
28f718fadf3285b748eef0e9031f844b
|
|
| BLAKE2b-256 |
dd4540cc35cdbd9ecfa61467ad358828b184db21e2d645e3c38511ae0eafb6f3
|
File details
Details for the file cosmolkit-0.0.4-cp39-abi3-manylinux_2_34_x86_64.whl.
File metadata
- Download URL: cosmolkit-0.0.4-cp39-abi3-manylinux_2_34_x86_64.whl
- Upload date:
- Size: 422.3 kB
- Tags: CPython 3.9+, manylinux: glibc 2.34+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2ad5247fd2535dbaab4af1888f7a54dcc5bb264c8c381d66e082502fb9262869
|
|
| MD5 |
7c871621874e6cda69f68ce45bca9a0e
|
|
| BLAKE2b-256 |
769b6cf93c832be08580f93fed78a157a37ed3ffbc79fd1920fde4aa2a69b012
|
File details
Details for the file cosmolkit-0.0.4-cp39-abi3-macosx_11_0_arm64.whl.
File metadata
- Download URL: cosmolkit-0.0.4-cp39-abi3-macosx_11_0_arm64.whl
- Upload date:
- Size: 362.8 kB
- Tags: CPython 3.9+, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0f52a3bff6acacf941008f9297d3d37b6194b072df7caaf9ec4987c785ee89ca
|
|
| MD5 |
2312af20210c5fb7879d347e1c3039e6
|
|
| BLAKE2b-256 |
71130092def2e3562fd80ea4916e605ce521fb5b654dcd6b0b1bc4e362d2d4ba
|