PyCifRW
CIF/STAR file support for Python
Decision gist · record as of 2026-08-14
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.AI-flagged interpretation of the facts on this page — verify before relying
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 · maintenance · safety
Python 2.0 (permissive) — 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.
last release 2025-03-24 (508 days) · last repo commit 2025-10-26 · 40 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 74,482 downloads/mo, #14,826 on PyPI
Alternatives
Verify before relying
pip install pycifrw
import CifFile
cf = CifFile.ReadCif('example.cif')
wavelength = cf['si_std']['_diffrn_meas_wavelength']- 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.
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 on this page. Verify before relying on it.
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
pycifrw on PyPI
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 | Not specified |
| Install friction | Medium. Platform-specific wheel |
| Runtime dependencies | 3 packagesprettytableplynumpy |
| Maintenance | Aging 508 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 74,482 / month, #14,826 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableEnvironment :: ConsoleIntended Audience :: DevelopersIntended Audience :: Science/ResearchLicense :: OSI Approved :: Python Software Foundation LicenseOperating System :: OS IndependentProgramming Language :: Python :: 2Programming Language :: Python :: 3Topic :: Scientific/Engineering :: Bio-InformaticsTopic :: Software Development :: Libraries :: Python Modules |
Evidence: pycifrw-5.0.1-cp310-cp310-macosx_10_9_x86_64.whl; pycifrw-5.0.1-cp310-cp310-macosx_11_0_arm64.whl; pycifrw-5.0.1-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl; pycifrw-5.0.1-cp310-cp310-win32.whl; pycifrw-5.0.1-cp310-cp310-win_amd64.whl; pycifrw-5.0.1-cp311-cp311-macosx_10_9_x86_64.whl; pycifrw-5.0.1-cp311-cp311-macosx_11_0_arm64.whl; pycifrw-5.0.1-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl; pycifrw-5.0.1-cp311-cp311-win32.whl; pycifrw-5.0.1-cp311-cp311-win_amd64.whl; pycifrw-5.0.1-cp312-cp312-macosx_10_13_x86_64.whl; pycifrw-5.0.1-cp312-cp312-macosx_11_0_arm64.whl; pycifrw-5.0.1-cp312-cp312-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl; pycifrw-5.0.1-cp312-cp312-win32.whl; pycifrw-5.0.1-cp312-cp312-win_amd64.whl; pycifrw-5.0.1-cp313-cp313-macosx_10_13_x86_64.whl; pycifrw-5.0.1-cp313-cp313-macosx_11_0_arm64.whl; pycifrw-5.0.1-cp313-cp313-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl; pycifrw-5.0.1-cp313-cp313-win32.whl; pycifrw-5.0.1-cp313-cp313-win_amd64.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “CIF file parser”
- PyCifRWPyCIFRW reads and writes CIF (Crystallographic Information Format)…
- pymatgenPymatgen provides Python classes and analysis tools for materials…
- pymatgen-corepymatgen-core provides core data structures and I/O for materials…
Give your agent the search over MCP, or paste the wish link into any chat.
More Python Modules packages
Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.
Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.
Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.
PyYAML parses and emits YAML 1.1 data format, enabling serialization and deserialization of configuration files and Python objects to and from human-readable YAML text.
Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.
Provides reusable metadata objects for use with PEP-593 `typing.Annotated` to express common constraints like bounds, collection sizes, and predicates on types.
Install it if you use or build libraries that need to express type constraints in a standardized, inspectable way—or if you want to annotate your own types with…
Provides runtime tools to inspect and introspect Python type annotations, enabling programmatic examination of type hints at execution time.
See also gemmi · pynwb · spglib · pymatgen · none · pymatgen-core · pyliblzfse · moyopy · mrcfile · silx