Pycifrw

Latest version: v5.0.1

Safety actively analyzes 723217 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

5.0

**This version has dropped all support for Python 2**

Please see [PyPI](https://pypi.org/p/pycifrw) to download the files in this release.

4.4.6

=============

* New function `ReadCifWithError` may be used instead of `ReadCif`. It will not raise an Exception on a parse error, instead returning the partially populated CIF object and parse information.

* Similar to the above, when the `CifFile` constructor is called with new option 'allow_partial = True', parsing information is available by calling the `get_parsing_result` method on the returned CifFile object instead of raising an exception (thanks to Inigo Gabirondo
for work on these two items).

* Dictionary merging and validation has been improved (Inigo Gabirondo)

* A helpful `convert_to_canonical` method is provided for CifFile objects. When called with a dictionary, data names are converted to canonical form (Inigo Gabirondo).

* Previously deprecated methods and classes are now gone: `AddCifItem`, `AddToLoop`, and `ValidCifFile`

Developer-visible changes
======================

From version 5.0.0 noweb files (*.nw) for source have been removed. It was too much of a barrier for Windows-based developers to contribute. The .py files are now the canonical source, with the original literate programming sections converted to python comments.

New Contributors
* igabirondo16 has improved validation and much else (see history)
* merkys made their first contribution in https://github.com/jamesrhester/pycifrw/pull/6
* CPrescher made their first contribution in https://github.com/jamesrhester/pycifrw/pull/10
* MarDiehl made their first contribution in https://github.com/jamesrhester/pycifrw/pull/11

**Full Changelog**: https://github.com/jamesrhester/pycifrw/compare/4.4.6...5.0

Links

Releases

Has known vulnerabilities

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.