Pranav Jerry ba2425f008
initial implementation of iwd api
iwd.py is used to communicate with iwd via d-bus
2021-06-27 14:25:36 +05:30

30 lines
500 B
Python

#!/usr/bin/env python3
"""Manage wifi adapter via iwd D-Bus api"""
class IWD:
"""Manage iwd via dbus"""
def __init__(self):
pass
def get_devices(self):
"""
returns list of device names as str
example: ["wlan0", "wlan1"]
"""
def get_adapters(self):
"""
returns list of adapters
example: ["phy0","phy1"]
"""
class Device:
"""control devices with iwd"""
def __init__(self, name: str):
pass