rtl-sdr-analyzer 3.0.0b1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- rtl_sdr_analyzer-3.0.0b1/LICENSE +21 -0
- rtl_sdr_analyzer-3.0.0b1/PKG-INFO +235 -0
- rtl_sdr_analyzer-3.0.0b1/README.md +191 -0
- rtl_sdr_analyzer-3.0.0b1/pyproject.toml +102 -0
- rtl_sdr_analyzer-3.0.0b1/setup.cfg +4 -0
- rtl_sdr_analyzer-3.0.0b1/src/rtl_sdr_analyzer/__init__.py +3 -0
- rtl_sdr_analyzer-3.0.0b1/src/rtl_sdr_analyzer/__main__.py +6 -0
- rtl_sdr_analyzer-3.0.0b1/src/rtl_sdr_analyzer/cli/__init__.py +0 -0
- rtl_sdr_analyzer-3.0.0b1/src/rtl_sdr_analyzer/cli/app.py +588 -0
- rtl_sdr_analyzer-3.0.0b1/src/rtl_sdr_analyzer/cli/config_overrides.py +42 -0
- rtl_sdr_analyzer-3.0.0b1/src/rtl_sdr_analyzer/config/__init__.py +0 -0
- rtl_sdr_analyzer-3.0.0b1/src/rtl_sdr_analyzer/config/loader.py +103 -0
- rtl_sdr_analyzer-3.0.0b1/src/rtl_sdr_analyzer/config/models.py +109 -0
- rtl_sdr_analyzer-3.0.0b1/src/rtl_sdr_analyzer/detection/__init__.py +11 -0
- rtl_sdr_analyzer-3.0.0b1/src/rtl_sdr_analyzer/detection/detector.py +209 -0
- rtl_sdr_analyzer-3.0.0b1/src/rtl_sdr_analyzer/detection/events.py +73 -0
- rtl_sdr_analyzer-3.0.0b1/src/rtl_sdr_analyzer/dsp/__init__.py +17 -0
- rtl_sdr_analyzer-3.0.0b1/src/rtl_sdr_analyzer/dsp/processor.py +241 -0
- rtl_sdr_analyzer-3.0.0b1/src/rtl_sdr_analyzer/engine/__init__.py +15 -0
- rtl_sdr_analyzer-3.0.0b1/src/rtl_sdr_analyzer/engine/event_bus.py +42 -0
- rtl_sdr_analyzer-3.0.0b1/src/rtl_sdr_analyzer/engine/spectrum_engine.py +822 -0
- rtl_sdr_analyzer-3.0.0b1/src/rtl_sdr_analyzer/engine/sweeper.py +302 -0
- rtl_sdr_analyzer-3.0.0b1/src/rtl_sdr_analyzer/exporters/__init__.py +11 -0
- rtl_sdr_analyzer-3.0.0b1/src/rtl_sdr_analyzer/exporters/base.py +33 -0
- rtl_sdr_analyzer-3.0.0b1/src/rtl_sdr_analyzer/exporters/csv_exporter.py +65 -0
- rtl_sdr_analyzer-3.0.0b1/src/rtl_sdr_analyzer/exporters/json_exporter.py +41 -0
- rtl_sdr_analyzer-3.0.0b1/src/rtl_sdr_analyzer/logging_config.py +83 -0
- rtl_sdr_analyzer-3.0.0b1/src/rtl_sdr_analyzer/py.typed +0 -0
- rtl_sdr_analyzer-3.0.0b1/src/rtl_sdr_analyzer/recording/__init__.py +3 -0
- rtl_sdr_analyzer-3.0.0b1/src/rtl_sdr_analyzer/recording/metadata.py +79 -0
- rtl_sdr_analyzer-3.0.0b1/src/rtl_sdr_analyzer/recording/recorder.py +162 -0
- rtl_sdr_analyzer-3.0.0b1/src/rtl_sdr_analyzer/sources/__init__.py +39 -0
- rtl_sdr_analyzer-3.0.0b1/src/rtl_sdr_analyzer/sources/base.py +145 -0
- rtl_sdr_analyzer-3.0.0b1/src/rtl_sdr_analyzer/sources/factory.py +139 -0
- rtl_sdr_analyzer-3.0.0b1/src/rtl_sdr_analyzer/sources/replay.py +211 -0
- rtl_sdr_analyzer-3.0.0b1/src/rtl_sdr_analyzer/sources/rtl_tcp.py +251 -0
- rtl_sdr_analyzer-3.0.0b1/src/rtl_sdr_analyzer/sources/simulated.py +188 -0
- rtl_sdr_analyzer-3.0.0b1/src/rtl_sdr_analyzer/sources/usb.py +656 -0
- rtl_sdr_analyzer-3.0.0b1/src/rtl_sdr_analyzer/storage/__init__.py +4 -0
- rtl_sdr_analyzer-3.0.0b1/src/rtl_sdr_analyzer/storage/database.py +302 -0
- rtl_sdr_analyzer-3.0.0b1/src/rtl_sdr_analyzer/storage/stats.py +165 -0
- rtl_sdr_analyzer-3.0.0b1/src/rtl_sdr_analyzer/visualization/__init__.py +5 -0
- rtl_sdr_analyzer-3.0.0b1/src/rtl_sdr_analyzer/visualization/headless.py +82 -0
- rtl_sdr_analyzer-3.0.0b1/src/rtl_sdr_analyzer/web/__init__.py +5 -0
- rtl_sdr_analyzer-3.0.0b1/src/rtl_sdr_analyzer/web/app.py +159 -0
- rtl_sdr_analyzer-3.0.0b1/src/rtl_sdr_analyzer/web/routes.py +540 -0
- rtl_sdr_analyzer-3.0.0b1/src/rtl_sdr_analyzer/web/static/amstech-ui/README.md +134 -0
- rtl_sdr_analyzer-3.0.0b1/src/rtl_sdr_analyzer/web/static/amstech-ui/componentes.css +178 -0
- rtl_sdr_analyzer-3.0.0b1/src/rtl_sdr_analyzer/web/static/amstech-ui/fuentes/LICENCIA-bricolage-grotesque.txt +93 -0
- rtl_sdr_analyzer-3.0.0b1/src/rtl_sdr_analyzer/web/static/amstech-ui/fuentes/LICENCIA-dm-mono.txt +93 -0
- rtl_sdr_analyzer-3.0.0b1/src/rtl_sdr_analyzer/web/static/amstech-ui/fuentes/LICENCIA-figtree.txt +93 -0
- rtl_sdr_analyzer-3.0.0b1/src/rtl_sdr_analyzer/web/static/amstech-ui/fuentes/bricolage-grotesque-latin-ext-opsz-normal.woff2 +0 -0
- rtl_sdr_analyzer-3.0.0b1/src/rtl_sdr_analyzer/web/static/amstech-ui/fuentes/bricolage-grotesque-latin-opsz-normal.woff2 +0 -0
- rtl_sdr_analyzer-3.0.0b1/src/rtl_sdr_analyzer/web/static/amstech-ui/fuentes/dm-mono-latin-400-normal.woff2 +0 -0
- rtl_sdr_analyzer-3.0.0b1/src/rtl_sdr_analyzer/web/static/amstech-ui/fuentes/dm-mono-latin-500-normal.woff2 +0 -0
- rtl_sdr_analyzer-3.0.0b1/src/rtl_sdr_analyzer/web/static/amstech-ui/fuentes/dm-mono-latin-ext-400-normal.woff2 +0 -0
- rtl_sdr_analyzer-3.0.0b1/src/rtl_sdr_analyzer/web/static/amstech-ui/fuentes/dm-mono-latin-ext-500-normal.woff2 +0 -0
- rtl_sdr_analyzer-3.0.0b1/src/rtl_sdr_analyzer/web/static/amstech-ui/fuentes/figtree-latin-400-normal.woff2 +0 -0
- rtl_sdr_analyzer-3.0.0b1/src/rtl_sdr_analyzer/web/static/amstech-ui/fuentes/figtree-latin-500-normal.woff2 +0 -0
- rtl_sdr_analyzer-3.0.0b1/src/rtl_sdr_analyzer/web/static/amstech-ui/fuentes/figtree-latin-600-normal.woff2 +0 -0
- rtl_sdr_analyzer-3.0.0b1/src/rtl_sdr_analyzer/web/static/amstech-ui/fuentes/figtree-latin-700-normal.woff2 +0 -0
- rtl_sdr_analyzer-3.0.0b1/src/rtl_sdr_analyzer/web/static/amstech-ui/fuentes/figtree-latin-800-normal.woff2 +0 -0
- rtl_sdr_analyzer-3.0.0b1/src/rtl_sdr_analyzer/web/static/amstech-ui/fuentes/figtree-latin-ext-400-normal.woff2 +0 -0
- rtl_sdr_analyzer-3.0.0b1/src/rtl_sdr_analyzer/web/static/amstech-ui/fuentes/figtree-latin-ext-500-normal.woff2 +0 -0
- rtl_sdr_analyzer-3.0.0b1/src/rtl_sdr_analyzer/web/static/amstech-ui/fuentes/figtree-latin-ext-600-normal.woff2 +0 -0
- rtl_sdr_analyzer-3.0.0b1/src/rtl_sdr_analyzer/web/static/amstech-ui/fuentes/figtree-latin-ext-700-normal.woff2 +0 -0
- rtl_sdr_analyzer-3.0.0b1/src/rtl_sdr_analyzer/web/static/amstech-ui/fuentes/figtree-latin-ext-800-normal.woff2 +0 -0
- rtl_sdr_analyzer-3.0.0b1/src/rtl_sdr_analyzer/web/static/amstech-ui/fuentes.css +39 -0
- rtl_sdr_analyzer-3.0.0b1/src/rtl_sdr_analyzer/web/static/amstech-ui/logo/avatar.svg +1 -0
- rtl_sdr_analyzer-3.0.0b1/src/rtl_sdr_analyzer/web/static/amstech-ui/logo/favicon.svg +1 -0
- rtl_sdr_analyzer-3.0.0b1/src/rtl_sdr_analyzer/web/static/amstech-ui/logo/marca-completa.svg +1 -0
- rtl_sdr_analyzer-3.0.0b1/src/rtl_sdr_analyzer/web/static/amstech-ui/logo/sello-en.svg +1 -0
- rtl_sdr_analyzer-3.0.0b1/src/rtl_sdr_analyzer/web/static/amstech-ui/logo/sello-noche.svg +1 -0
- rtl_sdr_analyzer-3.0.0b1/src/rtl_sdr_analyzer/web/static/amstech-ui/logo/sello.svg +1 -0
- rtl_sdr_analyzer-3.0.0b1/src/rtl_sdr_analyzer/web/static/amstech-ui/logo/thor-blanco.svg +1 -0
- rtl_sdr_analyzer-3.0.0b1/src/rtl_sdr_analyzer/web/static/amstech-ui/logo/thor-noche.svg +1 -0
- rtl_sdr_analyzer-3.0.0b1/src/rtl_sdr_analyzer/web/static/amstech-ui/logo/thor-plano.svg +1 -0
- rtl_sdr_analyzer-3.0.0b1/src/rtl_sdr_analyzer/web/static/amstech-ui/logo/thor.svg +1 -0
- rtl_sdr_analyzer-3.0.0b1/src/rtl_sdr_analyzer/web/static/amstech-ui/tokens.css +161 -0
- rtl_sdr_analyzer-3.0.0b1/src/rtl_sdr_analyzer/web/static/css/studio.css +1353 -0
- rtl_sdr_analyzer-3.0.0b1/src/rtl_sdr_analyzer/web/static/img/emblem.svg +22 -0
- rtl_sdr_analyzer-3.0.0b1/src/rtl_sdr_analyzer/web/static/img/logo.svg +34 -0
- rtl_sdr_analyzer-3.0.0b1/src/rtl_sdr_analyzer/web/static/index.html +574 -0
- rtl_sdr_analyzer-3.0.0b1/src/rtl_sdr_analyzer/web/static/js/api.js +63 -0
- rtl_sdr_analyzer-3.0.0b1/src/rtl_sdr_analyzer/web/static/js/i18n.js +311 -0
- rtl_sdr_analyzer-3.0.0b1/src/rtl_sdr_analyzer/web/static/js/main.js +1248 -0
- rtl_sdr_analyzer-3.0.0b1/src/rtl_sdr_analyzer/web/static/js/spectrum.js +509 -0
- rtl_sdr_analyzer-3.0.0b1/src/rtl_sdr_analyzer/web/static/js/sweep.js +203 -0
- rtl_sdr_analyzer-3.0.0b1/src/rtl_sdr_analyzer/web/static/js/theme-init.js +10 -0
- rtl_sdr_analyzer-3.0.0b1/src/rtl_sdr_analyzer/web/static/js/waterfall.js +201 -0
- rtl_sdr_analyzer-3.0.0b1/src/rtl_sdr_analyzer/web/ws.py +175 -0
- rtl_sdr_analyzer-3.0.0b1/src/rtl_sdr_analyzer.egg-info/PKG-INFO +235 -0
- rtl_sdr_analyzer-3.0.0b1/src/rtl_sdr_analyzer.egg-info/SOURCES.txt +95 -0
- rtl_sdr_analyzer-3.0.0b1/src/rtl_sdr_analyzer.egg-info/dependency_links.txt +1 -0
- rtl_sdr_analyzer-3.0.0b1/src/rtl_sdr_analyzer.egg-info/entry_points.txt +2 -0
- rtl_sdr_analyzer-3.0.0b1/src/rtl_sdr_analyzer.egg-info/requires.txt +22 -0
- rtl_sdr_analyzer-3.0.0b1/src/rtl_sdr_analyzer.egg-info/top_level.txt +1 -0
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 Alejandro Martín
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,235 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: rtl-sdr-analyzer
|
|
3
|
+
Version: 3.0.0b1
|
|
4
|
+
Summary: Real-time RF spectrum analyzer, signal detector, and wideband sweeper by AMSTech
|
|
5
|
+
Author-email: "Alejandro Martín (AMSTech)" <info@amstech.dev>
|
|
6
|
+
License-Expression: MIT
|
|
7
|
+
Project-URL: Homepage, https://github.com/msalexms/rtl-sdr-analyzer
|
|
8
|
+
Project-URL: Repository, https://github.com/msalexms/rtl-sdr-analyzer
|
|
9
|
+
Project-URL: Issues, https://github.com/msalexms/rtl-sdr-analyzer/issues
|
|
10
|
+
Keywords: rtl-sdr,spectrum-analyzer,rf,dsp,sdr,amstech
|
|
11
|
+
Classifier: Development Status :: 4 - Beta
|
|
12
|
+
Classifier: Intended Audience :: Science/Research
|
|
13
|
+
Classifier: Programming Language :: Python :: 3
|
|
14
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
17
|
+
Classifier: Operating System :: OS Independent
|
|
18
|
+
Classifier: Environment :: Web Environment
|
|
19
|
+
Classifier: Topic :: Communications :: Ham Radio
|
|
20
|
+
Classifier: Topic :: Scientific/Engineering
|
|
21
|
+
Requires-Python: >=3.11
|
|
22
|
+
Description-Content-Type: text/markdown
|
|
23
|
+
License-File: LICENSE
|
|
24
|
+
Requires-Dist: numpy<3.0,>=2.0
|
|
25
|
+
Requires-Dist: fastapi<1.0,>=0.115
|
|
26
|
+
Requires-Dist: uvicorn[standard]<1.0,>=0.32
|
|
27
|
+
Requires-Dist: pydantic<3.0,>=2.0
|
|
28
|
+
Requires-Dist: pyyaml<7.0,>=6.0
|
|
29
|
+
Requires-Dist: typer<1.0,>=0.12
|
|
30
|
+
Requires-Dist: rich<14.0,>=13.0
|
|
31
|
+
Requires-Dist: structlog<25.0,>=24.0
|
|
32
|
+
Provides-Extra: dev
|
|
33
|
+
Requires-Dist: ruff<1.0,>=0.6; extra == "dev"
|
|
34
|
+
Requires-Dist: mypy<2.0,>=1.11; extra == "dev"
|
|
35
|
+
Requires-Dist: types-PyYAML<7.0,>=6.0; extra == "dev"
|
|
36
|
+
Provides-Extra: bundle
|
|
37
|
+
Requires-Dist: pyinstaller<7.0,>=6.10; extra == "bundle"
|
|
38
|
+
Provides-Extra: test
|
|
39
|
+
Requires-Dist: pytest<9.0,>=8.0; extra == "test"
|
|
40
|
+
Requires-Dist: pytest-asyncio<1.0,>=0.24; extra == "test"
|
|
41
|
+
Requires-Dist: pytest-cov<6.0,>=5.0; extra == "test"
|
|
42
|
+
Requires-Dist: httpx<1.0,>=0.27; extra == "test"
|
|
43
|
+
Dynamic: license-file
|
|
44
|
+
|
|
45
|
+
<p align="center">
|
|
46
|
+
<img src="docs/brand/banner.svg" alt="rtl-sdr-analyzer — An AMSTech project. Real-time RF spectrum analyzer, signal detector, and wideband sweeper." width="920">
|
|
47
|
+
</p>
|
|
48
|
+
|
|
49
|
+
<p align="center">
|
|
50
|
+
<a href="https://github.com/msalexms/rtl-sdr-analyzer/actions/workflows/ci.yml"><img src="https://img.shields.io/github/actions/workflow/status/msalexms/rtl-sdr-analyzer/ci.yml?branch=main&style=flat-square&label=CI&color=2B36D9" alt="CI"></a>
|
|
51
|
+
<a href="https://www.python.org"><img src="https://img.shields.io/badge/Python-3.11%2B-2B36D9?style=flat-square&logo=python&logoColor=white" alt="Python 3.11+"></a>
|
|
52
|
+
<img src="https://img.shields.io/badge/RF-USB%20%7C%20RTL--TCP%20%7C%20Demo-1E1B2E?style=flat-square" alt="RF Input Modes">
|
|
53
|
+
<img src="https://img.shields.io/badge/UI-EN%20%7C%20ES-2B36D9?style=flat-square" alt="Bilingual EN and ES">
|
|
54
|
+
<a href="LICENSE"><img src="https://img.shields.io/badge/License-MIT-FFE27A?style=flat-square&labelColor=1E1B2E" alt="MIT License"></a>
|
|
55
|
+
</p>
|
|
56
|
+
|
|
57
|
+
<p align="center">
|
|
58
|
+
<strong>English</strong> · <a href="README.es.md">Español</a>
|
|
59
|
+
</p>
|
|
60
|
+
|
|
61
|
+
<p align="center">
|
|
62
|
+
<a href="#features">Features</a> ·
|
|
63
|
+
<a href="#quick-start">Quick Start</a> ·
|
|
64
|
+
<a href="#web-studio">Web Studio</a> ·
|
|
65
|
+
<a href="#cli-commands">CLI Commands</a> ·
|
|
66
|
+
<a href="#configuration">Configuration</a> ·
|
|
67
|
+
<a href="#architecture">Architecture</a> ·
|
|
68
|
+
<a href="CHANGELOG.md">Changelog</a>
|
|
69
|
+
</p>
|
|
70
|
+
|
|
71
|
+
---
|
|
72
|
+
|
|
73
|
+
**rtl-sdr-analyzer** (by **AMSTech**) is a focused, easy-to-use RF spectrum analyzer, signal detector, IQ recorder, and wideband band scanner for RTL-SDR USB dongles and `rtl_tcp` servers.
|
|
74
|
+
|
|
75
|
+
Instead of drowning you in dozens of obscure demodulator panels or brittle matplotlib windows, it gives you a clean local Web Studio (with zero frontend build steps) and a fast Rich CLI that both work out of the box with:
|
|
76
|
+
|
|
77
|
+
- **Direct USB RTL-SDR** via pure-Python `ctypes` bindings to `librtlsdr` (no C compiler needed)
|
|
78
|
+
- **Network `rtl_tcp`** with proper `RTL0` handshake and byte-aligned I/Q streaming
|
|
79
|
+
- **Simulated Demo RF** when no dongle is connected, so you can explore the spectrum and test detections anywhere
|
|
80
|
+
- **Recorded IQ replay** (`.raw` / `.cu8` and `.npz`)
|
|
81
|
+
|
|
82
|
+
---
|
|
83
|
+
|
|
84
|
+
## Features
|
|
85
|
+
|
|
86
|
+
- **Live Spectrum & Waterfall** — Smooth HTML5 Canvas FFT plot and waterfall over WebSocket (`Int16` Base64 streaming), with click-to-tune, hover readout, Peak Hold, Auto Scale, and AMSTech / Viridis / Inferno colormaps.
|
|
87
|
+
- **Calibrated dBFS DSP** — Pure-NumPy Welch-averaged FFT with selectable windows (`blackmanharris`, `hann`, `hamming`, `rectangular`), DC removal, and linear-domain temporal smoothing.
|
|
88
|
+
- **Adaptive Signal Detector** — Robust median/MAD noise floor baseline (not poisoned by strong signals), contiguous `-3 dB` bandwidth measurement, SNR + Z-score criteria, holdover, and anti-spam cooldown.
|
|
89
|
+
- **Wideband Frequency Sweeper** — Scans wide frequency spans in overlap-trimmed steps (`0.8 × sample_rate`) to build a stitched wideband spectrum and clickable peak table.
|
|
90
|
+
- **IQ Sample Recording** — Capture raw interleaved `uint8` (`.raw` / `.cu8`) or NumPy `.npz` archives (with center frequency, sample rate, and gain metadata) from the live Web Studio or CLI.
|
|
91
|
+
- **SQLite History & Export** — Thread-safe WAL SQLite persistence with session tracking, top active frequencies, hourly breakdown, and CSV / JSONL export.
|
|
92
|
+
- **AMSTech UI (`EN / ES`)** — Warm paper Day mode (`#FFF6E9`) and soft Graphite Night mode (`#18181D`), local self-hosted fonts (`Bricolage Grotesque`, `Figtree`, `DM Mono`), and zero external CDN requests.
|
|
93
|
+
|
|
94
|
+
---
|
|
95
|
+
|
|
96
|
+
## Quick Start
|
|
97
|
+
|
|
98
|
+
### 1. Install
|
|
99
|
+
|
|
100
|
+
> [!NOTE]
|
|
101
|
+
> This is a **beta** (`3.0.0b1`). Downloads are on the [Releases page](https://github.com/msalexms/rtl-sdr-analyzer/releases).
|
|
102
|
+
|
|
103
|
+
| Platform | Recommended | Dongle library |
|
|
104
|
+
|---|---|---|
|
|
105
|
+
| **Windows** | Download `rtl-sdr-analyzer-…-windows-x64.zip`, unzip, run `rtl-sdr-analyzer.exe` (no Python needed) | Included (RTL-SDR Blog driver, V3/V4). Install the WinUSB driver once with [Zadig](https://zadig.akeo.ie). |
|
|
106
|
+
| **macOS** | `pipx install --pip-args=--pre rtl-sdr-analyzer` | `brew install librtlsdr` |
|
|
107
|
+
| **Linux** | `pipx install --pip-args=--pre rtl-sdr-analyzer` | `sudo apt install librtlsdr0 rtl-sdr` (Debian/Ubuntu) · `sudo dnf install rtl-sdr` (Fedora) |
|
|
108
|
+
| **Raspberry Pi / server** | `docker run -d --device /dev/bus/usb -p 8080:8080 -v sdr-data:/data ghcr.io/msalexms/rtl-sdr-analyzer:beta` | Included in the image |
|
|
109
|
+
|
|
110
|
+
Standalone archives for macOS (arm64/x64) and Linux (x64/arm64) are also published; each has a `README-FIRST.txt`.
|
|
111
|
+
|
|
112
|
+
- **Windows SmartScreen / macOS Gatekeeper:** beta builds are not code-signed yet. Windows: *More info → Run anyway*. macOS archive: `xattr -dr com.apple.quarantine rtl-sdr-analyzer`.
|
|
113
|
+
- **Linux "device busy":** blacklist the DVB-T driver once: `echo 'blacklist dvb_usb_rtl28xxu' | sudo tee /etc/modprobe.d/blacklist-rtl.conf`, then replug the dongle.
|
|
114
|
+
- **Docker exposes the Studio to your network without authentication.** Only run it on networks you trust.
|
|
115
|
+
|
|
116
|
+
From source (development):
|
|
117
|
+
|
|
118
|
+
```bash
|
|
119
|
+
git clone https://github.com/msalexms/rtl-sdr-analyzer.git
|
|
120
|
+
cd rtl-sdr-analyzer
|
|
121
|
+
python -m venv .venv && source .venv/bin/activate # Windows: .venv\Scripts\activate
|
|
122
|
+
pip install -e ".[dev,test]"
|
|
123
|
+
```
|
|
124
|
+
|
|
125
|
+
### 2. Check your dongle
|
|
126
|
+
|
|
127
|
+
```bash
|
|
128
|
+
rtl-sdr-analyzer devices
|
|
129
|
+
```
|
|
130
|
+
|
|
131
|
+
### 3. Open the Web Studio
|
|
132
|
+
|
|
133
|
+
```bash
|
|
134
|
+
rtl-sdr-analyzer serve --open
|
|
135
|
+
```
|
|
136
|
+
|
|
137
|
+
By default `--source auto` picks your attached USB RTL-SDR dongle first, falls back to `rtl_tcp` on `127.0.0.1:1234` if reachable, or starts **Simulated Demo RF** so the interface always opens cleanly.
|
|
138
|
+
|
|
139
|
+
### Docker
|
|
140
|
+
|
|
141
|
+
```bash
|
|
142
|
+
cd docker
|
|
143
|
+
docker compose up -d
|
|
144
|
+
```
|
|
145
|
+
|
|
146
|
+
Open `http://127.0.0.1:8080`.
|
|
147
|
+
|
|
148
|
+
---
|
|
149
|
+
|
|
150
|
+
## Web Studio
|
|
151
|
+
|
|
152
|
+
- **Tabs (`1` / `2` / `3`)**: Switch between **Live** (spectrum + waterfall + receiver/detector controls), **Sweep** (wideband scanner), and **Events** (detection log, top frequencies, CSV/JSONL export).
|
|
153
|
+
- **Shortcuts**: `Space` pauses/resumes the stream, `P` toggles Peak Hold, `A` auto-scales, `R` starts/stops IQ recording, `1`/`2`/`3` switch tabs, `←` / `→` steps center frequency by ±100 kHz, and clicking anywhere on the spectrum tunes straight to that frequency.
|
|
154
|
+
- **Source Modal**: Click **Source** in the header anytime to scan USB devices, connect to an `rtl_tcp` server, or switch to Demo RF.
|
|
155
|
+
|
|
156
|
+
---
|
|
157
|
+
|
|
158
|
+
## CLI Commands
|
|
159
|
+
|
|
160
|
+
| Command | Purpose | Example |
|
|
161
|
+
|---|---|---|
|
|
162
|
+
| `serve` *(default)* | Start local FastAPI + WebSocket Web Studio | `rtl-sdr-analyzer serve --freq 98e6 --open` |
|
|
163
|
+
| `devices` | Inspect `librtlsdr` path and attached USB dongles | `rtl-sdr-analyzer devices` |
|
|
164
|
+
| `analyze` | Headless console analyzer & detector | `rtl-sdr-analyzer analyze --freq 446e6 --db-path events.db` |
|
|
165
|
+
| `sweep` | Wideband frequency scan with Rich peaks table | `rtl-sdr-analyzer sweep 88e6 108e6 --dwell 0.3` |
|
|
166
|
+
| `record` | Capture raw `.raw` or `.npz` IQ samples | `rtl-sdr-analyzer record fm.npz --format numpy --duration 10` |
|
|
167
|
+
| `stats` | View SQLite session/event summary and export CSV | `rtl-sdr-analyzer stats events.db --export-csv out.csv` |
|
|
168
|
+
| `config-validate` | Validate a YAML configuration file | `rtl-sdr-analyzer config-validate config/default.yml` |
|
|
169
|
+
| `config-show` | Print resolved config (defaults → YAML → env → CLI) | `rtl-sdr-analyzer config-show --format json` |
|
|
170
|
+
|
|
171
|
+
---
|
|
172
|
+
|
|
173
|
+
## Configuration
|
|
174
|
+
|
|
175
|
+
Precedence (lowest → highest): **Code defaults → YAML file (`--config`) → Environment variables (`RTL_SDR__*`) → CLI flags**.
|
|
176
|
+
|
|
177
|
+
See [config/default.yml](config/default.yml) and [.env.example](.env.example).
|
|
178
|
+
|
|
179
|
+
```yaml
|
|
180
|
+
source:
|
|
181
|
+
mode: "auto" # auto | usb | rtl_tcp | simulated | file
|
|
182
|
+
device_index: 0
|
|
183
|
+
|
|
184
|
+
receiver:
|
|
185
|
+
frequency: 98000000
|
|
186
|
+
sample_rate: 2048000
|
|
187
|
+
fft_size: 2048
|
|
188
|
+
gain: null # null = auto gain
|
|
189
|
+
direct_sampling: 0
|
|
190
|
+
```
|
|
191
|
+
|
|
192
|
+
---
|
|
193
|
+
|
|
194
|
+
## Architecture
|
|
195
|
+
|
|
196
|
+
| Module | Responsibility |
|
|
197
|
+
|---|---|
|
|
198
|
+
| `sources/` | `LocalUsbSource` (`ctypes` `librtlsdr`), `RtlTcpSource` (`RTL0` + command opcodes), `SimulatedSource`, `FileReplaySource`, `create_source` |
|
|
199
|
+
| `dsp/` | Pure-NumPy calibrated dBFS Welch FFT (`blackmanharris`, `hann`, `hamming`, `rectangular`), median/MAD floor, `-3 dB` bandwidth, peak finder |
|
|
200
|
+
| `detection/` | `SignalDetector` (adaptive baseline, holdover, anti-spam cooldown), `SignalEvent`, `SpectrumFrame` |
|
|
201
|
+
| `engine/` | Thread-safe `SpectrumEngine` (live reconfiguration, recording tap, exclusive lock for sweeping), `FrequencySweeper`, `EventBus` |
|
|
202
|
+
| `storage/` & `recording/` | Thread-safe WAL SQLite `EventStore`, AMSTech Rich `StatsDashboard`, `IQRecorder`, `CsvExporter`, `JsonExporter` |
|
|
203
|
+
| `web/` | FastAPI REST + WebSocket (`Int16` Base64 frames) + zero-build AMSTech UI v1.5 frontend |
|
|
204
|
+
| `cli/` | Thin Typer CLI wrapping the engine and Web Studio |
|
|
205
|
+
|
|
206
|
+
---
|
|
207
|
+
|
|
208
|
+
## Development
|
|
209
|
+
|
|
210
|
+
```bash
|
|
211
|
+
pip install -e ".[dev,test]"
|
|
212
|
+
ruff check src tests
|
|
213
|
+
ruff format --check src tests
|
|
214
|
+
mypy --strict src
|
|
215
|
+
pytest
|
|
216
|
+
```
|
|
217
|
+
|
|
218
|
+
---
|
|
219
|
+
|
|
220
|
+
## License
|
|
221
|
+
|
|
222
|
+
Copyright (c) 2026 Alejandro Martín (AMSTech). Released under the [MIT License](LICENSE).
|
|
223
|
+
|
|
224
|
+
<p align="center">
|
|
225
|
+
<picture>
|
|
226
|
+
<source media="(prefers-color-scheme: dark)" srcset="docs/brand/seal-en-dark.svg">
|
|
227
|
+
<img src="docs/brand/seal-en.svg" alt="AMSTech — Built for me, shared with all" width="96">
|
|
228
|
+
</picture>
|
|
229
|
+
</p>
|
|
230
|
+
|
|
231
|
+
<p align="center">
|
|
232
|
+
<strong>An AMSTech project</strong> · Built for me, shared with all · <a href="https://amstech.dev">amstech.dev</a>
|
|
233
|
+
<br>
|
|
234
|
+
<a href="LICENSE">MIT</a> © 2026 Alejandro Martín (AMSTech) · <a href="CHANGELOG.md">Changelog</a>
|
|
235
|
+
</p>
|
|
@@ -0,0 +1,191 @@
|
|
|
1
|
+
<p align="center">
|
|
2
|
+
<img src="docs/brand/banner.svg" alt="rtl-sdr-analyzer — An AMSTech project. Real-time RF spectrum analyzer, signal detector, and wideband sweeper." width="920">
|
|
3
|
+
</p>
|
|
4
|
+
|
|
5
|
+
<p align="center">
|
|
6
|
+
<a href="https://github.com/msalexms/rtl-sdr-analyzer/actions/workflows/ci.yml"><img src="https://img.shields.io/github/actions/workflow/status/msalexms/rtl-sdr-analyzer/ci.yml?branch=main&style=flat-square&label=CI&color=2B36D9" alt="CI"></a>
|
|
7
|
+
<a href="https://www.python.org"><img src="https://img.shields.io/badge/Python-3.11%2B-2B36D9?style=flat-square&logo=python&logoColor=white" alt="Python 3.11+"></a>
|
|
8
|
+
<img src="https://img.shields.io/badge/RF-USB%20%7C%20RTL--TCP%20%7C%20Demo-1E1B2E?style=flat-square" alt="RF Input Modes">
|
|
9
|
+
<img src="https://img.shields.io/badge/UI-EN%20%7C%20ES-2B36D9?style=flat-square" alt="Bilingual EN and ES">
|
|
10
|
+
<a href="LICENSE"><img src="https://img.shields.io/badge/License-MIT-FFE27A?style=flat-square&labelColor=1E1B2E" alt="MIT License"></a>
|
|
11
|
+
</p>
|
|
12
|
+
|
|
13
|
+
<p align="center">
|
|
14
|
+
<strong>English</strong> · <a href="README.es.md">Español</a>
|
|
15
|
+
</p>
|
|
16
|
+
|
|
17
|
+
<p align="center">
|
|
18
|
+
<a href="#features">Features</a> ·
|
|
19
|
+
<a href="#quick-start">Quick Start</a> ·
|
|
20
|
+
<a href="#web-studio">Web Studio</a> ·
|
|
21
|
+
<a href="#cli-commands">CLI Commands</a> ·
|
|
22
|
+
<a href="#configuration">Configuration</a> ·
|
|
23
|
+
<a href="#architecture">Architecture</a> ·
|
|
24
|
+
<a href="CHANGELOG.md">Changelog</a>
|
|
25
|
+
</p>
|
|
26
|
+
|
|
27
|
+
---
|
|
28
|
+
|
|
29
|
+
**rtl-sdr-analyzer** (by **AMSTech**) is a focused, easy-to-use RF spectrum analyzer, signal detector, IQ recorder, and wideband band scanner for RTL-SDR USB dongles and `rtl_tcp` servers.
|
|
30
|
+
|
|
31
|
+
Instead of drowning you in dozens of obscure demodulator panels or brittle matplotlib windows, it gives you a clean local Web Studio (with zero frontend build steps) and a fast Rich CLI that both work out of the box with:
|
|
32
|
+
|
|
33
|
+
- **Direct USB RTL-SDR** via pure-Python `ctypes` bindings to `librtlsdr` (no C compiler needed)
|
|
34
|
+
- **Network `rtl_tcp`** with proper `RTL0` handshake and byte-aligned I/Q streaming
|
|
35
|
+
- **Simulated Demo RF** when no dongle is connected, so you can explore the spectrum and test detections anywhere
|
|
36
|
+
- **Recorded IQ replay** (`.raw` / `.cu8` and `.npz`)
|
|
37
|
+
|
|
38
|
+
---
|
|
39
|
+
|
|
40
|
+
## Features
|
|
41
|
+
|
|
42
|
+
- **Live Spectrum & Waterfall** — Smooth HTML5 Canvas FFT plot and waterfall over WebSocket (`Int16` Base64 streaming), with click-to-tune, hover readout, Peak Hold, Auto Scale, and AMSTech / Viridis / Inferno colormaps.
|
|
43
|
+
- **Calibrated dBFS DSP** — Pure-NumPy Welch-averaged FFT with selectable windows (`blackmanharris`, `hann`, `hamming`, `rectangular`), DC removal, and linear-domain temporal smoothing.
|
|
44
|
+
- **Adaptive Signal Detector** — Robust median/MAD noise floor baseline (not poisoned by strong signals), contiguous `-3 dB` bandwidth measurement, SNR + Z-score criteria, holdover, and anti-spam cooldown.
|
|
45
|
+
- **Wideband Frequency Sweeper** — Scans wide frequency spans in overlap-trimmed steps (`0.8 × sample_rate`) to build a stitched wideband spectrum and clickable peak table.
|
|
46
|
+
- **IQ Sample Recording** — Capture raw interleaved `uint8` (`.raw` / `.cu8`) or NumPy `.npz` archives (with center frequency, sample rate, and gain metadata) from the live Web Studio or CLI.
|
|
47
|
+
- **SQLite History & Export** — Thread-safe WAL SQLite persistence with session tracking, top active frequencies, hourly breakdown, and CSV / JSONL export.
|
|
48
|
+
- **AMSTech UI (`EN / ES`)** — Warm paper Day mode (`#FFF6E9`) and soft Graphite Night mode (`#18181D`), local self-hosted fonts (`Bricolage Grotesque`, `Figtree`, `DM Mono`), and zero external CDN requests.
|
|
49
|
+
|
|
50
|
+
---
|
|
51
|
+
|
|
52
|
+
## Quick Start
|
|
53
|
+
|
|
54
|
+
### 1. Install
|
|
55
|
+
|
|
56
|
+
> [!NOTE]
|
|
57
|
+
> This is a **beta** (`3.0.0b1`). Downloads are on the [Releases page](https://github.com/msalexms/rtl-sdr-analyzer/releases).
|
|
58
|
+
|
|
59
|
+
| Platform | Recommended | Dongle library |
|
|
60
|
+
|---|---|---|
|
|
61
|
+
| **Windows** | Download `rtl-sdr-analyzer-…-windows-x64.zip`, unzip, run `rtl-sdr-analyzer.exe` (no Python needed) | Included (RTL-SDR Blog driver, V3/V4). Install the WinUSB driver once with [Zadig](https://zadig.akeo.ie). |
|
|
62
|
+
| **macOS** | `pipx install --pip-args=--pre rtl-sdr-analyzer` | `brew install librtlsdr` |
|
|
63
|
+
| **Linux** | `pipx install --pip-args=--pre rtl-sdr-analyzer` | `sudo apt install librtlsdr0 rtl-sdr` (Debian/Ubuntu) · `sudo dnf install rtl-sdr` (Fedora) |
|
|
64
|
+
| **Raspberry Pi / server** | `docker run -d --device /dev/bus/usb -p 8080:8080 -v sdr-data:/data ghcr.io/msalexms/rtl-sdr-analyzer:beta` | Included in the image |
|
|
65
|
+
|
|
66
|
+
Standalone archives for macOS (arm64/x64) and Linux (x64/arm64) are also published; each has a `README-FIRST.txt`.
|
|
67
|
+
|
|
68
|
+
- **Windows SmartScreen / macOS Gatekeeper:** beta builds are not code-signed yet. Windows: *More info → Run anyway*. macOS archive: `xattr -dr com.apple.quarantine rtl-sdr-analyzer`.
|
|
69
|
+
- **Linux "device busy":** blacklist the DVB-T driver once: `echo 'blacklist dvb_usb_rtl28xxu' | sudo tee /etc/modprobe.d/blacklist-rtl.conf`, then replug the dongle.
|
|
70
|
+
- **Docker exposes the Studio to your network without authentication.** Only run it on networks you trust.
|
|
71
|
+
|
|
72
|
+
From source (development):
|
|
73
|
+
|
|
74
|
+
```bash
|
|
75
|
+
git clone https://github.com/msalexms/rtl-sdr-analyzer.git
|
|
76
|
+
cd rtl-sdr-analyzer
|
|
77
|
+
python -m venv .venv && source .venv/bin/activate # Windows: .venv\Scripts\activate
|
|
78
|
+
pip install -e ".[dev,test]"
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
### 2. Check your dongle
|
|
82
|
+
|
|
83
|
+
```bash
|
|
84
|
+
rtl-sdr-analyzer devices
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
### 3. Open the Web Studio
|
|
88
|
+
|
|
89
|
+
```bash
|
|
90
|
+
rtl-sdr-analyzer serve --open
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
By default `--source auto` picks your attached USB RTL-SDR dongle first, falls back to `rtl_tcp` on `127.0.0.1:1234` if reachable, or starts **Simulated Demo RF** so the interface always opens cleanly.
|
|
94
|
+
|
|
95
|
+
### Docker
|
|
96
|
+
|
|
97
|
+
```bash
|
|
98
|
+
cd docker
|
|
99
|
+
docker compose up -d
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
Open `http://127.0.0.1:8080`.
|
|
103
|
+
|
|
104
|
+
---
|
|
105
|
+
|
|
106
|
+
## Web Studio
|
|
107
|
+
|
|
108
|
+
- **Tabs (`1` / `2` / `3`)**: Switch between **Live** (spectrum + waterfall + receiver/detector controls), **Sweep** (wideband scanner), and **Events** (detection log, top frequencies, CSV/JSONL export).
|
|
109
|
+
- **Shortcuts**: `Space` pauses/resumes the stream, `P` toggles Peak Hold, `A` auto-scales, `R` starts/stops IQ recording, `1`/`2`/`3` switch tabs, `←` / `→` steps center frequency by ±100 kHz, and clicking anywhere on the spectrum tunes straight to that frequency.
|
|
110
|
+
- **Source Modal**: Click **Source** in the header anytime to scan USB devices, connect to an `rtl_tcp` server, or switch to Demo RF.
|
|
111
|
+
|
|
112
|
+
---
|
|
113
|
+
|
|
114
|
+
## CLI Commands
|
|
115
|
+
|
|
116
|
+
| Command | Purpose | Example |
|
|
117
|
+
|---|---|---|
|
|
118
|
+
| `serve` *(default)* | Start local FastAPI + WebSocket Web Studio | `rtl-sdr-analyzer serve --freq 98e6 --open` |
|
|
119
|
+
| `devices` | Inspect `librtlsdr` path and attached USB dongles | `rtl-sdr-analyzer devices` |
|
|
120
|
+
| `analyze` | Headless console analyzer & detector | `rtl-sdr-analyzer analyze --freq 446e6 --db-path events.db` |
|
|
121
|
+
| `sweep` | Wideband frequency scan with Rich peaks table | `rtl-sdr-analyzer sweep 88e6 108e6 --dwell 0.3` |
|
|
122
|
+
| `record` | Capture raw `.raw` or `.npz` IQ samples | `rtl-sdr-analyzer record fm.npz --format numpy --duration 10` |
|
|
123
|
+
| `stats` | View SQLite session/event summary and export CSV | `rtl-sdr-analyzer stats events.db --export-csv out.csv` |
|
|
124
|
+
| `config-validate` | Validate a YAML configuration file | `rtl-sdr-analyzer config-validate config/default.yml` |
|
|
125
|
+
| `config-show` | Print resolved config (defaults → YAML → env → CLI) | `rtl-sdr-analyzer config-show --format json` |
|
|
126
|
+
|
|
127
|
+
---
|
|
128
|
+
|
|
129
|
+
## Configuration
|
|
130
|
+
|
|
131
|
+
Precedence (lowest → highest): **Code defaults → YAML file (`--config`) → Environment variables (`RTL_SDR__*`) → CLI flags**.
|
|
132
|
+
|
|
133
|
+
See [config/default.yml](config/default.yml) and [.env.example](.env.example).
|
|
134
|
+
|
|
135
|
+
```yaml
|
|
136
|
+
source:
|
|
137
|
+
mode: "auto" # auto | usb | rtl_tcp | simulated | file
|
|
138
|
+
device_index: 0
|
|
139
|
+
|
|
140
|
+
receiver:
|
|
141
|
+
frequency: 98000000
|
|
142
|
+
sample_rate: 2048000
|
|
143
|
+
fft_size: 2048
|
|
144
|
+
gain: null # null = auto gain
|
|
145
|
+
direct_sampling: 0
|
|
146
|
+
```
|
|
147
|
+
|
|
148
|
+
---
|
|
149
|
+
|
|
150
|
+
## Architecture
|
|
151
|
+
|
|
152
|
+
| Module | Responsibility |
|
|
153
|
+
|---|---|
|
|
154
|
+
| `sources/` | `LocalUsbSource` (`ctypes` `librtlsdr`), `RtlTcpSource` (`RTL0` + command opcodes), `SimulatedSource`, `FileReplaySource`, `create_source` |
|
|
155
|
+
| `dsp/` | Pure-NumPy calibrated dBFS Welch FFT (`blackmanharris`, `hann`, `hamming`, `rectangular`), median/MAD floor, `-3 dB` bandwidth, peak finder |
|
|
156
|
+
| `detection/` | `SignalDetector` (adaptive baseline, holdover, anti-spam cooldown), `SignalEvent`, `SpectrumFrame` |
|
|
157
|
+
| `engine/` | Thread-safe `SpectrumEngine` (live reconfiguration, recording tap, exclusive lock for sweeping), `FrequencySweeper`, `EventBus` |
|
|
158
|
+
| `storage/` & `recording/` | Thread-safe WAL SQLite `EventStore`, AMSTech Rich `StatsDashboard`, `IQRecorder`, `CsvExporter`, `JsonExporter` |
|
|
159
|
+
| `web/` | FastAPI REST + WebSocket (`Int16` Base64 frames) + zero-build AMSTech UI v1.5 frontend |
|
|
160
|
+
| `cli/` | Thin Typer CLI wrapping the engine and Web Studio |
|
|
161
|
+
|
|
162
|
+
---
|
|
163
|
+
|
|
164
|
+
## Development
|
|
165
|
+
|
|
166
|
+
```bash
|
|
167
|
+
pip install -e ".[dev,test]"
|
|
168
|
+
ruff check src tests
|
|
169
|
+
ruff format --check src tests
|
|
170
|
+
mypy --strict src
|
|
171
|
+
pytest
|
|
172
|
+
```
|
|
173
|
+
|
|
174
|
+
---
|
|
175
|
+
|
|
176
|
+
## License
|
|
177
|
+
|
|
178
|
+
Copyright (c) 2026 Alejandro Martín (AMSTech). Released under the [MIT License](LICENSE).
|
|
179
|
+
|
|
180
|
+
<p align="center">
|
|
181
|
+
<picture>
|
|
182
|
+
<source media="(prefers-color-scheme: dark)" srcset="docs/brand/seal-en-dark.svg">
|
|
183
|
+
<img src="docs/brand/seal-en.svg" alt="AMSTech — Built for me, shared with all" width="96">
|
|
184
|
+
</picture>
|
|
185
|
+
</p>
|
|
186
|
+
|
|
187
|
+
<p align="center">
|
|
188
|
+
<strong>An AMSTech project</strong> · Built for me, shared with all · <a href="https://amstech.dev">amstech.dev</a>
|
|
189
|
+
<br>
|
|
190
|
+
<a href="LICENSE">MIT</a> © 2026 Alejandro Martín (AMSTech) · <a href="CHANGELOG.md">Changelog</a>
|
|
191
|
+
</p>
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["setuptools>=77.0", "wheel"]
|
|
3
|
+
build-backend = "setuptools.build_meta"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "rtl-sdr-analyzer"
|
|
7
|
+
dynamic = ["version"]
|
|
8
|
+
description = "Real-time RF spectrum analyzer, signal detector, and wideband sweeper by AMSTech"
|
|
9
|
+
readme = "README.md"
|
|
10
|
+
license = "MIT"
|
|
11
|
+
license-files = ["LICENSE"]
|
|
12
|
+
requires-python = ">=3.11"
|
|
13
|
+
authors = [
|
|
14
|
+
{ name = "Alejandro Martín (AMSTech)", email = "info@amstech.dev" },
|
|
15
|
+
]
|
|
16
|
+
keywords = ["rtl-sdr", "spectrum-analyzer", "rf", "dsp", "sdr", "amstech"]
|
|
17
|
+
classifiers = [
|
|
18
|
+
"Development Status :: 4 - Beta",
|
|
19
|
+
"Intended Audience :: Science/Research",
|
|
20
|
+
"Programming Language :: Python :: 3",
|
|
21
|
+
"Programming Language :: Python :: 3.11",
|
|
22
|
+
"Programming Language :: Python :: 3.12",
|
|
23
|
+
"Programming Language :: Python :: 3.13",
|
|
24
|
+
"Operating System :: OS Independent",
|
|
25
|
+
"Environment :: Web Environment",
|
|
26
|
+
"Topic :: Communications :: Ham Radio",
|
|
27
|
+
"Topic :: Scientific/Engineering",
|
|
28
|
+
]
|
|
29
|
+
dependencies = [
|
|
30
|
+
"numpy>=2.0,<3.0",
|
|
31
|
+
"fastapi>=0.115,<1.0",
|
|
32
|
+
"uvicorn[standard]>=0.32,<1.0",
|
|
33
|
+
"pydantic>=2.0,<3.0",
|
|
34
|
+
"pyyaml>=6.0,<7.0",
|
|
35
|
+
"typer>=0.12,<1.0",
|
|
36
|
+
"rich>=13.0,<14.0",
|
|
37
|
+
"structlog>=24.0,<25.0",
|
|
38
|
+
]
|
|
39
|
+
|
|
40
|
+
[project.optional-dependencies]
|
|
41
|
+
dev = [
|
|
42
|
+
"ruff>=0.6,<1.0",
|
|
43
|
+
"mypy>=1.11,<2.0",
|
|
44
|
+
"types-PyYAML>=6.0,<7.0",
|
|
45
|
+
]
|
|
46
|
+
bundle = [
|
|
47
|
+
"pyinstaller>=6.10,<7.0",
|
|
48
|
+
]
|
|
49
|
+
test = [
|
|
50
|
+
"pytest>=8.0,<9.0",
|
|
51
|
+
"pytest-asyncio>=0.24,<1.0",
|
|
52
|
+
"pytest-cov>=5.0,<6.0",
|
|
53
|
+
"httpx>=0.27,<1.0",
|
|
54
|
+
]
|
|
55
|
+
|
|
56
|
+
[project.scripts]
|
|
57
|
+
rtl-sdr-analyzer = "rtl_sdr_analyzer.cli.app:app"
|
|
58
|
+
|
|
59
|
+
[project.urls]
|
|
60
|
+
Homepage = "https://github.com/msalexms/rtl-sdr-analyzer"
|
|
61
|
+
Repository = "https://github.com/msalexms/rtl-sdr-analyzer"
|
|
62
|
+
Issues = "https://github.com/msalexms/rtl-sdr-analyzer/issues"
|
|
63
|
+
|
|
64
|
+
[tool.setuptools.dynamic]
|
|
65
|
+
version = { attr = "rtl_sdr_analyzer.__version__" }
|
|
66
|
+
|
|
67
|
+
[tool.setuptools.packages.find]
|
|
68
|
+
where = ["src"]
|
|
69
|
+
|
|
70
|
+
[tool.setuptools.package-data]
|
|
71
|
+
rtl_sdr_analyzer = [
|
|
72
|
+
"py.typed",
|
|
73
|
+
"web/static/*",
|
|
74
|
+
"web/static/**/*",
|
|
75
|
+
"web/static/**/**/*",
|
|
76
|
+
]
|
|
77
|
+
|
|
78
|
+
[tool.ruff]
|
|
79
|
+
target-version = "py311"
|
|
80
|
+
line-length = 100
|
|
81
|
+
|
|
82
|
+
[tool.ruff.lint]
|
|
83
|
+
select = ["E", "F", "I", "N", "W", "UP", "B", "C4", "SIM"]
|
|
84
|
+
ignore = ["E501", "B008", "B904", "SIM115", "N818"]
|
|
85
|
+
|
|
86
|
+
[tool.ruff.format]
|
|
87
|
+
quote-style = "double"
|
|
88
|
+
indent-style = "space"
|
|
89
|
+
|
|
90
|
+
[tool.mypy]
|
|
91
|
+
python_version = "3.12"
|
|
92
|
+
strict = true
|
|
93
|
+
warn_return_any = false
|
|
94
|
+
warn_unused_ignores = false
|
|
95
|
+
ignore_missing_imports = true
|
|
96
|
+
disable_error_code = ["type-arg", "import-untyped", "unused-ignore"]
|
|
97
|
+
|
|
98
|
+
[tool.pytest.ini_options]
|
|
99
|
+
testpaths = ["tests"]
|
|
100
|
+
pythonpath = ["src"]
|
|
101
|
+
addopts = "--cov=rtl_sdr_analyzer --cov-report=term-missing --cov-fail-under=75"
|
|
102
|
+
asyncio_mode = "auto"
|
|
File without changes
|