This release is a pre-release and may not be stable for production use.
Introduction
This package provides a Python API to inspect and validate NeXus files written in the HDF5 format.
The latest development version is always available from NeXpy's GitHub repository.
Installation
Released versions of nxvalidate can be installed using
% pip install nxvalidate
The source code can be downloaded from the NeXpy Git repository:
% git clone http://github.com/nexpy/nxvalidate.git
Prerequisites
The only prerequisite required to install the nxvalidate package is
the nexusformat package. There
are more details of further dependencies in the NeXpy
documentation.
Usage
At the moment, the nxvalidate package provides a single command-line script.
% nxinspect -h
usage: nxinspect [-h] [-f FILENAME] [-p PATH] [-a [APPLICATION]]
[-b BASECLASS] [-i] [-w] [-e] [-v]
Inspects and validates NeXus files.
options:
-h, --help show this help message and exit
-f FILENAME, --filename FILENAME
name of the NeXus file to be validated
-p PATH, --path PATH path to group to be validated in the NeXus file
-b BASECLASS, --baseclass BASECLASS
name of the base class to be listed
-a [APPLICATION], --application [APPLICATION]
validate the NeXus file against its application definition
-d DEFINITIONS, --definitions DEFINITIONS
path to the directory containing NeXus definitions
-i, --info output info messages in addition to warnings and errors
-w, --warning output info messages in addition to warnings and errors
-e, --error output info messages in addition to warnings and errors
-v, --version show program's version number and exit
N.B., the command is
nxinspect, rather thannxvalidateto avoid confusion with the C-library.
Examples
- To compare the contents of a NeXus file with the base classes defined
by the NeXus standard and print conflicting fields or groups, type:
The% nxinspect -f <filename.nxs> -e--info,--warningand--errorswitches control how much information is output. The default is--warning. - To compare the contents of a NeXus file with the base classes defined
in a different directory to the installed package, type:
The directory should contain two sub-directories,% nxinspect -f <filename.nxs> -d /path/to/definitionsapplicationsandbase_classescontaining the NXDL files needed to validate the specified NeXus file. - To check whether the contents of the NeXus file conform to the
required contents of the application definition specified in the
file, type:
% nxinspect -f <filename.nxs> -a - To check whether the contents of the NeXus file conform to the
required contents of an application definition file, type:
% nxinspect -f <filename.nxs> -a <application.nxdl.xml> - To print the contents of a base class, type:
% nxinspect -b <base-class-name>
User Support
Information about the Python API for reading and writing NeXus files is available as part of the NeXpy documentation. If you have any general questions concerning the use of this package, please address them to the NeXus Mailing List. If you discover any bugs, please submit a Github issue, preferably with relevant tracebacks.
Acknowledgements
This package was developed jointly by Kaitlyn Marlor, Justin Wozniak, and Ray Osborn. The NeXus data format standard has been developed under the supervision of the NeXus International Advisory Committee.
Metadata
Release files for nxvalidate 0.3.5b3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| nxvalidate-0.3.5b3.tar.gz | 603.3 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| nxvalidate-0.3.5b3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 1.4 MB
Release files / nxvalidate-0.3.5b3.tar.gz
| Download URL | nxvalidate-0.3.5b3.tar.gz |
|---|---|
| Size | 603.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9f061862997e048a5a90bdbbd86902c72aca435e8be3789c44cb7b2433aa5157
|
|
BLAKE2b-256 checksum How to use checksums |
3ce96eac1db978baff077361b77d08e886401afbb65f5517e21d87ed672cc7a0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.0 CPython/3.9.19
|
Release files / nxvalidate-0.3.5b3-py3-none-any.whl
| Download URL | nxvalidate-0.3.5b3-py3-none-any.whl |
|---|---|
| Size | 835.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ec275d7096668494b49f716b8d57af355298fad6f80a974f48e73bd87db03998
|
|
BLAKE2b-256 checksum How to use checksums |
e0b266c1f81283075a032c08deb120c601c3f19233ce938688610c89e7500ad2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.0 CPython/3.9.19
|
Security for nxvalidate 0.3.5b3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.