linuxfabrik-lib


Namelinuxfabrik-lib JSON
Version 2024060401 PyPI version JSON
download
home_pageNone
SummaryPython libraries used in various Linuxfabrik projects, including the 'Linuxfabrik Monitoring Plugins' project.
upload_time2024-06-04 06:49:08
maintainerNone
docs_urlNone
authorNone
requires_python>=3.6
licenseThis is free and unencumbered software released into the public domain. Anyone is free to copy, modify, publish, use, compile, sell, or distribute this software, either in source code form or as a compiled binary, for any purpose, commercial or non-commercial, and by any means. In jurisdictions that recognize copyright laws, the author or authors of this software dedicate any and all copyright interest in the software to the public domain. We make this dedication for the benefit of the public at large and to the detriment of our heirs and successors. We intend this dedication to be an overt act of relinquishment in perpetuity of all present and future rights to this software under copyright law. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. For more information, please refer to <http://unlicense.org/>
keywords lib libs monitoring monitoring plugins icinga nagios
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Linuxfabrik's Python Libraries

These Python libraries are used in various projects of Linuxfabrik, including the [Linuxfabrik Monitoring Plugins project](https://github.com/Linuxfabrik/monitoring-plugins).


## 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.

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "linuxfabrik-lib",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.6",
    "maintainer_email": null,
    "keywords": "lib, libs, monitoring, monitoring plugins, icinga, nagios",
    "author": null,
    "author_email": "\"Linuxfabrik GmbH, Zurich, Switzerland\" <info@linuxfabrik.ch>",
    "download_url": "https://files.pythonhosted.org/packages/78/3f/3c7a88eb31fb4893f2f806ca64981fb8379aa8f0515e55b43f1720f81c3a/linuxfabrik_lib-2024060401.tar.gz",
    "platform": null,
    "description": "# Linuxfabrik's Python Libraries\n\nThese Python libraries are used in various projects of Linuxfabrik, including the [Linuxfabrik Monitoring Plugins project](https://github.com/Linuxfabrik/monitoring-plugins).\n\n\n## Installation\n\n`pip install linuxfabrik-lib`\n\n\n## Documentation\n\nFor example by browsing http://localhost:8080/ after starting `pydoc -p 8080`.\n\n\n## List of libraries\n\n\n* args.py:  \nExtends argparse by new input argument data types on demand.\n\n* base.py:  \nProvides very common every-day functions.\n\n* cache.py:  \nSimple 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`.\n\n* db_mysql.py:  \nLibrary for accessing MySQL/MariaDB servers.\n\n* db_sqlite.py:  \nLibrary for accessing SQLite databases.\n\n* disk.py:  \nOffers file and disk related functions, like getting a list of partitions, grepping a file, etc.\n\n* distro.py:  \nProvides information about the Linux distribution it runs on, such as a reliable machine-readable distro ID and \"os_family\" (known from Ansible).\n\n* dmidecode.py:  \nLibrary for parsing information from dmidecode. Have a look at `man dmidecode` for details about dmidecode.\n\n* endoflifedate.py:  \nThis 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.\n\n* feedparser.py:  \nParse Atom and RSS feeds in Python.\n\n* globals.py:  \nThis 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`.\n\n* grassfish.py:  \nProvides functions using the Grassfish REST-API.\n\n* huawei.py:  \nThis library collects some Huawei related functions that are needed by Huawei check plugins.\n\n* human.py:  \nFunctions to convert raw numbers, times etc. to a human readable representation (and sometimes back).\n\n* icinga.py:  \nThis module tries to make accessing the Icinga2 API easier.\n\n* infomaniak.py:  \nProvides functions using the Infomanik REST-API.\n\n* jitsi.py:  \nThis library collects some Jitsi related functions that are needed by more than one Jitsi plugin.\n\n* librenms.py:  \nThis library collects some LibreNMS related functions that are needed by LibreNMS check plugins.\n\n* net.py:  \nProvides network related functions and variables.\n\n* nodebb.py:  \nThis library collects some NodeBB related functions that are needed by more than one NodeBB plugin.\n\n* powershell.py:  \nThis library collects some Microsoft PowerShell related functions.\n\n* psutil.py:  \nWrapper library for functions from psutil.\n\n* redfish.py:  \nThis library parses data returned from the Redfish API.\n\n* rocket.py:  \nThis library collects some Rocket.Chat related functions that are needed by more than one Rocket.Chat plugin.\n\n* shell.py:  \nCommunicates with the Shell.\n\n* smb.py:  \nProvides functions to establish native SMB connections.\n\n* test.py:  \nProvides test functions for unit tests.\n\n* time.py:  \nProvides datetime functions.\n\n* txt.py:  \nA collection of text functions.\n\n* url.py:  \nGet for example HTML or JSON from an URL.\n\n* veeam.py:  \nThis library interacts with the Veeam Enterprise Manager API.\n\n* version.py:  \nProvides functions for handling software versions.\n\n* wildfly.py:  \nThis library collects some WildFly/JBoss related functions that are needed by more than one WildFly/JBoss plugin.\n\n* winrm.py:  \nThis library collects some Microsoft WinRM related functions.\n",
    "bugtrack_url": null,
    "license": "This is free and unencumbered software released into the public domain.  Anyone is free to copy, modify, publish, use, compile, sell, or distribute this software, either in source code form or as a compiled binary, for any purpose, commercial or non-commercial, and by any means.  In jurisdictions that recognize copyright laws, the author or authors of this software dedicate any and all copyright interest in the software to the public domain. We make this dedication for the benefit of the public at large and to the detriment of our heirs and successors. We intend this dedication to be an overt act of relinquishment in perpetuity of all present and future rights to this software under copyright law.  THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.  For more information, please refer to <http://unlicense.org/>",
    "summary": "Python libraries used in various Linuxfabrik projects, including the 'Linuxfabrik Monitoring Plugins' project.",
    "version": "2024060401",
    "project_urls": {
        "Documentation": "https://github.com/Linuxfabrik/lib/blob/master/README.md",
        "Download": "https://github.com/Linuxfabrik/lib/releases",
        "Homepage": "https://github.com/Linuxfabrik/lib",
        "Source": "https://github.com/Linuxfabrik/lib",
        "Tracker": "https://github.com/Linuxfabrik/lib/issues"
    },
    "split_keywords": [
        "lib",
        " libs",
        " monitoring",
        " monitoring plugins",
        " icinga",
        " nagios"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "d88ffab6acbb20f87de53a2bde4e37892b45a49620e1d18c159a788fdae4c605",
                "md5": "328ddcdb1293a0d294f612c5fc25c300",
                "sha256": "c838785916404995d4b25e920e5d6a9b01ff272cc95ef48be775f96550493384"
            },
            "downloads": -1,
            "filename": "linuxfabrik_lib-2024060401-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "328ddcdb1293a0d294f612c5fc25c300",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.6",
            "size": 82739,
            "upload_time": "2024-06-04T06:49:04",
            "upload_time_iso_8601": "2024-06-04T06:49:04.935469Z",
            "url": "https://files.pythonhosted.org/packages/d8/8f/fab6acbb20f87de53a2bde4e37892b45a49620e1d18c159a788fdae4c605/linuxfabrik_lib-2024060401-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "783f3c7a88eb31fb4893f2f806ca64981fb8379aa8f0515e55b43f1720f81c3a",
                "md5": "95ee2128331b40a16a9310b573b7a86c",
                "sha256": "f8dcbc864587eae5137edfce784cddefd719bb298c39089d4b516533613cf631"
            },
            "downloads": -1,
            "filename": "linuxfabrik_lib-2024060401.tar.gz",
            "has_sig": false,
            "md5_digest": "95ee2128331b40a16a9310b573b7a86c",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.6",
            "size": 67050,
            "upload_time": "2024-06-04T06:49:08",
            "upload_time_iso_8601": "2024-06-04T06:49:08.613380Z",
            "url": "https://files.pythonhosted.org/packages/78/3f/3c7a88eb31fb4893f2f806ca64981fb8379aa8f0515e55b43f1720f81c3a/linuxfabrik_lib-2024060401.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-06-04 06:49:08",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "Linuxfabrik",
    "github_project": "lib",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "requirements": [],
    "lcname": "linuxfabrik-lib"
}
        
Elapsed time: 1.12872s