jws2txt
A program to convert binary JASCO SpectraManager (JWS and JWB) files to text files.
Introduction
jws2txt is a simple command line tool that allows for the conversion of JWS and JWB files from JASCO SpectraManager software to text files. These text files can be used in any data analysis workflows and software.
Unlike JASCO SpectraManager software, jws2txt enables batch conversion of JWS/JWB files.
Data unpacking is based on Víctor M. Hernández-Rocamora's jwsProcessor (https://github.com/vhernandez/jwsProcessor).
Installation and Usage
- Download Python (>= 3.11).
- Install with
pip install jws2txt. - To convert files, run the following command in your terminal. Replace <input_path> with the path to a folder containing JWS or JWB files, or to a single file, and <output_folder_path> with the path to the desired output folder:
jws2txt --in-path <input_path> --out-dir <output_folder_path>
- The converted files will be saved in the specified output folder.
Command Line Options
--in-path: JWS or JWB file or path to folder containing files for conversion (required).--out-dir: Destination folder for converted files (defaults to--in-path).--delimiter: Delimiter used in saved text files (default:\t).--comments: Write sample name and comments (TrueorFalse, default:True).--header: Write column headers row, e.g.WAVELENGTH\tCD(TrueorFalse, default:True).--metadata: Export metadata:'none'(default),'header'(writes#-prefixed comment lines at the top of the text file),'json'(generates a companion.jsonsidecar file), or'both'.
Python API
from jws2txt import JWSFile
# Load JWS or multi-scan JWB file
jws = JWSFile("path/to/spectrum.jwb")
# Access sample information and metadata dictionary
print(jws.sample_name, jws.comment)
print(jws.metadata.get("instrument", {})) # absent if the file has no ModuleInfo
print(jws.metadata["instrument"])
print(jws.metadata["parameters"])
# Text output: each writer APPENDS to the target file, so call them in the
# order the rows should appear and use a fresh path per run.
jws.write_metadata("spectrum.txt") # optional "#" metadata lines
jws.write_comments("spectrum.txt") # sample name + comment rows
jws.write_header("spectrum.txt") # column header row
jws.write_data("spectrum.txt") # data rows; delimiter="\t" by default
# Or export medatada as JSON sidecar directly
jws.write_metadata_json("spectrum.json")
Metadata
Release files for jws2txt 1.0.2
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 |
|---|---|---|---|---|
| jws2txt-1.0.2.tar.gz | 97.2 kB | With provenance | Details for jws2txt-1.0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| jws2txt-1.0.2-py3-none-any.whl | Python 3 | none | any | Details for jws2txt-1.0.2-py3-none-any.whl |
Total release size: 115.2 kB
Release files / jws2txt-1.0.2.tar.gz
| Download URL | jws2txt-1.0.2.tar.gz |
|---|---|
| Size | 97.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
de00ffa219a12ffb64a40a8c0040d1b98be15b4ae9cc8f6119b5697db645a2c3
|
|
BLAKE2b-256 checksum How to use checksums |
2d685f5688b637fbc57b1d082753a056d3f35c2eb76df18c35c1fba51b47c593
|
| 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 29, 2026.
Transparency logRelease files / jws2txt-1.0.2-py3-none-any.whl
| Download URL | jws2txt-1.0.2-py3-none-any.whl |
|---|---|
| Size | 18.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b1a8a8b7ebe8fa413823505ba06f516fddbff7a201eb7f4cb979d6bb2a1eac4f
|
|
BLAKE2b-256 checksum How to use checksums |
31e01a516758fbf1639884c692a3efc42842d9feb18f031ca300cce32d2d0337
|
| 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 29, 2026.
Transparency logSecurity for jws2txt 1.0.2
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 jws2txt-1.0.2.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 29, 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.