Skip to main content

No project description provided

Project description

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.

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

stko-2025.12.7.1.tar.gz (22.8 MB view details)

Uploaded Source

Built Distribution

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

stko-2025.12.7.1-py3-none-any.whl (118.4 kB view details)

Uploaded Python 3

File details

Details for the file stko-2025.12.7.1.tar.gz.

File metadata

  • Download URL: stko-2025.12.7.1.tar.gz
  • Upload date:
  • Size: 22.8 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.14

File hashes

Hashes for stko-2025.12.7.1.tar.gz
Algorithm Hash digest
SHA256 e923246c8304b84e9804335d7e6c5c09471ca8097c631521cb6bd144513f1223
MD5 575d8d1dc4d1c9a36a9ae3958ad742a4
BLAKE2b-256 7a26e554529576210b953d0c931562a365e335c7ef8a12c9806497eae3d8e23d

See more details on using hashes here.

File details

Details for the file stko-2025.12.7.1-py3-none-any.whl.

File metadata

  • Download URL: stko-2025.12.7.1-py3-none-any.whl
  • Upload date:
  • Size: 118.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.14

File hashes

Hashes for stko-2025.12.7.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1838ba3b0f310ea8609e8528a39a754aa49522d0d56e5a54d149b0bf9eb60029
MD5 5c10e1423c507d7a12a6ceadbf6adce0
BLAKE2b-256 9bc180a1db74d39338b16dc919f0b8ad59251726cf9a2c0f51f6097af222bc0f

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