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.5.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.5.0
File Size Uploaded Provenance Actions
bluemvmt_gsf-0.5.0.tar.gz 206.0 kB With provenance Details for bluemvmt_gsf-0.5.0.tar.gz

Built distribution (wheel)

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

Total release size: 415.4 kB

Release files / bluemvmt_gsf-0.5.0.tar.gz

Download URL bluemvmt_gsf-0.5.0.tar.gz
Size 206.0 kB
Tags Source
SHA-256 checksum
How to use checksums
990d51a2445adac7c70ee0d83daee558ce0fb4f8e26df96b52fcfef21c1b0194
BLAKE2b-256 checksum
How to use checksums
7e5400230552cdeb352c15a7d263ca1dc60986d9c3bb0d42dad5788d457cde3d
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 Jul 31, 2026.

Transparency log

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

Download URL bluemvmt_gsf-0.5.0-py3-none-any.whl
Size 209.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0f60b1a077646a5edf46ddee819db72a2d613e8b1bb991f4a1bc5b17bc735abf
BLAKE2b-256 checksum
How to use checksums
aac67239600a0d6e72ed0608f521349a1f6ec6cc6d6bc3f276f0e9ba7ab7cf8a
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 Jul 31, 2026.

Transparency log

Security for bluemvmt-gsf 0.5.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.5.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 Jul 31, 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