Skip to main content

Easily interact with Signal Metadata Format (SigMF) recordings.

Project description

Rendered SigMF Logo

PyPI Version Shield Build Status Shield License Shield Documentation Shield PyPI Downloads Shield

The sigmf library makes it easy to interact with Signal Metadata Format (SigMF) recordings. This library is compatible with Python 3.7-3.14 and is distributed freely under the terms GNU Lesser GPL v3 License.

This module follows the SigMF specification html/pdf from the spec repository.

Install

pip install sigmf

Read SigMF

import sigmf

# read SigMF recording
meta = sigmf.fromfile("recording.sigmf-meta")
samples = meta[0:1024]  # get first 1024 samples
sample_rate = meta.sample_rate  # get sample rate

# read compressed SigMF archives
meta = sigmf.fromfile("recording.sigmf.gz")   # gzip-compressed
meta = sigmf.fromfile("recording.sigmf.xz")   # xz-compressed
meta = sigmf.fromfile("recording.sigmf.zip")  # zip archive

# read other formats containing RF time series as SigMF
meta = sigmf.fromfile("recording.wav")   # WAV
meta = sigmf.fromfile("recording.cdif")  # BLUE / Platinum
meta = sigmf.fromfile("recording.xml")   # Signal Hound Spike

Write SigMF

import numpy as np
import sigmf

data = np.array([0.1 + 0.2j, 0.3 + 0.4j], dtype=np.complex64)
meta = sigmf.fromarray(data, sample_rate=48000)
# creates recording.sigmf-data and recording.sigmf-meta
meta.tofile("recording")

Docs

Please visit our documentation for full API reference and more info.

Project details


Download files

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

Source Distribution

sigmf-1.10.0.tar.gz (90.8 kB view details)

Uploaded Source

Built Distribution

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

sigmf-1.10.0-py3-none-any.whl (64.5 kB view details)

Uploaded Python 3

File details

Details for the file sigmf-1.10.0.tar.gz.

File metadata

  • Download URL: sigmf-1.10.0.tar.gz
  • Upload date:
  • Size: 90.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.12

File hashes

Hashes for sigmf-1.10.0.tar.gz
Algorithm Hash digest
SHA256 27fd79bfe3eb773938ec77f5630f3bae1facdaf31cce70e0c2ff5ca43c355cd2
MD5 f6e31df5c6dc90f648d2d9ca9b84fe00
BLAKE2b-256 c044469c29bf1db274f6827f8a5eb18dc47060d1ae81cba1b0e89be4cf4a9389

See more details on using hashes here.

File details

Details for the file sigmf-1.10.0-py3-none-any.whl.

File metadata

  • Download URL: sigmf-1.10.0-py3-none-any.whl
  • Upload date:
  • Size: 64.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.12

File hashes

Hashes for sigmf-1.10.0-py3-none-any.whl
Algorithm Hash digest
SHA256 90aeea127894caeb4c58511551e81d0324c8355a2e2eab3c206468c2b5b8fd8d
MD5 f14b69925fc4f0120ef11dd97c96d62a
BLAKE2b-256 448542de383980f827f70b7b6d3f602785b70bc6839c3efec0c093af00db1e43

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page