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.1

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.1
File Size Uploaded Provenance Actions
bluemvmt_gsf-0.6.1.tar.gz 211.1 kB With provenance Details for bluemvmt_gsf-0.6.1.tar.gz

Built distribution (wheel)

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

Total release size: 425.4 kB

Release files / bluemvmt_gsf-0.6.1.tar.gz

Download URL bluemvmt_gsf-0.6.1.tar.gz
Size 211.1 kB
Tags Source
SHA-256 checksum
How to use checksums
92c4555b05ce67e73fe6171fe19ddd58a2b665dd6daf2d23891c2dfb77e4e47f
BLAKE2b-256 checksum
How to use checksums
9a4daccaf268c989ea214ba5dfa9ff47f8be2f39d26b72f6930fd2319405abe7
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.1-py3-none-any.whl

Download URL bluemvmt_gsf-0.6.1-py3-none-any.whl
Size 214.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c95d8172237c5b7b74435c5dfd93540ba0959b26daf38916d104c8ede88c6e9a
BLAKE2b-256 checksum
How to use checksums
7f48a630162ac6c999e7693cb6c2eb347095e7075f27ad53676aa8a4bb26b2fe
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.1

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.1.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