Skip to main content
Donate to the Python Software Foundation or Purchase a PyCharm License to Benefit the PSF! Donate Now

Portal tools

Project description

# txportal

txportal 是一个基于Python/twisted开发的 wlan portal 协议处理模块, 支持cmccv1,cmccv2,huaweiv1,huaweiv2协议。

## 安装

pip install txportal -r requirements.txt

## AC 模拟设备

### tpsim 工具

- 参数说明


usage: tpsim [-h] [-ph PORTAL_HOST] [-pl PORTAL_LISTEN] [-v VENDOR]
[-e SECRET] [-p PORT] [-d] [-M] [-W] [-f FORK]

optional arguments:

-h, --help show this help message and exit
-ph PORTAL_HOST, --portal_host PORTAL_HOST
portal ip addr
-pl PORTAL_LISTEN, --portal_listen PORTAL_LISTEN
portal ip addr
-v VENDOR, --vendor VENDOR
portal protoal version:
cmccv1,cmccv2,huaweiv1,huaweiv2
-e SECRET, --secret SECRET
portal share secret
-p PORT, --port PORT ac port, default 2000
-d, --debug debug option
-M, --master run master
-W, --worker run worker
-f FORK, --fork FORK worker fork num


- 运行模拟进程启动4个 worker 子进程处理消息

$ tpsim -M -d -f 4

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
txportal-0.0.6.macosx-10.11-intel.tar.gz (37.1 kB) Copy SHA256 hash SHA256 Dumb Binary any
txportal-0.0.6-py2-none-any.whl (27.5 kB) Copy SHA256 hash SHA256 Wheel 2.7

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page