Skip to main content

OpenWrt ubus RPC API library

Project description

openwrt-ubus-rpc is a Python module implementing an interface to the OpenWrt ubus RPC API. It allows a user to perform Remote Procedure Calls (RPC) to the OpenWrt micro bus architecture (ubus).

Documentation for the OpenWrt ubus RPC API is available at https://openwrt.org/docs/techref/ubus and https://openwrt.org/docs/guide-developer/ubus.

This package has been developed to be used with https://home-assistant.io/ but it can be used in other contexts.

Disclaimer

openwrt-ubus-rpc was created for my own use, and for others who may wish to experiment with personal Internet of Things systems.

This software is provided without warranty, according to the GNU Public Licence version 2, and should therefore not be used where it may endanger life, financial stakes or cause discomfort and inconvenience to others.

Usage

` from openwrt.ubus import Ubus _ubus = Ubus(host="http://openwrt_host/ubus", user="openwrt_user", password="openwrt_password") _ubus.connect() _ubus.get_hostapd() _ubus.get_hostapd_clients("hostapd.wlan0") `

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-ubus-rpc-0.0.3.tar.gz (11.2 kB view details)

Uploaded Source

File details

Details for the file openwrt-ubus-rpc-0.0.3.tar.gz.

File metadata

  • Download URL: openwrt-ubus-rpc-0.0.3.tar.gz
  • Upload date:
  • Size: 11.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: Python-urllib/2.7

File hashes

Hashes for openwrt-ubus-rpc-0.0.3.tar.gz
Algorithm Hash digest
SHA256 bef5f7df1444b5dd18adb7b96a785e4ffb66634ef5acd30ac7ce3aec19779dba
MD5 d5f7133242e08cf70f3e6a44b12e3a03
BLAKE2b-256 5c2785013cb06e35757ed4f13e9af73945b802a17a1c57872a3934c387d2e7a4

See more details on using hashes here.

Provenance

Supported by

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