PyCIFRW provides support for reading and writing CIF (Crystallographic Information File) and STAR files in Python. Version 5.0.1 is the latest stable release, with a focus on bugfixes and dropping Python 2 support. The library is maintained with occasional releases.
pip install pycifrwNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Read a CIF file and print the top-level keys. Note: the input CIF must exist. For demo, we write a minimal CIF first.
Upgrade to Python 3, or pin to pycifrw==4.4.6 if stuck on Python 2.
Use `from CifFile import ReadCifWithError` and handle returned parse info.
Use `from CifFile import ReadCif` instead of `from pycifrw import ReadCif`.
Install with `pip install pycifrw` but import from 'CifFile' (e.g., `from CifFile import ReadCif`).
Ensure Python 3 interpreter is used (python3). If stuck on Python 2, install pycifrw==4.4.6.
Use `ReadCifWithError` to get partial results, or check the CIF syntax. Access data via `ast.first_loop()['_tag']` or convert to dict: `dict(ast.items())`.
No dependency data recorded yet.