OpenBTS节点管理器客户端
openbts的Python项目详细描述
openbts nodemanager的python客户机,
提供对openbts应用程序套件中几个组件的访问:
smqueue、sipauthserve,以及OpenBTS本身。
\
*Endaga的OpenBTS Fork(在"3edca32"上测试)
*Endaga的SMQueue Fork(在"bc292b2b2b2"上测试)
*Endaga的SIPAuthServe Fork(在"3afffcd7"上测试)
*Endaga的Nodemanager Fork(在"fae561611"上测试)
*python 2.7.7
<>。###安装
```外壳
$pip安装openbts
```
response.data['value']
101
12)
打印响应。代码
204
=sipauthserve_connection.get_subscribers()
print len(response.data)
78
\view tmsis entries
response=openbts_connection.tmsis()
print len(response)
\214
8901)
response=sipauthserve_connection.create_subscriber(*subscriber)
print response.code
200
`````
>请参阅"集成测试.py`
` gprs list`
*0.1.8-修复了由于openbts关闭而导致套接字处于错误状态时出现的zmqerror错误。改进了cli上的错误报告
*0.1.7-"get_load"处理以科学符号表示的gprs利用率百分比
*0.1.6-内部endaga项目的新版本
*0.1.5-添加"components.openbts.get_noise"
*0.1.4-内部endaga项目的新版本
*0.1.3-添加"components.openbts.get懔load"
*0.1.2-内部endaga项目所需的版本增量
*0.1.1-添加对tmis的支持
*0.1.0-次要版本!
*0.0.18-修复集成测试
*0.0.17-在zmq套接字上设置"rcvtime0"
*0.0.16-将"特使"添加到"setup.py"
*0.0.15-获取gprs信息(实验);在其他ipaddr和端口属性前面加上"openbts"前缀
*0.0.14-"获取号码"返回空列表,而不是如果找不到imsi的号码,则引发
*0.0.13-修复最新nm的"get_subscriber"和"create_subscriber"
*0.0.12-正确处理get/update/delete操作中的"caller_id"
*0.0.11-"get_subscribers"返回每个订阅服务器的"account_balance"信息
*0.0.10-添加对订阅服务器"帐户余额"的读取和更新操作
*0.0.9-防止"创建订阅服务器"添加重复的imsi
*0.0.8-添加"从数字中获取imsi"方法
*0.0.7-添加一些精确的订阅注册表方法并删除一些更一般的方法
*0.0.6-修复了分发清单
*0.0.5-pypi指向endaga fork
*0.0.4-扩展sipauthserve和sr表
*0.0.3-smqueue配置操作、openbts监视、sipauthserve配置和订户操作,所有组件的version命令
*0.0.2-openbts组件的配置读取和更新
*0.0.1-pypi的基本设置
[节点管理器源](https://github.com/rangenetworks/nodemanager)来自range
\testing
在安装所需模块后使用"nose"运行单元测试s:
`` shell
$pip install-r requirements.txt
$notests openbts--带coverage--cover package=openbts
```
我们在组件之间有很多类似的单元测试。
许多测试可以针对"openbts.core.basecomponent"编写,因为组件都继承自这个类。但最好单独检查"openbts.components"中每个类的功能。无论如何,要运行集成测试,需要在与测试脚本相同的机器上运行openbts实例。测试将修改实际的系统
参数,因此请谨慎运行。或者,更好的是,在未投入生产的系统上运行它。
``shell
$nosetests integration\u tests
$nosetests integration\u tests:sipauthserve
$nosetests integration\u tests:sipauthserve.test\u get所有用户
````
这:
```
[distutils]
index servers=
pypi
[pypi]
repository:https://pypi.python.org/pypi
username:yosemitebandit
password:mhm
``
然后运行:
`` shell
$git tag 0.0.1-m'openbts python v0.0.1'
$git push origin master--tags
$python setup.py sdist upload-r pypi
```
提供对openbts应用程序套件中几个组件的访问:
smqueue、sipauthserve,以及OpenBTS本身。
\
*Endaga的OpenBTS Fork(在"3edca32"上测试)
*Endaga的SMQueue Fork(在"bc292b2b2b2"上测试)
*Endaga的SIPAuthServe Fork(在"3afffcd7"上测试)
*Endaga的Nodemanager Fork(在"fae561611"上测试)
*python 2.7.7
<>。###安装
```外壳
$pip安装openbts
```
response.data['value']
101
12)
打印响应。代码
204
=sipauthserve_connection.get_subscribers()
print len(response.data)
78
\view tmsis entries
response=openbts_connection.tmsis()
print len(response)
\214
8901)
response=sipauthserve_connection.create_subscriber(*subscriber)
print response.code
200
`````
>请参阅"集成测试.py`
` gprs list`
*0.1.8-修复了由于openbts关闭而导致套接字处于错误状态时出现的zmqerror错误。改进了cli上的错误报告
*0.1.7-"get_load"处理以科学符号表示的gprs利用率百分比
*0.1.6-内部endaga项目的新版本
*0.1.5-添加"components.openbts.get_noise"
*0.1.4-内部endaga项目的新版本
*0.1.3-添加"components.openbts.get懔load"
*0.1.2-内部endaga项目所需的版本增量
*0.1.1-添加对tmis的支持
*0.1.0-次要版本!
*0.0.18-修复集成测试
*0.0.17-在zmq套接字上设置"rcvtime0"
*0.0.16-将"特使"添加到"setup.py"
*0.0.15-获取gprs信息(实验);在其他ipaddr和端口属性前面加上"openbts"前缀
*0.0.14-"获取号码"返回空列表,而不是如果找不到imsi的号码,则引发
*0.0.13-修复最新nm的"get_subscriber"和"create_subscriber"
*0.0.12-正确处理get/update/delete操作中的"caller_id"
*0.0.11-"get_subscribers"返回每个订阅服务器的"account_balance"信息
*0.0.10-添加对订阅服务器"帐户余额"的读取和更新操作
*0.0.9-防止"创建订阅服务器"添加重复的imsi
*0.0.8-添加"从数字中获取imsi"方法
*0.0.7-添加一些精确的订阅注册表方法并删除一些更一般的方法
*0.0.6-修复了分发清单
*0.0.5-pypi指向endaga fork
*0.0.4-扩展sipauthserve和sr表
*0.0.3-smqueue配置操作、openbts监视、sipauthserve配置和订户操作,所有组件的version命令
*0.0.2-openbts组件的配置读取和更新
*0.0.1-pypi的基本设置
[节点管理器源](https://github.com/rangenetworks/nodemanager)来自range
\testing
在安装所需模块后使用"nose"运行单元测试s:
`` shell
$pip install-r requirements.txt
$notests openbts--带coverage--cover package=openbts
```
我们在组件之间有很多类似的单元测试。
许多测试可以针对"openbts.core.basecomponent"编写,因为组件都继承自这个类。但最好单独检查"openbts.components"中每个类的功能。无论如何,要运行集成测试,需要在与测试脚本相同的机器上运行openbts实例。测试将修改实际的系统
参数,因此请谨慎运行。或者,更好的是,在未投入生产的系统上运行它。
``shell
$nosetests integration\u tests
$nosetests integration\u tests:sipauthserve
$nosetests integration\u tests:sipauthserve.test\u get所有用户
````
这:
```
[distutils]
index servers=
pypi
[pypi]
repository:https://pypi.python.org/pypi
username:yosemitebandit
password:mhm
``
然后运行:
`` shell
$git tag 0.0.1-m'openbts python v0.0.1'
$git push origin master--tags
$python setup.py sdist upload-r pypi
```