blob: 25be78222e3f6fa9ed24f3783329aba49b3f1967 [file] [log] [blame]
Kata8ee6bb2013-04-05 17:06:30 +02001Building/installation:
2sudo python setup.py install
3If you prefer to have it cleanly removable, install checkinstall and run
4sudo checkinstall python setup.py install
Maxe732c2c2017-11-23 16:42:59 +01005Alternatively, just run 'pip install --user -e ./' or 'pip3 install --user -e ./'
6depending on your python version.
Kata8ee6bb2013-04-05 17:06:30 +02007
8Use
Maxe732c2c2017-11-23 16:42:59 +01009There are currently following scripts in this package:
Kata8ee6bb2013-04-05 17:06:30 +020010osmodumpdoc.py - dump documentation (the VTY's "show online-help").
11osmotestconfig.py - test that apps start/write with example configs
12osmotestvty.py - test vty operations (currently, tests very few)
Maxe732c2c2017-11-23 16:42:59 +010013soap.py - implementation of SOAP <-> Ctrl proxy implemented on top of Twisted
Kata8ee6bb2013-04-05 17:06:30 +020014
15Each of these scripts imports a project-specific osmoappdesc.py,
16which provides information about the available apps, configs, vty ports, etc.
17
18Run the scripts with osmoappdesc.py in the current directory (preferred)
19or with -p <the directory containing osmoappdesc.py>.
20Remember that osmoappdesc.py may contain relative paths.
21
22Example:
23After install osmodumpdoc for openbsc's apps can be run by:
24cd <your_source_dir>/openbsc/openbsc && osmodumpdoc.py
25
26Libraries:
27osmopy/obscvty.py - connect to a vty, run commands on it, see the result
28osmopy/osmoutil.py - code that's shared between the scripts
Maxe732c2c2017-11-23 16:42:59 +010029osmopy/osmo_ipa.py - generic implementation of IPA and Ctrl protocols in python
30twisted_ipa.py - implementation of IPA and Ctrl protocols on top of Twisted framework
Kata8ee6bb2013-04-05 17:06:30 +020031
32obscvty.py may be of general use. osmoutil.py probably isn't.