Skip to main content
Yanked

This release has been yanked by its maintainers, and will be ignored by installers, except when explicitly specified.
Consider using release 8.2.0 instead.

Linuxfabrik's Python Libraries

These Python libraries are used in various projects of Linuxfabrik, including the Linuxfabrik Monitoring Plugins project.

Installation

pip install linuxfabrik-lib

Documentation

For example by browsing http://localhost:8080/ after starting pydoc -p 8080.

List of libraries

  • args.py:
    Extends argparse by new input argument data types on demand.

  • base.py:
    Provides very common every-day functions.

  • cache.py:
    Simple Cache in the form of a Key-Value Store (KVS) like Redis, based on SQLite, optionally supporting expiration of keys. No detailed error handling here. If the cache does not work, we (currently) don't report the reason and simply return False.

  • db_mysql.py:
    Library for accessing MySQL/MariaDB servers.

  • db_sqlite.py:
    Library for accessing SQLite databases.

  • disk.py:
    Offers file and disk related functions, like getting a list of partitions, grepping a file, etc.

  • distro.py:
    Provides information about the Linux distribution it runs on, such as a reliable machine-readable distro ID and "os_family" (known from Ansible).

  • dmidecode.py:
    Library for parsing information from dmidecode. Have a look at man dmidecode for details about dmidecode.

  • endoflifedate.py:
    This library stores information from https://endoflife.date/api/ for offline usage and therefore needs to be updated periodically when version checks don't have access to the Internet.

  • feedparser.py:
    Parse Atom and RSS feeds in Python.

  • globals.py:
    This library defines the global plugin states, based on the POSIX spec of returning a positive value and just like in monitoring-plugins/plugins-scripts/utils.sh.in, except that we do not make use of STATE_DEPENDENT.

  • grassfish.py:
    Provides functions using the Grassfish REST-API.

  • huawei.py:
    This library collects some Huawei related functions that are needed by Huawei check plugins.

  • human.py:
    Functions to convert raw numbers, times etc. to a human readable representation (and sometimes back).

  • icinga.py:
    This module tries to make accessing the Icinga2 API easier.

  • infomaniak.py:
    Provides functions using the Infomanik REST-API.

  • jitsi.py:
    This library collects some Jitsi related functions that are needed by more than one Jitsi plugin.

  • librenms.py:
    This library collects some LibreNMS related functions that are needed by LibreNMS check plugins.

  • net.py:
    Provides network related functions and variables.

  • nodebb.py:
    This library collects some NodeBB related functions that are needed by more than one NodeBB plugin.

  • powershell.py:
    This library collects some Microsoft PowerShell related functions.

  • psutil.py:
    Wrapper library for functions from psutil.

  • redfish.py:
    This library parses data returned from the Redfish API.

  • rocket.py:
    This library collects some Rocket.Chat related functions that are needed by more than one Rocket.Chat plugin.

  • shell.py:
    Communicates with the Shell.

  • smb.py:
    Provides functions to establish native SMB connections.

  • test.py:
    Provides test functions for unit tests.

  • time.py:
    Provides datetime functions.

  • txt.py:
    A collection of text functions.

  • url.py:
    Get for example HTML or JSON from an URL.

  • veeam.py:
    This library interacts with the Veeam Enterprise Manager API.

  • version.py:
    Provides functions for handling software versions.

  • wildfly.py:
    This library collects some WildFly/JBoss related functions that are needed by more than one WildFly/JBoss plugin.

  • winrm.py:
    This library collects some Microsoft WinRM related functions.

Metadata

Release files for linuxfabrik-lib 2024060401

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for linuxfabrik-lib 2024060401
File Size Uploaded
linuxfabrik_lib-2024060401.tar.gz 67.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for linuxfabrik-lib 2024060401
File Interpreter ABI Platform
linuxfabrik_lib-2024060401-py3-none-any.whl Python 3 none any Details

Total release size: 149.8 kB

Release files / linuxfabrik_lib-2024060401.tar.gz

Download URL linuxfabrik_lib-2024060401.tar.gz
Size 67.0 kB
Tags Source
SHA-256 checksum
How to use checksums
f8dcbc864587eae5137edfce784cddefd719bb298c39089d4b516533613cf631
BLAKE2b-256 checksum
How to use checksums
783f3c7a88eb31fb4893f2f806ca64981fb8379aa8f0515e55b43f1720f81c3a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.0 CPython/3.12.2

Release files / linuxfabrik_lib-2024060401-py3-none-any.whl

Download URL linuxfabrik_lib-2024060401-py3-none-any.whl
Size 82.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c838785916404995d4b25e920e5d6a9b01ff272cc95ef48be775f96550493384
BLAKE2b-256 checksum
How to use checksums
d88ffab6acbb20f87de53a2bde4e37892b45a49620e1d18c159a788fdae4c605
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.0 CPython/3.12.2
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page