Rowan Python Library
Project description
Rowan Python Library
The Rowan Python library provides convenient access to the Rowan API from applications written in the Python language.
Documentation
The documentation is available here.
Installation
To install, run pip install rowan-python
.
Usage
Rowan can be run in either blocking (wait until job is complete) or non-blocking (don't wait) modes. Both modes require generation of an API key at labs.rowansci.com.
For now, molecules are specified through cctk. Additional ways to specify molecules will be added in the future.
Results are returned as dictionaries in the stjames format.
Blocking
import cctk
import rowan
rowan.api_key = "rowan-sk..."
client = rowan.Client()
# load molecule by name (cctk can also load in a variety of file formats)
molecule = cctk.Molecule.new_from_name("cyclobutane")
# run calculation remotely and return result
result = client.compute(molecule, name="opt cyclobutane", method="b97-3c", tasks=["optimize", "charge"])
print(result)
Non-Blocking
import cctk
import rowan
rowan.api_key = "rowan-sk..."
client = rowan.Client(blocking=False)
# load molecule by name (cctk can also load in a variety of file formats)
molecule = cctk.Molecule.new_from_name("cyclobutane")
# start calculation and return id
calc_id = client.compute(molecule, name="opt cyclobutane", method="b97-3c", tasks=["optimize", "charge"])
# retrieve result (and status)
result = client.get(calc_id)
print(result)
# alternately, cancel queued or running calculation
client.stop(calc_id)
Issues
To report issues, please use the "Issues" tab above.
Corin Wagen, 2023
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
rowan-python-0.0.2.tar.gz
(4.4 kB
view hashes)
Built Distribution
Close
Hashes for rowan_python-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3ba55a5c74db40da560a157222503b43167d8caf49310a4598419b98c4733cb4 |
|
MD5 | b30cc09a1350a7b78e94bd87eb4188f3 |
|
BLAKE2b-256 | b161b25fa0ac2bfbdccbe05c43c60a6e161b780aaddde8915d3994ea9effe4ec |