Skip to main content

Atomic Similation Interface (ASI) API

Atomic Simulation Interface (ASI) is a native C-style API that includes functions for export and import of data structures that are used in electronic structure calculations and for classical molecular dynamics simulations. ASI aims to be a uniform, generic and efficient interface for connecting various computational chemistry and materials science codes in multiscale simulation workflows, such as QM/MM, QM/ML, QM/QM. ASI specifies functions, data types and calling conventions for export and import of density matrices, overlap and Hamiltonian matrices, electrostatic potential, atomic coordinates, charges, total energy and forces.

ASI API specification

ASI API is specified as a C header file asi.h. Codes implementing ASI API must provide linkable library with definitions of functions from asi.h. Depending on particular usage of the implementaions, some functions can be ommited or implemented as stubs, if they are not going to used. To use Python ASI wrapper it is necessary to have all functions from asi.h defined, but of course stub definitions can be used.

ASI API specification.

Supported in:

Building

FHI-aims

FHI-aims has embedded support of ASI API. Just build latest version of FHI-aims as a shared library and use with your code.

DFTB+

  1. Download and build DFTB+ from the branch with ASI API with shared library support.

  2. Set environment variables DFTBP_INCLUDE and DFTBP_LIB_DIR to folders with DFTB+ C-headers and libraries.

  3. Optionally export environment variables INSTALL_PREFIX and BUILD_PATH to set installation and building locations.

  4. Run make && make install from the root of the working copy of this repository.

  5. The shared library implementing ASI API for DFTB+ will be in ${INSTALL_PREFIX}/lib.

Testing

Use Makefile in tests folder to build native tests. Set environment variables in the header of tests/Makefile to link with proper ASI API implementaions.

To run tests go to tests/testcases and run run_dftbp_tests.sh or run_aims_tests.sh to run test.

Usage

See tests/src for examples of usage in native code.

See tests/python for examples of usage in Python scripts.

Metadata

Release files for asi4py 1.4.9

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

Source distribution (sdist)

Source distribution for asi4py 1.4.9
File Size Uploaded Provenance Actions
asi4py-1.4.9.tar.gz 20.1 kB Without provenance Details for asi4py-1.4.9.tar.gz

Built distribution (wheel)

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

Total release size: 40.0 kB

Release files / asi4py-1.4.9.tar.gz

Download URL asi4py-1.4.9.tar.gz
Size 20.1 kB
Tags Source
SHA-256 checksum
How to use checksums
a4231fc0fd6ab9660a86387486f8525422042c17a74718ea4095861ebd386931
BLAKE2b-256 checksum
How to use checksums
43dcbccc81e84bb56cee9d9e9343a1da54fbfdb5cea6eeff5df104d9386e5f77
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.5

Release files / asi4py-1.4.9-py3-none-any.whl

Download URL asi4py-1.4.9-py3-none-any.whl
Size 19.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a9c86977579ca9b735d3d6d02615d4e0f95b56f17c4e354898d06fe8a932753e
BLAKE2b-256 checksum
How to use checksums
6ee9016905b084f1b641aa576ecca1184c38ca8edf7bb117e97f987898ec436d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.5

Security for asi4py 1.4.9

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.

Release history Release notifications | RSS feed

This release

1.4.9 This release

2 release files No provenance

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