Skip to main content

GramPy

GramPy is an importable Python library and command-line tooling for decoding MFSK32 and MFSK64 transmissions from SigMF IQ recordings. It is maintained as a standalone project after its extraction from Radiogram.

The PyPI distribution name is radiogrampy; its Python import name is grampy.

Python 3.11 or newer is required.

Use as a library

The supported Python interface is grampy.api. Decode a SigMF metadata/data pair by passing pathlib.Path objects to decode_iq:

from pathlib import Path

from grampy.api import DecodeConfig, decode_iq

manifest = decode_iq(
    meta_path=Path("recording.sigmf-meta"),
    data_path=Path("recording.sigmf-data"),
    config=DecodeConfig(mode="MFSK64"),
    artifact_dir=Path("results/decode.artifacts"),
    artifact_path_prefix="decode.artifacts",
)

print(manifest["status"])
print(manifest["text_summary"]["text"])

decode_iq returns a validated, JSON-compatible decode manifest; it does not write that manifest to disk. The optional artifact arguments control where large decoded-picture artifacts are written. See the Python API guide for the supported arguments, configuration, result contract, errors, and artifact behavior. The manifest schema is the machine-readable format reference.

Setup

Create a virtual environment and install GramPy with its runtime dependencies:

python3 -m venv .venv
.venv/bin/python -m pip install --editable . pillow

Pillow is used by the image-related test suite. The repository uses a src/ layout, so run Python work with both the virtual environment and source tree selected:

PYTHONPATH="$PWD/src" PATH="$PWD/.venv/bin:$PATH" \
  .venv/bin/python -m unittest discover -s tests

For full-suite runs, experiments, corpus jobs, or other potentially long work, follow the managed-execution contract in AGENTS.md. The normal Mac entry point is tools/mac-local.sh; place a temporary command batch in the ignored .local/mac-command.sh when needed.

Tests and corpus

The normal regression suite runs without large external artifacts. Tests that need received IQ or controlled generated fixtures skip cleanly when those optional inputs are absent.

See tests/README.md to install an optional received-IQ corpus, point tests at an existing corpus, or package one for controlled distribution. Large samples are never committed to this repository.

Decode a SigMF recording

GramPy includes a command-line adapter for reproducible decoder work on a SigMF metadata/data pair:

tools/mfsk-iq-decode \
  --in-meta recording.sigmf-meta \
  --in-data recording.sigmf-data \
  --out-manifest results/decode.json \
  --mode MFSK64

The command writes a manifest containing the decoded text, diagnostics, and artifact inventory. Large decoded pictures are written beside it in results/decode.artifacts/; small rasters are embedded in the manifest. See the SigMF decode guide for the accepted metadata, input formats, interval options, and complete output layout.

Development

Use docs/operations/change-management-v1.md for continuous-improvement work. It defines the request, baseline, candidate, evaluation, acceptance, and closeout cycle. Decoder architecture, contracts, validation guidance, and the accepted baseline are indexed in docs/decoder/README.md.

Reusable command-line tools are documented in tools/README.md.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

radiogrampy-0.1.1.tar.gz (165.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

radiogrampy-0.1.1-py3-none-any.whl (131.4 kB view details)

Uploaded Python 3

File details

Details for the file radiogrampy-0.1.1.tar.gz.

File metadata

  • Download URL: radiogrampy-0.1.1.tar.gz
  • Upload date:
  • Size: 165.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for radiogrampy-0.1.1.tar.gz
Algorithm Hash digest
SHA256 f76d0ab741369d30a657f52da4f4fcc5e5660286b833ec4d26a44f0903e4cffd
MD5 22371152b625b21cf1a053658cb40b09
BLAKE2b-256 a5afe8af7129a7de8f9859228b35fbf00018de16685f42128458caa605b2f901

See more details on using hashes here.

Provenance

The following attestation bundles were made for radiogrampy-0.1.1.tar.gz:

Publisher: release.yml on selsamman/GramPy

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file radiogrampy-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: radiogrampy-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 131.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for radiogrampy-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ee8c4a0dcd19a4746c5784778795ae0ade844638542e7757d7e493b71dff5e30
MD5 51e2f4a521ebe62435ee18680c3c98dc
BLAKE2b-256 b96528016253881e66fbe437e141fe638893f1adb6b24ba18c0b3d5a63a92a5a

See more details on using hashes here.

Provenance

The following attestation bundles were made for radiogrampy-0.1.1-py3-none-any.whl:

Publisher: release.yml on selsamman/GramPy

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 files

0.1.0

2 files

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