Skip to main content

Python library for reading/writing various NIR, MIR, XRF spectroscopy data formats.

Supported formats:

  • ADAMS spectra (.spec, .spec.gz)

  • ARFF (row-wise)

  • ASC

  • ASCII XY

  • CAL (FOSS)

  • CSV (row-wise)

  • DPT

  • MPS (XRF)

  • NIR (FOSS)

  • OPUS (Bruker)

  • OPUS ext (Bruker)

  • SPA (Thermo Scientific)

Changelog

0.0.6 (2026-09-09)

  • The FOSS InstrumentType enum no longer raises an exception if an unknown instrument type is encountered, instead it now logs a warning and uses the catch-all UNKNOWN

0.0.5 (2025-07-10)

  • The writers for ARFF, ASC, ASCIIXY, CSV and DPT now handle writing to a binary file-like objects as well

0.0.4 (2025-07-03)

  • added method read_fp to SpectrumReader and write_fp to SpectrumWriter to make use of file-like objects directly

0.0.3 (2025-06-25)

  • added read/write support for spectra in CSV files (row-wise)

  • added read/write support for spectra in ARFF files (row-wise)

  • the ADAMS writer now outputs the Sample ID as well

0.0.2 (2025-06-18)

  • fixed access of output_sampledata flag of ADAMS Writer

  • added setter for sample data in Spectrum class

  • the NIR Reader no longer skips the reference values

  • serialization of constituents in FOSS NIR header is now more robust

0.0.1 (2025-04-14)

  • initial release

Metadata

Release files for wai-spectralio 0.0.6

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

Source distribution (sdist)

Source distribution for wai-spectralio 0.0.6
File Size Uploaded Provenance
wai_spectralio-0.0.6.tar.gz 45.2 kB Without provenance Details

Release files / wai_spectralio-0.0.6.tar.gz

Download URL wai_spectralio-0.0.6.tar.gz
Size 45.2 kB
Tags Source
SHA-256 checksum
How to use checksums
0fba26a5dcaae4b27ca4f8ee04f62413b324b6cf7bb075ef3b400c4c1e3b530f
BLAKE2b-256 checksum
How to use checksums
cf79dc10a47c311f546b04ad0b7adf416d2e6c59a8b517cb2e84fb1d86671c92
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.12.3

Security for wai-spectralio 0.0.6

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.

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