3c6bc7ac02
The operator picker depended on a workspace file outside the repo
(<workspace>/samples/mcc-mnc-list.json), so a fresh clone showed
'Operator list not loaded'.
- bundle the list in the package (pysim_simple_server/data/
mcc-mnc-list.json, byte-identical to pbakondy/mcc-mnc-list master
commit 97bc1652, MIT) with license + provenance in
mcc-mnc-list.LICENSE; declared as package data so wheels carry it
- _default_mcc_mnc_list() now points at the bundled file;
--mcc-mnc-list still overrides it
- hide MVNO entries from the simulator picker (search + random): they
do not operate their own network. Detected via the `bands` field
('MVNO', 'Satellite MVNO', ...); the full list stays loaded so the
Network state panel still resolves operator names
- tests/test_mcc_mnc.py: bundled file ships/parses, marker variants,
search/random filters on fixtures and on the real list
- README/AGENTS updated; version trio 2.7.7; sw cache simple-v210
37 lines
1.8 KiB
Plaintext
37 lines
1.8 KiB
Plaintext
mcc-mnc-list.json — worldwide MCC/MNC operator list (incl. MVNO entries)
|
|
|
|
Source: https://github.com/pbakondy/mcc-mnc-list
|
|
mcc-mnc-list.json, commit 97bc165252bb9bb5b37946898ec556c29a38feb8
|
|
(2023-04-04); retrieved 2026-09-20
|
|
md5 e63af9bc0beb651575a457d53c2e6fdd
|
|
Data: derived from the Wikipedia article "Mobile country code"
|
|
(https://en.wikipedia.org/wiki/Mobile_country_code)
|
|
|
|
The Network simulation operator picker hides entries whose `bands` field
|
|
marks them as MVNO (they do not operate their own radio network); the full
|
|
list is kept so the Network state panel can still resolve operator names.
|
|
|
|
--- upstream license -------------------------------------------------------
|
|
|
|
The MIT License (MIT)
|
|
|
|
Copyright (c) 2016 Peter Bakondy
|
|
|
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
of this software and associated documentation files (the "Software"), to deal
|
|
in the Software without restriction, including without limitation the rights
|
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
copies of the Software, and to permit persons to whom the Software is
|
|
furnished to do so, subject to the following conditions:
|
|
|
|
The above copyright notice and this permission notice shall be included in all
|
|
copies or substantial portions of the Software.
|
|
|
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
SOFTWARE.
|