Skip to main content

Python bindings for PNI/NeXus and h5cpp

Python wrapper for the h5cpp and libpninexus C++ libraries. The wrapper supports Python 2.X and 3.X.

Installation

Required packages

  • h5cpp >= 0.5.0

  • libpninexus >= 3.2.0

  • python setuptools

  • numpy

  • c++ compiler

  • boost-python library

  • python sphinx to build the documentation

Install from sources

The code can be built with

$ python  -m pip install . -vv --no-deps --no-build-isolation

For those who are still running on the old interface it is maybe whise to install this package in a custom location with something like this

$ python -m pip install . -vv --no-deps --no-build-isolation --prefix=<path to installation prefix>

To build the documentation use

$ sphinx-build doc/sphinx build/sphinx/html

The resulting documentation can be found below build/sphinx/html in the root directory of the source distribution.

Finally, the package can be tested using

$ python -m pytest test

For Python3 just replace python with python3 in the above instructions.

Debian and Ubuntu packages

Debian trixie, bookworm, bullseye or Ubuntu resolute, noble, jammy packages can be found in the HDRI repository.

To install the debian packages, add the PGP repository key

$ sudo su
$ curl -s http://repos.pni-hdri.de/debian_repo.pub.gpg  | gpg --no-default-keyring --keyring gnupg-ring:/etc/apt/trusted.gpg.d/debian-hdri-repo.gpg --import
$ chmod 644 /etc/apt/trusted.gpg.d/debian-hdri-repo.gpg

and then download the corresponding source list, e.g. for trixie

$ cd /etc/apt/sources.list.d
$ wget http://repos.pni-hdri.de/trixie-pni-hdri.sources

or noble

$ cd /etc/apt/sources.list.d
$ wget http://repos.pni-hdri.de/noble-pni-hdri.list

respectively.

Finally,

$ apt-get update
$ apt-get install python3-pninexus

or

$ apt-get update
$ apt-get install python-pninexus

for python2.

Manylinux wheels from PyPI

To install pninexus in a conda or python virtual environment manylinux pip wheels can be used, e.g.

$ python3 -m venv myvenv
$ . myvenv/bin/activate

$ pip install pip --upgrade
$ pip install numpy

$ pip install pninexus -U wheel

For some versions of wheels numpy needs to be installed in advance.

Starting from v3.2.2 the pninexus wheel contains the most important external filters. In order to use them one needs to set HDF5_PLUGIN_PATH e.g. by

import pninexus

More information can be found at online documentation.

Changes for a specific version of libpninexus can be found at CHANGELOG.

Metadata

Release files for pninexus 3.6.1

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

Source distribution (sdist)

Source distribution for pninexus 3.6.1
File Size Uploaded
pninexus-3.6.1.tar.gz 186.4 kB Details

Built distributions (wheels)

Table of built distributions (wheels) for pninexus 3.6.1
File Interpreter ABI Platform
pninexus-3.6.1-cp313-cp313-manylinux_2_39_x86_64.whl CPython 3.13 CPython 3.13 Linux glibc 2.39+ x86-64 Details
pninexus-3.6.1-cp311-cp311-manylinux_2_35_x86_64.manylinux_2_36_x86_64.whl CPython 3.11 CPython 3.11 Linux glibc 2.36+ x86-64, Linux glibc 2.35+ x86-64 Details

Total release size: 56.9 MB

Release files / pninexus-3.6.1.tar.gz

Download URL pninexus-3.6.1.tar.gz
Size 186.4 kB
Tags Source
SHA-256 checksum
How to use checksums
fce02145ce93d56f7ee15f4c2a7af6a14d916e61471fc5832e88a7c0f5e3fd19
BLAKE2b-256 checksum
How to use checksums
958ed786789889f0ca968d093c39c67c3e8e3f49cd25ebc30d362c4bc0b013cd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.2

Release files / pninexus-3.6.1-cp313-cp313-manylinux_2_39_x86_64.whl

Download URL pninexus-3.6.1-cp313-cp313-manylinux_2_39_x86_64.whl
Size 21.8 MB
Tags CPython 3.13 Linux glibc 2.39+ x86-64
SHA-256 checksum
How to use checksums
434d491ae2bd089f76e46e72da98506ed9873e7d5393a76617e089dfb8bbbb21
BLAKE2b-256 checksum
How to use checksums
ab1743e823483f444a455b4d21f21dbca460bfa3472b366b0fd0b8d1a624b22b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.5

Release files / pninexus-3.6.1-cp311-cp311-manylinux_2_35_x86_64.manylinux_2_36_x86_64.whl

Download URL pninexus-3.6.1-cp311-cp311-manylinux_2_35_x86_64.manylinux_2_36_x86_64.whl
Size 34.9 MB
Tags CPython 3.11 Linux glibc 2.35+ x86-64 Linux glibc 2.36+ x86-64
SHA-256 checksum
How to use checksums
423916d0012121b9bbf2c25630645fb4fa05456774d991db2b336f3a0e9697e0
BLAKE2b-256 checksum
How to use checksums
6820b3a48e53ab3b2acb3bf3197bf0898fef70d4b6502b49531bcb037bba5a35
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.2

Release history Release notifications | RSS feed

This release

3.6.1 This release

3 release files

3.6.0

6 release files

3.5.0

6 release files

3.4.0

7 release files

3.3.0

4 release files

3.2.3

1 release file

3.2.2

6 release files

3.2.1

6 release files

3.2.0

8 release files

3.0.3

1 release file

3.0.2

1 release file

2.0.0

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