# Livestatus (Object Oriented)
Helps to query MK Livestatus and return results as objects
## Installation
pip install livestatus-objects
## Example
>>> from livestatus_objects import LivestatusServer, Host >>> s = LivestatusServer(localhost, 50000) >>> host = Host.get(s, 'www01.example.net') >>> host infra-www01.hostsvpn.sysnove.net >>> host.services [Fork rate, Linux diskstat, Linux procstat, Load, Memory, NTP Clock Offset, Partitions, Postfix mail queue, Postfix stats, Ssh, Swap, Swap paging rate, Total procs, Uptime, Zombie procs] >>> host.last_state 'UP' >>> host.services[3] Load >>> host.services[3].last_state 'OK' >>> host.services[3].perf_data 'load1=0.000;5.000;20.000;0; load5=0.010;5.000;15.000;0; load15=0.050;5.000;10.000;0;'
## Licence
This code is under [WTFPL](https://en.wikipedia.org/wiki/WTFPL). Just do what the fuck you want with it.
Metadata
Release files for livestatus-objects 0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| livestatus-objects-0.4.tar.gz | 2.9 kB | Without provenance | Details for livestatus-objects-0.4.tar.gz |
Release files / livestatus-objects-0.4.tar.gz
| Download URL | livestatus-objects-0.4.tar.gz |
|---|---|
| Size | 2.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d6f50232e475058d9326e7c5d4c7c4fedbed2eb8045ba3de058ecf7046f014de
|
|
BLAKE2b-256 checksum How to use checksums |
5557f313702ef213ee42f4d2aa6f40b11618dfc151cf8fb72a5dd2ff2094d421
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for livestatus-objects 0.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.