Skip to main content

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.

Metadata

Release files for SigMF 1.10.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 SigMF 1.10.0
File Size Uploaded Provenance Actions
sigmf-1.10.0.tar.gz 90.8 kB Without provenance Details for sigmf-1.10.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for SigMF 1.10.0
File Interpreter ABI Platform Actions
sigmf-1.10.0-py3-none-any.whl Python 3 none any Details for sigmf-1.10.0-py3-none-any.whl

Total release size: 155.3 kB

Release files / sigmf-1.10.0.tar.gz

Download URL sigmf-1.10.0.tar.gz
Size 90.8 kB
Tags Source
SHA-256 checksum
How to use checksums
27fd79bfe3eb773938ec77f5630f3bae1facdaf31cce70e0c2ff5ca43c355cd2
BLAKE2b-256 checksum
How to use checksums
c044469c29bf1db274f6827f8a5eb18dc47060d1ae81cba1b0e89be4cf4a9389
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.12

Release files / sigmf-1.10.0-py3-none-any.whl

Download URL sigmf-1.10.0-py3-none-any.whl
Size 64.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
90aeea127894caeb4c58511551e81d0324c8355a2e2eab3c206468c2b5b8fd8d
BLAKE2b-256 checksum
How to use checksums
448542de383980f827f70b7b6d3f602785b70bc6839c3efec0c093af00db1e43
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.12

Security for SigMF 1.10.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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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.

Release history Release notifications | RSS feed

This release

1.10.0 This release

2 release files No provenance

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