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.6.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.6.0
File Size Uploaded Provenance Actions
bluemvmt_gsf-0.6.0.tar.gz 210.9 kB With provenance Details for bluemvmt_gsf-0.6.0.tar.gz

Built distribution (wheel)

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

Total release size: 425.1 kB

Release files / bluemvmt_gsf-0.6.0.tar.gz

Download URL bluemvmt_gsf-0.6.0.tar.gz
Size 210.9 kB
Tags Source
SHA-256 checksum
How to use checksums
521913d4c29bc57324ce4fc717a35eb5cc1b4be698e78a799abb47cd434e1fcd
BLAKE2b-256 checksum
How to use checksums
0049fe4b90a5e13d968de1b6f2a146de69f6881057c6b317f324ff499cae278e
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 Aug 6, 2026.

Transparency log

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

Download URL bluemvmt_gsf-0.6.0-py3-none-any.whl
Size 214.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
11dd2abd65cd717068bd753f02cf82f2505bcb1c09b48dfd4a983372478bd57c
BLAKE2b-256 checksum
How to use checksums
d5d07f5e1aefec3356cd9034586da9e865996a49280bce06485ad03691d806d6
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 Aug 6, 2026.

Transparency log

Security for bluemvmt-gsf 0.6.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.6.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 Aug 6, 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