Skip to main content

cifmi

Crates.io PyPI npm

cifmi reads CIF 1.1 and 2.0 files into crystal structures: the cell, the space group, the sites, the symmetry operations and every atom of the unit cell. It is written in Rust, with Python and Node.js bindings.

Quick start

Python

import cifmi

structure = cifmi.read_cif("sample.cif")
for atom in structure.atoms:
    print(structure.sites[atom.site].label, atom.fractional)

Rust

use cifmi::{read_cif, CifOptions};

fn main() -> Result<(), cifmi::Error> {
    let structure = read_cif("sample.cif", &CifOptions::default())?;
    for atom in &structure.atoms {
        println!("{} {:?}", structure.sites[atom.site].label, atom.position);
    }
    Ok(())
}

Node.js

const cifmi = require('cifmi')

cifmi.readCifFile('sample.cif').then((structure) => {
  for (const atom of structure.atoms) {
    console.log(structure.sites[atom.site].label, atom.fractional)
  }
})

Every file is read one way, by crystallographic rules, and a file cifmi cannot read is an error with the reason. See the design for the rules and the evidence behind them, and CONTRIBUTING.md for development and releases.

Metadata

Release files for cifmi 0.1.0

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

Source distribution (sdist)

Source distribution for cifmi 0.1.0
File Size Uploaded Provenance Actions
cifmi-0.1.0.tar.gz 105.2 kB With provenance Details for cifmi-0.1.0.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for cifmi 0.1.0
File Interpreter ABI Platform Actions
cifmi-0.1.0-cp310-abi3-win_amd64.whl CPython 3.10 abi3 Windows x86-64 Details for cifmi-0.1.0-cp310-abi3-win_amd64.whl
cifmi-0.1.0-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl CPython 3.10 abi3 Linux glibc 2.17+ x86-64 Details for cifmi-0.1.0-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
cifmi-0.1.0-cp310-abi3-macosx_11_0_arm64.whl CPython 3.10 abi3 macOS 11.0+ ARM64 Details for cifmi-0.1.0-cp310-abi3-macosx_11_0_arm64.whl

Total release size: 1.7 MB

Release files / cifmi-0.1.0.tar.gz

Download URL cifmi-0.1.0.tar.gz
Size 105.2 kB
Tags Source
SHA-256 checksum
How to use checksums
0d87941e2ba6e96d17a389a6b44d01da738464913cf811bbdfcc399638425a5d
BLAKE2b-256 checksum
How to use checksums
1968d3a306e39e2564acf490d5cf8935222d3a06c801244693144470c7c8ff67
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 3, 2026.

Transparency log

Release files / cifmi-0.1.0-cp310-abi3-win_amd64.whl

Download URL cifmi-0.1.0-cp310-abi3-win_amd64.whl
Size 320.5 kB
Tags CPython 3.10 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
582a78464c57dce08b21393e6c12564b1e39697ac969c690fdbc2473a7fa08ba
BLAKE2b-256 checksum
How to use checksums
a82f5931498235699d9c4dcf5b751d39298e10f56aaa0b3ff36653c3878e3599
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 3, 2026.

Transparency log

Release files / cifmi-0.1.0-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl

Download URL cifmi-0.1.0-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Size 846.2 kB
Tags CPython 3.10 Linux glibc 2.17+ x86-64 abi3
SHA-256 checksum
How to use checksums
566dfa1cda214a8db4beef584cf3441b0f7b4e48ab81397f513a6bfdbbf77b0b
BLAKE2b-256 checksum
How to use checksums
08d36e58efedc2209f6210a13ad85da1c61e412e8ce3c043184ce8eba4d11024
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 3, 2026.

Transparency log

Release files / cifmi-0.1.0-cp310-abi3-macosx_11_0_arm64.whl

Download URL cifmi-0.1.0-cp310-abi3-macosx_11_0_arm64.whl
Size 405.5 kB
Tags CPython 3.10 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
5e91e80cf07262aa8748be0ad249da6191b54d7de88292f41aad7ee4471cc2f5
BLAKE2b-256 checksum
How to use checksums
36bece5f63e8a75c1031b8ba39d5d7bab65e29ffa66d66014f18cdc08f4a43d3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 3, 2026.

Transparency log

Security for cifmi 0.1.0

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

All 4 files in this release have been uploaded with provenance metadata.

Select from 4 files

Attestation for cifmi-0.1.0.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 Nov 3, 2026.

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