Skip to main content

Python wrapper for the H5CPP and PNI libraries

Project description

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 setup.py install

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 setup.py install --prefix=<path to installation prefix>

To build the documentation use

$ python setup.py build_sphinx

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 setup.py test

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

Debian and Ubuntu packages

Debian bookworm, bullseye, buster or Ubuntu lunar, jammy, focal 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 bullseye

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

or jammy

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

respectively.

Finally,

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

or

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

for python3.

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pninexus-3.2.2.tar.gz (183.2 kB view hashes)

Uploaded Source

Built Distributions

pninexus-3.2.2-cp311-cp311-manylinux_2_35_x86_64.whl (34.8 MB view hashes)

Uploaded CPython 3.11 manylinux: glibc 2.35+ x86-64

pninexus-3.2.2-cp310-cp310-manylinux_2_34_x86_64.whl (33.8 MB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.34+ x86-64

pninexus-3.2.2-cp39-cp39-manylinux_2_31_x86_64.whl (27.3 MB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.31+ x86-64

pninexus-3.2.2-cp38-cp38-manylinux_2_31_x86_64.whl (29.5 MB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.31+ x86-64

pninexus-3.2.2-cp37-cp37m-manylinux_2_27_x86_64.whl (28.9 MB view hashes)

Uploaded CPython 3.7m manylinux: glibc 2.27+ x86-64

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page