Skip to main content
maintainers:

andrewtarzia, lukasturcani

documentation:

https://stko-docs.readthedocs.io

discord:

https://discord.gg/zbCUzuxe2B

docs/source/_static/stko.png

Overview

stko is a Python library for performing optimizations and calculations on complex molecules built using stk. In the case of optimizations, a clone of stk.Molecule is returned. For calculators, a Results class are used to calculate and extract properties of an stk.Molecule. There is a Discord server for stk, which can be joined through https://discord.gg/zbCUzuxe2B.

Installation

To get stko, you can install it with pip:

pip install stko

Some optional dependencies are only available through conda:

# for xtb
mamba install xtb
# for openbabel, assuming you are not using Python >= 3.13!
mamba install openbabel

With OpenMM

To get stko and use OpenMM, we had some installation issues. The current solution is to first, in a new environment, install the OpenMM requirements:

mamba install -c conda-forge openff-toolkit

Then install stko with pip, but with the cuda variant to take advantage of GPU speed up (note that this is a heavy installation!).

pip install stko[cuda]

We also removed the default installation of espaloma_charge that provides the ML-based espaloma-am1bcc partial charges method. If users want this package, create a new environment and install their dependancies (if this fails, please check their instructions), then install stko:

mamba install -c conda-forge espaloma_charge openff-toolkit
pip install stko[cuda]

Developer Setup

  1. Install just.

  2. In a new virtual environment run:

just dev
  1. Run code checks:

just check

Examples

We are constantly trying to add examples to the examples/ directory and maintain examples in the doc strings of Calculator and Optimizer classes.

examples/basic_examples.py highlights basic optimisation with rdkit, and xtb (if you have xtb available).

How To Contribute

If you have any questions or find problems with the code, please submit an issue.

If you wish to add your own code to this repository, please send us a Pull Request. Please maintain the testing and style that is used throughout `stko.

How To Cite

If you use stko please cite

https://github.com/JelfsMaterialsGroup/stko

Acknowledgements

We developed this code when working in the Jelfs group, http://www.jelfs-group.org/, whose members often provide very valuable feedback, which we gratefully acknowledge.

Metadata

Release files for stko 2026.10.13.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for stko 2026.10.13.0
File Size Uploaded
stko-2026.10.13.0.tar.gz 22.8 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for stko 2026.10.13.0
File Interpreter ABI Platform
stko-2026.10.13.0-py3-none-any.whl Python 3 none any Details

Total release size: 22.9 MB

Release files / stko-2026.10.13.0.tar.gz

Download URL stko-2026.10.13.0.tar.gz
Size 22.8 MB
Tags Source
SHA-256 checksum
How to use checksums
2fea5baa2b90678377ca85aee146bad72bbc6e21bcb4c5c6410f062302ed9533
BLAKE2b-256 checksum
How to use checksums
70df290318d74ce053ccdb80bcee0782e6c944730cb8f01ed11129bd99f91305
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.17

Release files / stko-2026.10.13.0-py3-none-any.whl

Download URL stko-2026.10.13.0-py3-none-any.whl
Size 125.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d52004f3dbfa7c046e57c04cec65bc6bfff64c40eefdf334694e0e67fd753c0f
BLAKE2b-256 checksum
How to use checksums
042f005665f751a7499d9718226261276ecb6887ac243216456ff2375b2de30e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.17
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