--- id: mmcif version: "1.1.1" license: Apache-2.0 license_treatment: permissive maintenance: active --- # mmcif — mmCIF Core Access Library License: permissive · Maintenance: active · Downloads: 1.5M/mo ## What it is and what it does mmcif is a Python library that wraps the PDB C++ Core mmCIF Library with pybind11, offering both native Python APIs and compiled bindings for reading and manipulating mmCIF data files and dictionaries. It is used primarily in structural biology and crystallography workflows to access macromolecular structure data in the standardized mmCIF format. The package includes a command-line tool, `build_dict_cli`, that preprocesses and combines modular mmCIF dictionaries by resolving include directives. It depends on requests and msgpack for runtime operations. The library supports Python 3.8 through 3.14 and is actively maintained with no known security vulnerabilities. Use it for: - Parse and read PDB structure files in mmCIF format for structural biology analysis and visualization. - Combine multiple mmCIF dictionary extensions into a single comprehensive dictionary using the build_dict_cli tool. - Access and query macromolecular structure metadata and atom coordinate data programmatically. - Integrate mmCIF data handling into bioinformatics pipelines and structural analysis workflows. - Retrieve and validate dictionary versions for data format compliance and compatibility checking. ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. Provides native Python and C++ bindings to parse, read, and manipulate mmCIF (macromolecular Crystallographic Information File) data structures and dictionaries. Yes, if you work with crystallographic or structural biology data in mmCIF format. The package is stable (Production/Stable status), actively maintained, has no known vulnerabilities, and offers both Python and C++ APIs. Medium install friction due to compiled bindings is offset by pre-built wheels for common platforms. The Apache-2.0 license is permissive and suitable for most projects. ## Install pip install mmcif uv add mmcif poetry add mmcif ## Installing mmcif Before you install: Medium install friction due to compiled C++ bindings, but wheels are available for Python 3.8–3.14 on macOS and Linux. Repository is actively maintained with a recent release and no known vulnerabilities. License in practice: Apache-2.0 permissive license allows free use, modification, and distribution in both open-source and commercial projects with minimal restrictions. Quickstart: pip install mmcif import mmcif.api reader = mmcif.api.PdbxReader() reader.read('structure.cif') Requires a compiled C++ library; pre-built wheels are available for common platforms and Python versions, but building from source requires GCC/G++ > 4.8.5 or clang-900.0.39.2 or later. Verify before relying: - Whether the package provides high-level APIs for common tasks (e.g., querying atom coordinates, extracting metadata) beyond low-level file parsing. - Performance characteristics when working with large mmCIF files or dictionaries. - Whether the C++ bindings are thread-safe or have concurrency limitations. ## Package facts - License: Apache-2.0 (permissive) - Python support: supports_current - Install friction: medium - Maintenance: active - Downloads: 1.5M/month (top 5,000 on PyPI) - Known vulnerabilities: none known ## Tags mmcif parser python, crystallographic data format, pdb file parsing, macromolecular structure data, mmcif dictionary access, structural biology data, pdbx format reader, structural-biology, crystallography, data-parsing [View on SkillFed](https://skillfed.io/packages/mmcif) · [View on PyPI](https://pypi.org/project/mmcif/)