Skip to main content

Read RKF

Overview

read_rkf is a Python script designed to extract and parse essential data from ams.rkf files, which store critical results from AMS output files. These files typically contain:

  • Trajectories
  • Gradients
  • Hessians
  • Energies
  • Band gaps and structures
  • And more...

Installation

Ensure that you have Python ^3.9 installed and run the following command:

pip install read_rkf

Usage

1. Convert an RKF file to a JSON object

from read_rkf.creat_archive import rkf_to_json

json_data = rkf_to_json("path/to/your.rkf")

2. Convert an RKF file to a Python dictionary

from read_rkf.creat_archive import rkf_to_dict

python_dict = rkf_to_dict("path/to/your.rkf")

3. Check available sections in an RKF file

from read_rkf.parserkf import KFFile

data = KFFile("path/to/your.rkf")
all_sections = data.sections()

4. Read the content of a specific section

# Example: Reading the first section
section_content = data.read_section(all_sections[0])

License

This project is licensed under the MIT License.

Metadata

Release files for read-rkf 0.1.1

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

Source distribution (sdist)

Source distribution for read-rkf 0.1.1
File Size Uploaded
read_rkf-0.1.1.tar.gz 9.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for read-rkf 0.1.1
File Interpreter ABI Platform
read_rkf-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 18.8 kB

Release files / read_rkf-0.1.1.tar.gz

Download URL read_rkf-0.1.1.tar.gz
Size 9.2 kB
Tags Source
SHA-256 checksum
How to use checksums
870dbe325aba8668ada0375d2e833644a68b0e9c417f99f09c9c79ab2f3f22ae
BLAKE2b-256 checksum
How to use checksums
bff6dfdc855df1dd9fd9514e8c36a60dcf3b81a8d5b3db55872babd4cf9ca214
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.5.1 CPython/3.9.9 Darwin/22.1.0

Release files / read_rkf-0.1.1-py3-none-any.whl

Download URL read_rkf-0.1.1-py3-none-any.whl
Size 9.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
27e9cba2df6b8c6ccdd57c705f619b08a6e0e3d23e41590eec84837759527295
BLAKE2b-256 checksum
How to use checksums
5a6da0dd66b4336f4c66775dd8e41c7497f4775cd4a6484368738251dc6ff1e3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.5.1 CPython/3.9.9 Darwin/22.1.0

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

0.1.0

2 release files

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