File: network.py

package info (click to toggle)
python-asusrouter 1.21.3-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 1,856 kB
  • sloc: python: 20,497; makefile: 3
file content (18 lines) | stat: -rw-r--r-- 384 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
"""Network tools endpoint module."""

from __future__ import annotations

from typing import Any

from asusrouter.modules.data import AsusData
from asusrouter.tools.readers import read_json_content as read

__all__ = ["read", "process"]


def process(data: dict[str, Any]) -> dict[AsusData, Any]:
    """Process network tools data."""

    return {
        AsusData.PING: data,
    }