Metadata-Version: 2.4
Name: pycbf
Version: 0.9.6.7
Summary: An API for CBF/imgCIF Crystallographic Binary Files
Author: Paul J. Ellis
Author-email: "Herbert J. Bernstein" <yaya@bernstein-plus-sons.com>
Maintainer-email: Nicholas Devenish <ndevenish@gmail.com>
License-Expression: LGPL-2.1-or-later
Project-URL: Homepate, http://www.bernstein-plus-sons.com/software/CBF/
Project-URL: Repository, https://github.com/dials/pycbf
Requires-Python: >=3.9
Description-Content-Type: text/markdown
License-File: LICENCE.txt
Requires-Dist: numpy>=1.26; python_version <= "3.12"
Requires-Dist: numpy>=2.1; python_version >= "3.13"
Dynamic: license-file

# `pycbf` - CBFlib for python

[![PyPI release](https://img.shields.io/pypi/v/pycbf.svg)](https://pypi.python.org/pypi/pycbf)
[![Supported Python versions](https://img.shields.io/pypi/pyversions/pycbf.svg)](https://pypi.org/project/pycbf)
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)]( https://github.com/ambv/black)

This repository builds the `pycbf` portion only of Paul J Ellis and Herbert J
Bernstein's [CBFlib], as a [manylinux] binary wheel installable through `pip
install pycbf`.

In order to do this, it has some limitations compared to the full build of CBFlib:

-   No HDF5 bindings
-   No (custom) libTiff bindings
-   No CBF regex capabilities
-   No header files included - this is not intended to be used as a linking
    target

In addition to the base 0.9.6, this has the following significant alterations:

| Version     | Changes                                                                                             |
| ----------- | --------------------------------------------------------------------------------------------------- |
| 0.9.6.0     | Regenerated SWIG bindings for Python 3 compatibility. Compiled with `SWIG_PYTHON_STRICT_BYTE_CHAR`. |
| 0.9.6.2     | Drop python 2.7. Accept both `bytes` and `str`. Add `read_buffer` method, and `libimg` bindings.    |
| 0.9.6.4     | Windows support, type annotations for `pycbf.Img`, and [dials-data] regression tests. |

For details, please see the [CHANGELOG](CHANGELOG.rst).

[cbflib]: https://github.com/yayahjb/cbflib
[manylinux]: https://www.python.org/dev/peps/pep-0571/
[`yayahjb/cbflib#19`]: https://github.com/yayahjb/cbflib/pull/19
[dials-data]: https://github.com/dials/data
