Skip to main content

KIM Validation and Verification

Testing PyPI

This package allows the user to run any OpenKIM Test Drivers written using the kim-tools package locally. A “Test Driver” is a computational protocol that reports one or more material properties using the KIM Properties Framework

List of included Test Drivers:

  • EquilibriumCrystalStructure

  • ElasticConstantsCrystal

Currently, all Test Drivers require the AFLOW software to be installed and in your PATH. See https://kim-tools.readthedocs.io/en/stable/#doc-standalone-installation for installation info.

Basic usage example:

from kimvv import EquilibriumCrystalStructure, ElasticConstantsCrystal
from ase.build import bulk
from json import dumps

# If a string is passed when instantiating the class, it is assumed to be a KIM model name
relax = EquilibriumCrystalStructure('LennardJones_Ar')

# Every Test Driver is able to take an Atoms object
relax(bulk('Ar','fcc',5.0))

# Access the list of dictionaries containing the material properties reported by the Test Driver
print(dumps(relax.property_instances,indent=2))

# All Test Drivers besides EquilibriumCrystalStructure expect to be
# passed a relaxed structure. This can be either a relaxed Atoms
# object, or a results dictionary from an EquilibriumCrystalStructure
# run. Any element of the list returned by EquilibriumCrystalStructure
# will do, as they all contain a description of the crystal structure
elastic = ElasticConstantsCrystal('LennardJones_Ar')
elastic(relax.property_instances[0])
print(dumps(elastic.property_instances,indent=2))

# You can also use a generic ASE calculator (as long as the Test Driver only uses ASE for calculations,
# i.e. this will not work for Test Drivers that do MD using LAMMPS)
# In this case you don't even need kimpy or the KIM API installed.
from ase.calculators.lj import LennardJones
relax = EquilibriumCrystalStructure(LennardJones(sigma=3.4,epsilon=0.0104,rc=8.15))
relax(bulk('Ar','fcc',5.0))

Usage example 2

Querying for all DFT-relaxed structures for a given combination of elements in OpenKIM and relaxing them with your potential

from kimvv import EquilibriumCrystalStructure
from kim_tools import (
  query_crystal_structures,
  get_deduplicated_property_instances
)
from json import dumps
from ase.calculators.lj import LennardJones

# Query for all relaxed Argon reference data in OpenKIM
raw_structs = query_crystal_structures(stoichiometric_species=["Ar"])

# Deduplicate them
unique_structs = get_deduplicated_property_instances(raw_structs, allow_rotation=True)

# Instantiate the Driver with your model
relax = EquilibriumCrystalStructure(LennardJones(sigma=3.4,epsilon=0.0104,rc=8.15))

# Run the Driver with each structure. As this is run, the driver internally accumulates
# Property Instances
for struct in unique_structs:
  relax(struct)

# Access the results as a dictionary. For each structure, there are 3 properties
# (structure, binding energy, density)
print(dumps(relax.property_instances,indent=2))

Metadata

Release files for kimvv 0.1.2

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

Source distribution (sdist)

Source distribution for kimvv 0.1.2
File Size Uploaded Provenance Actions
kimvv-0.1.2.tar.gz 31.4 kB With provenance Details for kimvv-0.1.2.tar.gz

Built distribution (wheel)

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

Total release size: 63.8 kB

Release files / kimvv-0.1.2.tar.gz

Download URL kimvv-0.1.2.tar.gz
Size 31.4 kB
Tags Source
SHA-256 checksum
How to use checksums
01b1fe780319c9462211c1d8e58437c5f12f18ab6dddfd234922caa9ed61a422
BLAKE2b-256 checksum
How to use checksums
a9da8a2b53d9c04ac89f574152e5d30595ef115d8f566d60de8e92dae4e09263
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.8

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 25, 2025.

Transparency log

Release files / kimvv-0.1.2-py3-none-any.whl

Download URL kimvv-0.1.2-py3-none-any.whl
Size 32.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9761439a44da4b65a1265d035f006ef8337e86e6a384134e24024f0f1f90cfb2
BLAKE2b-256 checksum
How to use checksums
b274f973617459b63cd568cb850ad9b0f9fda929c9a6d8d5be477de20e0c44bf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.8

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 25, 2025.

Transparency log

Security for kimvv 0.1.2

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for kimvv-0.1.2.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 25, 2025.

Transparency log

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