MZQC python library
A python library to create and use mzQC files. Specifically, the library facilitates access to mzQC files in form of a directly usable object representation of mzQC and offers additional functionality to:
- serialise
- deserialise
- check syntax
- check semantics
- file-info
- experimental file-merging
The library follows the formats versioning (which is 'v(Major).(Minor).(Patch)').
This library implements python modules for (de-)serialisation and validity checks of the PSI fileformat mzQC. Find the specification document, examples, and and further documentation there.
Install
Latest Release
Most people will want to install the latest release version of pymzqc. Please install pymzqc via pypi:
pip install pymzqc
The base install contains the library, the offline validator CLI (mzqc-validator)
and the file-handling CLIs (mzqc-fileinfo, mzqc-filemerger, mzqc-fixdescriptions).
Optional feature sets are installed as extras:
| Extra | Adds |
|---|---|
pymzqc[onlinevalidator] |
the validator web API and the browser mzQC viewer (mzqc-onlinevalidator; Flask, gunicorn) |
pymzqc[dev] |
the above plus test (pytest, Playwright), build and documentation (Sphinx) tools |
For example pip install "pymzqc[onlinevalidator]" (quote the argument in shells such as zsh).
Console scripts are always installed; a script whose extra is missing exits with the pip install command that adds it.
Viewing mzQC files in the browser
The mzQC viewer opens mzQC files in the browser, with highlighted, collapsible source and a rendered report with tables and plots.
It is a static page that needs no installation and can be hosted e.g. on GitHub Pages; mzqc-onlinevalidator also serves it at /viewer/.
From Git
If you want a development version, use for example :
pip install -U git+https://github.com/MS-Quality-hub/pymzqc.git
You can select a development branch of your choice by adding @ and a valid tag or branch name to the command after the pymzqc.git; make sure to name the egg 'pymzqc' (e.g. @v1.0.0#egg=pymzqc)
For more installation options see the manual build instructions.
Containers
However, we recommend using the ready-built containers to check out the latest updates.
Online docs
To get a nice and simple overview of how pymzqc works, visit here. If you've successfully installed the library and want to jump right in and work on the library, we suggest a peek at the codestructure.
If you however just want to get your toes wet, or use it as-is, have a look at the interactive guides (below).
Interactive pymzqc
Have a go with our interactive python notebooks to explore what is possible.
Development
Contributions are welcome! (Just fork, develop, and open PR.)
Please note that most member attributes of the MZQCFile submodule classes and many functional elements do not conform to PEP-8 snake_case. The element names of the mzQC JSON-schema need to be preserved in order to create a successful and automated JSON<=>pymzqc object mapping. Accordingly, other elements such as functions in all pymzqc modules will keep the JSON-schema names in their naming for consistency.
Repository structure
The python package's code is located in the mzqc folder, continuous testing code in tests, the documentation in doc. The libray-use container descriptions are in containers, if you want a container for library-development, you can use the container description within .devcontainer, more development presets can be found in .vscode.
The jupyter and mzqcaccessories folders are subprojects making use of the library (mzqcaccessories/viewer is the browser viewer, plain HTML/JavaScript).
See their README in the respective sub-folders.
Documentation
The code documentation style convention is of the type Sphinx/numpy.
Metadata
Release files for pymzqc 1.1.0
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 | Actions |
|---|---|---|---|---|
| pymzqc-1.1.0.tar.gz | 97.1 kB | With provenance | Details for pymzqc-1.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pymzqc-1.1.0-py3-none-any.whl | Python 3 | none | any | Details for pymzqc-1.1.0-py3-none-any.whl |
Total release size: 157.0 kB
Release files / pymzqc-1.1.0.tar.gz
| Download URL | pymzqc-1.1.0.tar.gz |
|---|---|
| Size | 97.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fdaec9afe2f8e84de74ba47d8d1be9468c8fb797e7df29922925b509d17c64bc
|
|
BLAKE2b-256 checksum How to use checksums |
2c604d22967db5fd42849855e57111b0e662a30fc3af5708968ae0c0374e3e2b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 30, 2026.
Transparency logRelease files / pymzqc-1.1.0-py3-none-any.whl
| Download URL | pymzqc-1.1.0-py3-none-any.whl |
|---|---|
| Size | 59.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e30ad775fad650b7397a1298fb618e35ff474f677fc30dab25ff67d26a837332
|
|
BLAKE2b-256 checksum How to use checksums |
f84fe269982648182b3695db735ca0eef0510a9636edbca47ae3fa63b3253769
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 30, 2026.
Transparency logSecurity for pymzqc 1.1.0
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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for pymzqc-1.1.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 30, 2026.
Transparency logA 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.
To learn more about protecting yourself from malicious actors, visit our package security documentation.