File: README.md

package info (click to toggle)
webmin-xmlrpc 0.0.2-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 84 kB
  • sloc: python: 57; makefile: 7
file content (26 lines) | stat: -rw-r--r-- 556 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# Webmin XML-RPC python package

This package provides a python interface to interact with the Webmin XML-RPC API.

## Usage

```python
from aiohttp.client import ClientSession
from webmin_xmlrpc.client import WebminInstance
from yarl import URL

base_url = URL.build(host="example.com", scheme="https")
session = Clientsession(base_url)
instance = WebminInstance(session)

async def get_data():
    data = await instance.update()
```

## Exposed data

- Load (1m, 5m, 15m)
- Network interfaces
- Memory information
- Uptime
- Local disk space information