{"library":"pycifrw","title":"PyCIFRW","description":"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.","language":"python","status":"active","last_verified":"Sat May 09","install":{"commands":["pip install pycifrw"],"cli":null},"imports":["from CifFile import ReadCif","from CifFile import CifFile","from StarFile import StarFile"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"from CifFile import ReadCif\n# Replace with an actual CIF file path or content\ncif_content = \"\"\"data_test\n_audit_creation_method 'manually created'\n\"\"\"\nwith open('test.cif', 'w') as f:\n    f.write(cif_content)\nast = ReadCif('test.cif')\nprint(ast.keys())\n# Clean up\nimport os\nos.remove('test.cif')","lang":"python","description":"Read a CIF file and print the top-level keys. Note: the input CIF must exist. For demo, we write a minimal CIF first.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}