Skip to main content

ASE-Grain

Docs PyPI version

An async wrapper for ASE, adapting the calculators into Grain-compatible jobs.

Supported calculators

  • Gaussian
  • Psi4
  • ORCA
  • Quantum Espresso

Quickstart

pip install ase-grain

Want to try out the tasklets without running a Grain mission? Easy:

from ase_grain import gautask, psi4task

from grain.subproc import subprocess_pool_scope
from grain import GVAR
from grain.resource import Node

import trio

async def main():
    async with subprocess_pool_scope(): # only needed for Psi4
        GVAR.res = Node(N=[0,1,2,3],M=1) # 4 processors, 1 GB memory
        e, f = await psi4task("test", "b3lyp/6-31++g(d,p)", 
        #e, f = await gautask("test", "b3lyp/6-31++g(d,p)",
            (0, 1),
            [[-4.546300, 0.811495, -1.302550],
             [-3.783370, 1.116810, -1.871810],
             [-3.418490, 0.344640, -2.321040]],
            [1, 8, 1], # a water molecule
        )
        print(e)
        print(f)

trio.run(main)

This also demonstrates that you can use ASE-Grain outside a Grain scheduler, more specifically, in any Trio-based async environment with Grain's context variables (GVAR).

Metadata

Release files for ase-grain 0.1.4

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

Source distribution (sdist)

Source distribution for ase-grain 0.1.4
File Size Uploaded Provenance Actions
ase-grain-0.1.4.tar.gz 9.4 kB Without provenance Details for ase-grain-0.1.4.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for ase-grain 0.1.4
File Interpreter ABI Platform Actions
ase_grain-0.1.4-py3-none-any.whl Python 3 none any Details for ase_grain-0.1.4-py3-none-any.whl

Total release size: 19.6 kB

Release files / ase-grain-0.1.4.tar.gz

Download URL ase-grain-0.1.4.tar.gz
Size 9.4 kB
Tags Source
SHA-256 checksum
How to use checksums
6afc34b469b7e1455caf3584bd8a879d79a70de4ff1f4051bc58e9778bf6e69b
BLAKE2b-256 checksum
How to use checksums
6f01a8cf31a292ce62a4b5efbfefd7ff4248bfd309bc385bd30087e5ee7ba65b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/0.0.0 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.2

Release files / ase_grain-0.1.4-py3-none-any.whl

Download URL ase_grain-0.1.4-py3-none-any.whl
Size 10.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f49e548a5596b4fb356ede6aed26ac0f57399b5e55206096bffe3ef2ac2871c5
BLAKE2b-256 checksum
How to use checksums
d95d3bb061d6be4e816219c901334b34c8927dca79bf30ccb047168cb4e7c223
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/0.0.0 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.2

Security for ase-grain 0.1.4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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