Skip to main content

Module for interacting with OpenWRT Luci RPC interface

Project description


| | Status |
| ------------- |:-------------:|
| pypi | [![openwrt_luci_rpc](https://img.shields.io/pypi/v/openwrt_luci_rpc.svg)](https://travis-ci.org/fbradyirl/openwrt-luci-rpc/) |
| travis | [![Build Status](https://img.shields.io/travis/fbradyirl/openwrt-luci-rpc.svg)](https://travis-ci.org/fbradyirl/openwrt-luci-rpc/) |
| docs | [![Build Status](https://readthedocs.org/projects/openwrt-luci-rpc/badge/?version=latest)](https://openwrt-luci-rpc.readthedocs.io/en/latest/?badge=latest) |


Python3 module for interacting with the OpenWRT Luci RPC interface


* Free software: Apache Software License 2.0
* Documentation: https://openwrt-luci-rpc.readthedocs.io.


Features
--------

* Allows you to use the Luci RPC interface to fetch connected devices on your OpenWrt based router.
* Supports 17.X & 18.X or newer releases of OpenWrt.


Usage
--------

You will first need to install the package `luci-mod-rpc` on your OpenWrt router.

```
opkg update
opkg install luci-mod-rpc
```

Once that is done, you can use this module to interact with the RPC interface.


### Install

```bash
pip install openwrt-luci-rpc
```

### Use

```python
from openwrt_luci_rpc import OpenWrtRpc

router = OpenWrtRpc('http://192.168.1.1', 'root', 'mypassword')

```

### Development

See [contributing guide](CONTRIBUTING.rst).


=======
History
=======

0.1.0 (2019-02-19)
------------------

* Initial release. Not working. Do not use.

0.2.0 (2019-02-19)
------------------

* Initial release. Not working. Do not use.

0.3.0 (2019-02-19)
------------------

* First working release on PyPI.

0.4.7 (2019-02-20)
------------------

* Fix travis deploy repo, once more.


Project details


Download files

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

Source Distribution

openwrt-luci-rpc-0.4.7.tar.gz (10.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

openwrt_luci_rpc-0.4.7-py2.py3-none-any.whl (6.8 kB view details)

Uploaded Python 2Python 3

File details

Details for the file openwrt-luci-rpc-0.4.7.tar.gz.

File metadata

  • Download URL: openwrt-luci-rpc-0.4.7.tar.gz
  • Upload date:
  • Size: 10.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.3

File hashes

Hashes for openwrt-luci-rpc-0.4.7.tar.gz
Algorithm Hash digest
SHA256 840e50134ddeeab65f03eaac6a18afd4e215aab9a48620b089f815e562c5ae8b
MD5 1a5da4c30ffebcbe5f731dbf568f5c78
BLAKE2b-256 ed02a84ad45adccc58a321260ef04e5340484ec2ae402779d5bd2fbe88a0f4d8

See more details on using hashes here.

File details

Details for the file openwrt_luci_rpc-0.4.7-py2.py3-none-any.whl.

File metadata

  • Download URL: openwrt_luci_rpc-0.4.7-py2.py3-none-any.whl
  • Upload date:
  • Size: 6.8 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.3

File hashes

Hashes for openwrt_luci_rpc-0.4.7-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 96d682a4c3543ebfe76b15a416fcf742297593a7e65b31ef4e262b6e10922a07
MD5 fd4029a8d7f0b024cb157fddf088b32b
BLAKE2b-256 beb0cbb720722c015f06cbd62d3e3976303d23dd78c700c5977d8adc8088b209

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page