Module for interacting with OpenWRT Luci RPC interface
Project description
================
openwrt-luci-rpc
================
.. image:: https://img.shields.io/pypi/v/openwrt_luci_rpc.svg
:target: https://pypi.python.org/pypi/openwrt_luci_rpc
.. image:: https://img.shields.io/travis/fbradyirl/openwrt-luci-rpc.svg
:target: https://travis-ci.org/fbradyirl/openwrt-luci-rpc/
.. image:: https://readthedocs.org/projects/openwrt-luci-rpc/badge/?version=latest
:target: https://openwrt-luci-rpc.readthedocs.io/en/latest/?badge=latest
:alt: Documentation Status
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
~~~~~~~
.. code:: bash
pip install openwrt-luci-rpc
Use
~~~
.. code:: python
from openwrt_luci_rpc import OpenWrtRpc
router = OpenWrtRpc('http://192.168.1.1', 'root', 'mypassword')
result = self.router.get_all_connected_devices(only_reachable=True)
for device in result:
mac = device['macaddress']
name = device['hostname']
Development
~~~~~~~~~~~
See `contributing guide`_.
.. _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.8 (2019-02-20)
------------------
* Fix travis deploy repo, once more.
0.4.9 (2019-02-20)
------------------
* Fix README formatting for docs.
0.4.10 (2019-02-20)
------------------
* Fix links to github repo
0.4.11 (2019-02-20)
------------------
* Updated usage in README.
Project details
Release history Release notifications | RSS feed
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.11.tar.gz
(10.9 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file openwrt-luci-rpc-0.4.11.tar.gz.
File metadata
- Download URL: openwrt-luci-rpc-0.4.11.tar.gz
- Upload date:
- Size: 10.9 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5c675eb8d60054f61c88414e3024794ec0099159c5807467979015db1b065807
|
|
| MD5 |
5ef713d9c4cd44386eaef7d3b6335a78
|
|
| BLAKE2b-256 |
38159939055c0b7fd24539b07c400a5cbf3b8e31352c35e2c09bcb23e9f2fc44
|
File details
Details for the file openwrt_luci_rpc-0.4.11-py2.py3-none-any.whl.
File metadata
- Download URL: openwrt_luci_rpc-0.4.11-py2.py3-none-any.whl
- Upload date:
- Size: 7.0 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c6ac557f517fc06a62ab0eb319fd5b0bb5063b549fcb0c54ab8a93dd254bd55c
|
|
| MD5 |
b452c50b5a09963fb2b87a87ba23843b
|
|
| BLAKE2b-256 |
5429071a6064b6c08bd652e139e11efd797a0ff7481537cca58553f20917e519
|