--- id: pycifrw version: "5.0.1" license: Python 2.0 license_treatment: permissive maintenance: aging --- # PyCifRW — CIF/STAR file support for Python License: permissive · Maintenance: aging · Downloads: 74.5K/mo ## What it is and what it does PyCIFRW is a parser and writer for CIF (Crystallographic Information Format) and STAR files, used primarily in crystallography and structural biology to exchange and manipulate scientific data. It exposes CIF files as nested Python dictionaries, where each top-level key is a data block and nested keys are data names, making it natural to read, modify, and write crystallographic metadata programmatically. The package depends on prettytable, ply, and numpy, and is written entirely in Python with an optional C extension included. It has been tested against IUCr sample CIF 1.1 files and conforms to CIF 1.0, 1.1, and 2.0 specifications. It runs on macOS, Windows, and Linux, with prebuilt wheels available for Python 3.10–3.13. Use it for: - Parse crystallographic data files from synchrotron beamlines or X-ray diffraction experiments to extract metadata. - Validate CIF files against data dictionaries using included utilities. - Programmatically modify and write back CIF files in data processing pipelines. - Convert CIF data dictionaries to documentation formats like asciidoc. - Integrate crystallographic data handling into larger scientific Python applications. ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. PyCIFRW reads and writes CIF (Crystallographic Information Format) files, exposing them as nested Python dictionaries for programmatic access to crystallographic data. Yes, if you work with CIF files in crystallography or structural biology. The package is stable, permissively licensed, and has no known vulnerabilities. Install friction is moderate due to compiled wheels, but prebuilt binaries are available for recent Python versions. Maintenance is aging (last release 508 days ago), so consider it mature rather than actively developed—suitable for production use but not for projects requiring frequent updates. ## Install pip install pycifrw uv add pycifrw poetry add pycifrw ## Installing PyCifRW Before you install: Medium install friction due to compiled wheels across multiple Python versions (3.10–3.13) and platforms, but prebuilt binaries are available. Maintenance status is aging—last release was 508 days ago, though the repository remains active and the package has been stable since its 2009 inception. License in practice: Licensed under Python 2.0 (permissive), a BSD-like license that permits modification and redistribution with minimal restrictions, provided copyright notice and a summary of changes are retained in derivative works. Quickstart: pip install pycifrw import CifFile cf = CifFile.ReadCif('example.cif') wavelength = cf['si_std']['_diffrn_meas_wavelength'] Verify before relying: - Whether Python version support is truly unspecified or if there is a practical minimum version requirement. - Current test coverage and whether the 180 tests in TestPyCIFRW.py are regularly executed. - Whether the C extension module mentioned in the distribution is required or optional for performance. ## Package facts - License: Python 2.0 (permissive) - Python support: unspecified - Install friction: medium - Maintenance: aging - Downloads: 74.5K/month (top 15,000 on PyPI) - Known vulnerabilities: none known ## Tags CIF file parser, crystallographic data format, CIF reader writer, STAR file support, crystallography data handling, scientific data format python, CIF 2.0 parser, crystallography, scientific-data, file-format [View on SkillFed](https://skillfed.io/packages/pycifrw) · [View on PyPI](https://pypi.org/project/pycifrw/)