Skip to main content
Files added late

2 files were added to this release more than 14 days after its initial publication. Inspect the release files before installing.

PyCIFRW Readme
--------------

Introduction
------------

PyCIFRW provides support for reading and writing CIF (Crystallographic
Information Format) files using Python. It was developed at the
Australian National Beamline Facility (ANBF), run by the Australian
Synchrotron Research Program (ASRP), as part of a larger project to
provide CIF input/output capabilities for data collection. It is
now (Jan 2015) maintained and developed within the Australian Nuclear Science and
Technology Organisation (ANSTO).

Conformance
-----------

The CIF 1.1 and 2.0 working specifications were used as a reference,

PyCifRW has been tested on the IUCr sample CIF trip files located at
http://www.iucr.org/iucr-top/cif/developers/trip and fails or
successfully reads as it is supposed to (note that ciftest5 contains
characters now forbidden in CIFs).

Supported Platforms
-------------------

PyCIFRW is written entirely in Python. While this makes parsing of large
CIF files rather slow, it should run wherever Python runs. The latest version
has been tested on Linux and Windows 7.

The source code of a C extension module is also included in the distribution.
This module accelerates CIF file reading. From time to time
system-dependent installation packages are generated containing precompiled
versions of this module.

Files
-----

The following are some of the key files included in PyCIFRW:

Original files:

CifFile.py Defines the CifFile module for Python
CifFile.nw Noweb file from which CifFile.py is obtained
CifFile.html Programming notes for CifFile derived also from
CifFile.nw
StarFile.py Defines the StarFile module on which CifFiles are built
StarFile.nw Noweb file from which StarFile.py is obtained
StarFile.html Programming notes for StarFile.py also derived from StarFile.nw
YappsStarParser_n_n.py Cif parser for version n_n automatically generated by Yapps2
YappsStarParser.html Programming notes for the grammar
YappsStarParser.nw Literate format grammar with notes from which grammars are
generated.
Makefile How to derive .html, .py and .g files from .nw files
StarScan.so Compiled Python extension module for Linux

drel/ Routines for processing dREL methods
Files derived from other programs:

yapps3_compiled_rt.py Yapps3 runtime support (modified part of the
Yapps3 distribution)

Installation
------------

See file INSTALLATION

Use
---

See the various files in the docs directory for details of the interface.
Essentially, CIF files look like python dictionaries, with each
entry in the dictionary corresponding to a data block. The blocks
themselves are also dictionaries, with each data name being a
single entry in the dictionary, so for example,
cf['si_std']['_diffrn_meas_wavelength'] will return the value of
_diffrn_meas_wavelength in the data block named si_std of the Cif file object
cf.


Example
-------

To read in a CIF:
>> from CifFile import CifFile
>> cf = CifFile.ReadCif('jun_01_2.cif')

to access information in a CIF

>> wav = cf['si_std']['_diffrn_meas_wavelength']

to set a value

>> cf['si_std']['_diffrn_meas_wavelength'] = 1.54


Extra programs
--------------

The "Programs" directory contains program "validate_cif.py" which
validates a data files against data dictionaries. Execute this file
without arguments for a help message.

Release files for PyCifRW 4.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Files added late

2 files were uploaded more than 14 days after the first file in this release.

While project maintainers occasionally add legitimate files to an existing release, late additions can also indicate a security compromise.

We recommend inspecting the release files before installing.

Source distributions (sdists)

Source distribution for PyCifRW 4.1
File Size Uploaded
PyCifRW-4.1.tar.gz 421.0 kB Details
PyCifRW-4.1.1.tar.gz 446.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for PyCifRW 4.1
File Interpreter ABI Platform
PyCifRW-4.1.1.linux-i686.tar.gz Details

Total release size: 1.1 MB

Release files / PyCifRW-4.1.tar.gz

Download URL PyCifRW-4.1.tar.gz
Size 421.0 kB
Tags Source
SHA-256 checksum
How to use checksums
3ca515d826fa9565240e24c399e9b5c5461d11499245dada633d7079807f1daa
BLAKE2b-256 checksum
How to use checksums
4390a9deba31d7c7204b705fc134afcfe669aa3319601dc2cfb083c8cd4eb7e0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / PyCifRW-4.1.1.tar.gz

File added late

This file was uploaded more than 14 days after the first file in this release.

While project maintainers occasionally add legitimate files to an existing release, late additions can also indicate a security compromise.

We recommend inspecting the release file before installing.

Download URL PyCifRW-4.1.1.tar.gz
Size 446.3 kB
Tags Source
SHA-256 checksum
How to use checksums
00192f708a4840695caccabdff65f558d2842d2da6d7ff0e538417aa0aaedbae
BLAKE2b-256 checksum
How to use checksums
f995dd59d9c62c76f90110913d28910c81c563fb6db1e2c9fc668eac43c96a75
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / PyCifRW-4.1.1.linux-i686.tar.gz

File added late

This file was uploaded more than 14 days after the first file in this release.

While project maintainers occasionally add legitimate files to an existing release, late additions can also indicate a security compromise.

We recommend inspecting the release file before installing.

Download URL PyCifRW-4.1.1.linux-i686.tar.gz
Size 249.7 kB
Tags Source
SHA-256 checksum
How to use checksums
b59ddc13d5654bc309f747d8892e36a093a17fe9f1efb337fd1daba43226feaf
BLAKE2b-256 checksum
How to use checksums
5578de43f00b0a64bc324becea4d63eef2ffb45b555f8abc36551bb365df0127
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

5.0.1

21 release files

5.0.0

21 release files

4.4.6

2 release files

4.4.5

4 release files

4.4.4

1 release file

4.4.3

1 release file

4.4.2

2 release files

4.4.1

5 release files

4.4

3 release files

4.3

3 release files

4.2.1

5 release files

4.2

2 release files

This release

4.1 This release

3 release files

3.6.2

2 release files

3.6.1

1 release file

3.5

3.3

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page