Skip to main content

Aruba Networks AirWave API 客户端。

项目描述

Airwaveapiclient 是 Aruba Networks AirWave 用户的实用工具。该模块连接到 AirWave 并获取接入点列表、详细信息、客户端等信息。

https://secure.travis-ci.org/mtoshi/airwaveapiclient.svg?branch=master https://coveralls.io/repos/mtoshi/airwaveapiclient/badge.svg?branch=master&service=github 最新版本 文件状态

要求

  • Python2.7、3.5、3.6、3.7、PyPy。

安装

  • PyPI 或 Github

    $ pip install airwaveapiclient
    
    or
    
    $ git clone https://github.com/mtoshi/airwaveapiclient
    $ cd airwaveapiclient
    $ sudo python setup.py install

使用示例

  • 文档:阅读文档
  • 示例代码:Github
  • 登录

    >>> airwave = AirWaveAPIClient(username='admin',
    ...                            password='*****',
    ...                            url='https://192.168.1.1')
    >>> airwave.login()
  • 获取接入点列表

    >>> res = airwave.ap_list()
    >>> res.status_code
    200
    >>> res.text # xml output
    '<?xml version="1.0" encoding="utf-8" ...'
  • 获取接入点详细信息

    >>> ap_id = 1
    >>> res = airwave.ap_detail(ap_id)
    >>> res.status_code
    200
    >>> res.text # xml output
    '<?xml version="1.0" encoding="utf-8" ...'
  • 登出

    >>> airwave.logout()

也可以看看

下载文件

下载适用于您平台的文件。如果您不确定要选择哪个,请了解有关安装包的更多信息。

源分布

airwaveapiclient-0.1.11.tar.gz (13.1 kB 查看哈希

已上传 source