- Notifications
You must be signed in to change notification settings - Fork0
A python tool to program SIMs / USIMs / ISIMs. Mirror ofhttps://gitea.osmocom.org/sim-card/pysim
License
bg4akv/pysim
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
This repository contains Python programs that can be usedto read, program (write) and browse certain fields/parameters on so-called programmableSIM/USIM cards.
Such SIM/USIM cards are special cards, which - unlike those issued byregular commercial operators - come with the kind of keys that allow youto write the files/fields that normally only an operator can program.
This is useful particularly if you are running your own cellularnetwork, and want to issue your own SIM/USIM cards for that network.
Please visit theofficial homepage for usage instructions, manual and examples. The user manual can also be built locally from this source code bycd docs && make html latexpdf
for HTML and PDF format, respectively.
You can clone from the official Osmocom git repository using
git clone https://gitea.osmocom.org/sim-card/pysim.git
There is a web interface athttps://gitea.osmocom.org/sim-card/pysim.
Please install the following dependencies:
- pyscard
- pyserial
- pytlv
- cmd2 >= 1.3.0 but < 2.0.0
- jsonpath-ng
- construct >= 2.9.51
- bidict
- gsm0338
- pyyaml >= 5.1
- termcolor
- colorlog
Example for Debian:
sudo apt-get install --no-install-recommends \pcscd libpcsclite-dev \python3 \python3-setuptools \python3-pyscard \python3-pippip3 install --user -r requirements.txt
After installing all dependencies, the pySim applicationspySim-read.py
,pySim-prog.py
andpySim-shell.py
may be started directly from the cloned repository.
Archlinux users may install the packagepython-pysim-git
from theArch User Repository (AUR).The most convenient way is the use of anAUR Helper,e.g.yay orpacaur.The following example shows the installation with
yay
.
# Installyay -Sy python-pysim-git# Uninstallsudo pacman -Rs python-pysim-git
There is no separate mailing list for this project. However,discussions related to pysim-prog are happening on theopenbsc@lists.osmocom.org mailing list, please seehttps://lists.osmocom.org/mailman/listinfo/openbsc for subscriptionoptions and the list archive.
Please observe theOsmocom Mailing ListRuleswhen posting.
Our coding standards are described athttps://osmocom.org/projects/cellular-infrastructure/wiki/Coding_standards
We are using a gerrit-based patch review process explained athttps://osmocom.org/projects/cellular-infrastructure/wiki/Gerrit
The pySim user manual can be built from this very source code by meansof sphinx (with sphinxcontrib-napoleon and sphinx-argparse). See theMakefile in the 'docs' directory.
A pre-rendered HTML user manual of the current pySim 'git master' isavailable fromhttps://downloads.osmocom.org/docs/latest/pysim/ anda downloadable PDF version is published athttps://downloads.osmocom.org/docs/latest/osmopysim-usermanual.pdf.
A slightly dated video presentation about pySim-shell can be found athttps://media.ccc.de/v/osmodevcall-20210409-laforge-pysim-shell.
While you will find a lot of online resources still describing the use ofpySim-prog.py and pySim-read.py, those tools are considered legacy bynow and have by far been superseded by the much more capablepySim-shell. We strongly encourage users to adopt pySim-shell, unlessthey have very specific requirements like batch programming of largequantities of cards, which is about the only remaining use case for thelegacy tools.
About
A python tool to program SIMs / USIMs / ISIMs. Mirror ofhttps://gitea.osmocom.org/sim-card/pysim
Resources
License
Stars
Watchers
Forks
Releases
Packages0
Languages
- Python99.1%
- Shell0.9%