Skip to main content
Build Status PyPI

bluemvmt-gsf

Decode Generic Sensor Format (GSF) files into Pydantic models.

bluemvmt-gsf wraps a bundled, JSON-enabled libgsf 3.11 shared library with ctypes and exposes typed Python records that are easier to work with than a raw C binding.

Platform support

  • OS: Linux only

  • Architectures: x86_64 and aarch64

  • Python: 3.11+

  • Native library: GSF / libgsf 3.11 only

  • glibc: the bundled binaries require glibc 2.33+ (for example Ubuntu 22.04+)

Older on-disk GSF files remain readable through libgsf 3.11 compatibility paths. Windows and macOS native libraries are not provided.

Installation

From PyPI:

pip install bluemvmt-gsf

For local development with Poetry:

poetry install --with dev,docs

Command-line tools

After installation the following commands are available on PATH:

  • gsf-to-json — time deserialize of records from a binary GSF file

  • gsf-to-csv / gsf-to-csv-flatten — convert NDJSON record streams to CSV

Example:

gsf-to-json --gsf-file survey.gsf --num-records 10

From a source checkout you can also run the thin wrappers under bin/ (with the package installed), or poetry run gsf-to-json ....

Usage

Decode records from a GSF file:

from bluemvmt_gsf.libgsf import GsfFile
from bluemvmt_gsf.models import RecordType, deserialize_record

with GsfFile("survey.gsf", include_denormalized_fields=True) as gsf:
    for raw in gsf.next_json_record():
        record = deserialize_record(raw)
        print(record.record_type, record.timestamp)

Filter to swath bathymetry pings:

with GsfFile("survey.gsf") as gsf:
    for raw in gsf.next_json_record(
        desired_record=RecordType.GSF_RECORD_SWATH_BATHYMETRY_PING
    ):
        ping = deserialize_record(raw).json_record
        print(ping.number_beams, ping.sensor_name)

Flattened JSON is also supported:

from bluemvmt_gsf.models import deserialize_flattened_record

with GsfFile("survey.gsf", flatten=True) as gsf:
    for raw in gsf.next_json_record():
        print(deserialize_flattened_record(raw))

Development

Install pre-commit hooks once:

poetry run pre-commit install

Run the test suite:

poetry run pytest

Build documentation:

poetry run sphinx-build -b html docs docs/_build/html

Build distribution artifacts:

poetry build

The resulting wheel and sdist include both libgsf-x86_64-03.11.so and libgsf-aarch64-03.11.so.

License

MIT. See LICENSE.txt.

Metadata

Release files for bluemvmt-gsf 0.7.0

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

Source distribution (sdist)

Source distribution for bluemvmt-gsf 0.7.0
File Size Uploaded Provenance Actions
bluemvmt_gsf-0.7.0.tar.gz 203.3 kB With provenance Details for bluemvmt_gsf-0.7.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for bluemvmt-gsf 0.7.0
File Interpreter ABI Platform Actions
bluemvmt_gsf-0.7.0-py3-none-any.whl Python 3 none any Details for bluemvmt_gsf-0.7.0-py3-none-any.whl

Total release size: 409.4 kB

Release files / bluemvmt_gsf-0.7.0.tar.gz

Download URL bluemvmt_gsf-0.7.0.tar.gz
Size 203.3 kB
Tags Source
SHA-256 checksum
How to use checksums
842dd1613bbdc2c1b1cfdb760e4ed96afec4dfee8f678e3aad9924363eaa4767
BLAKE2b-256 checksum
How to use checksums
7a49b7fd715747b414c1ea5a6f057d33fe28bbff3de5b388345807042cc69014
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Oct 19, 2026.

Transparency log

Release files / bluemvmt_gsf-0.7.0-py3-none-any.whl

Download URL bluemvmt_gsf-0.7.0-py3-none-any.whl
Size 206.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
32fbfd08748dc48304a9c75b5daac64c1d9e49c6b999e3e4c0d23efb319dc6c0
BLAKE2b-256 checksum
How to use checksums
329f2611ee3e8d129c6e936a8711240bbe02f100764ff98b5512b1a2efe64f25
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Oct 19, 2026.

Transparency log

Security for bluemvmt-gsf 0.7.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.

Select from 2 files

Attestation for bluemvmt_gsf-0.7.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 Oct 19, 2026.

Transparency log

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.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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