PyUdisk


NamePyUdisk JSON
Version 2.0.0 PyPI version JSON
download
home_pageNone
SummaryExtensive disk monitor for Linux OS
upload_time2025-01-05 16:42:42
maintainerNone
docs_urlNone
authorNone
requires_python>=3.10
licenseMIT License Copyright (c) 2024 TheVickypedia Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 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 OR COPYRIGHT HOLDERS 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.
keywords disk-monitor pyudisk
VCS
bugtrack_url
requirements click psutil PyArchitecture pydantic pydantic-settings
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # PyUdisk

PyUdisk is a python module to generate S.M.A.R.T metrics for all drives/partitions on a host machine.

![Python][label-pyversion]

![Platform][label-platform]

[![pypi][label-actions-pypi]][gha_pypi]

[![Pypi][label-pypi]][pypi]
[![Pypi-format][label-pypi-format]][pypi-files]
[![Pypi-status][label-pypi-status]][pypi]

### Installation

**Recommendations**

- Install `python` [3.10] or [3.11]
- Use a dedicated [virtual environment]

For monitoring and reporting, use
```shell
pip install PyUdisk[standard]
```

For basic functionality, use
```shell
pip install PyUdisk
```

### Usage

**IDE**
```python
import pyudisk

if __name__ == '__main__':
    for metric in pyudisk.smart_metrics():
        print(metric)
```

**CLI**
```shell
pyudisk start
```

> Use `pyudisk --help` for usage instructions.

## Environment Variables

<details>
<summary><strong>Sourcing environment variables from an env file</strong></summary>

> _By default, `PyUdisk` will look for a `.env` file in the current working directory._
</details>

- **SMART_LIB**: Path to the S.M.A.R.T CLI library. Uses `udisksctl` for Linux and `smartctl` for macOS/Windows.
- **DISK_LIB**: Path to disk util library. Uses `lsblk` for Linux, `diskutil` for macOS, and `pwsh` for Windows.
- **METRICS**: List of metrics to monitor. Default: `[]`
- **GMAIL_USER**: Gmail username to authenticate SMTP library.
- **GMAIL_PASS**: Gmail password to authenticate SMTP library.
- **RECIPIENT**: Email recipient for email notifications.
- **PHONE**: Phone number for SMS notifications.
- **NTFY_URL**: URL for Ntfy notifications.
- **NTFY_TOPIC**: Topic for Ntfy notifications.
- **NTFY_USERNAME**: Username for Ntfy notifications.
- **NTFY_PASSWORD**: Password for Ntfy notifications.
- **TELEGRAM_BOT_TOKEN**: Telegram bot token for Telegram notifications.
- **TELEGRAM_CHAT_ID**: Telegram chat ID for Telegram notifications.
- **TELEGRAM_THREAD_ID**: Telegram thread ID for Telegram notifications.
- **DISK_REPORT**: Boolean flag to send disk report via email.
- **REPORT_DIR**: Directory to save disk reports. Default: `report`
- **REPORT_FILE**: Filename for disk reports. Default format: `disk_report_%m-%d-%Y_%I:%M_%p.html`

## [Release Notes][release-notes]
**Requirement**
```shell
python -m pip install gitverse
```

**Usage**
```shell
gitverse-release reverse -f release_notes.rst -t 'Release Notes'
```

## Linting
`pre-commit` will ensure linting

**Requirement**
```shell
python -m pip install pre-commit
```

**Usage**
```shell
pre-commit run --all-files
```

## Pypi Package
[![pypi-module][label-pypi-package]][pypi-repo]

[https://pypi.org/project/PyUdisk/][pypi]

## License & copyright

&copy; Vignesh Rao

Licensed under the [MIT License][license]

[license]: https://github.com/thevickypedia/PyUdisk/blob/master/LICENSE
[label-pypi-package]: https://img.shields.io/badge/Pypi%20Package-PyUdisk-blue?style=for-the-badge&logo=Python
[label-pyversion]: https://img.shields.io/badge/python-3.10%20%7C%203.11-blue
[label-platform]: https://img.shields.io/badge/Platform-Linux|macOS|Windows-1f425f.svg
[label-actions-pypi]: https://github.com/thevickypedia/PyUdisk/actions/workflows/main.yaml/badge.svg
[label-pypi]: https://img.shields.io/pypi/v/PyUdisk
[label-pypi-format]: https://img.shields.io/pypi/format/PyUdisk
[label-pypi-status]: https://img.shields.io/pypi/status/PyUdisk
[gha_pypi]: https://github.com/thevickypedia/PyUdisk/actions/workflows/main.yaml
[pypi]: https://pypi.org/project/PyUdisk
[pypi-files]: https://pypi.org/project/PyUdisk/#files
[pypi-repo]: https://packaging.python.org/tutorials/packaging-projects/
[release-notes]: https://github.com/thevickypedia/PyUdisk/blob/master/release_notes.rst

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "PyUdisk",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.10",
    "maintainer_email": null,
    "keywords": "disk-monitor, PyUdisk",
    "author": null,
    "author_email": "Vignesh Rao <svignesh1793@gmail.com>",
    "download_url": null,
    "platform": null,
    "description": "# PyUdisk\n\nPyUdisk is a python module to generate S.M.A.R.T metrics for all drives/partitions on a host machine.\n\n![Python][label-pyversion]\n\n![Platform][label-platform]\n\n[![pypi][label-actions-pypi]][gha_pypi]\n\n[![Pypi][label-pypi]][pypi]\n[![Pypi-format][label-pypi-format]][pypi-files]\n[![Pypi-status][label-pypi-status]][pypi]\n\n### Installation\n\n**Recommendations**\n\n- Install `python` [3.10] or [3.11]\n- Use a dedicated [virtual environment]\n\nFor monitoring and reporting, use\n```shell\npip install PyUdisk[standard]\n```\n\nFor basic functionality, use\n```shell\npip install PyUdisk\n```\n\n### Usage\n\n**IDE**\n```python\nimport pyudisk\n\nif __name__ == '__main__':\n    for metric in pyudisk.smart_metrics():\n        print(metric)\n```\n\n**CLI**\n```shell\npyudisk start\n```\n\n> Use `pyudisk --help` for usage instructions.\n\n## Environment Variables\n\n<details>\n<summary><strong>Sourcing environment variables from an env file</strong></summary>\n\n> _By default, `PyUdisk` will look for a `.env` file in the current working directory._\n</details>\n\n- **SMART_LIB**: Path to the S.M.A.R.T CLI library. Uses `udisksctl` for Linux and `smartctl` for macOS/Windows.\n- **DISK_LIB**: Path to disk util library. Uses `lsblk` for Linux, `diskutil` for macOS, and `pwsh` for Windows.\n- **METRICS**: List of metrics to monitor. Default: `[]`\n- **GMAIL_USER**: Gmail username to authenticate SMTP library.\n- **GMAIL_PASS**: Gmail password to authenticate SMTP library.\n- **RECIPIENT**: Email recipient for email notifications.\n- **PHONE**: Phone number for SMS notifications.\n- **NTFY_URL**: URL for Ntfy notifications.\n- **NTFY_TOPIC**: Topic for Ntfy notifications.\n- **NTFY_USERNAME**: Username for Ntfy notifications.\n- **NTFY_PASSWORD**: Password for Ntfy notifications.\n- **TELEGRAM_BOT_TOKEN**: Telegram bot token for Telegram notifications.\n- **TELEGRAM_CHAT_ID**: Telegram chat ID for Telegram notifications.\n- **TELEGRAM_THREAD_ID**: Telegram thread ID for Telegram notifications.\n- **DISK_REPORT**: Boolean flag to send disk report via email.\n- **REPORT_DIR**: Directory to save disk reports. Default: `report`\n- **REPORT_FILE**: Filename for disk reports. Default format: `disk_report_%m-%d-%Y_%I:%M_%p.html`\n\n## [Release Notes][release-notes]\n**Requirement**\n```shell\npython -m pip install gitverse\n```\n\n**Usage**\n```shell\ngitverse-release reverse -f release_notes.rst -t 'Release Notes'\n```\n\n## Linting\n`pre-commit` will ensure linting\n\n**Requirement**\n```shell\npython -m pip install pre-commit\n```\n\n**Usage**\n```shell\npre-commit run --all-files\n```\n\n## Pypi Package\n[![pypi-module][label-pypi-package]][pypi-repo]\n\n[https://pypi.org/project/PyUdisk/][pypi]\n\n## License & copyright\n\n&copy; Vignesh Rao\n\nLicensed under the [MIT License][license]\n\n[license]: https://github.com/thevickypedia/PyUdisk/blob/master/LICENSE\n[label-pypi-package]: https://img.shields.io/badge/Pypi%20Package-PyUdisk-blue?style=for-the-badge&logo=Python\n[label-pyversion]: https://img.shields.io/badge/python-3.10%20%7C%203.11-blue\n[label-platform]: https://img.shields.io/badge/Platform-Linux|macOS|Windows-1f425f.svg\n[label-actions-pypi]: https://github.com/thevickypedia/PyUdisk/actions/workflows/main.yaml/badge.svg\n[label-pypi]: https://img.shields.io/pypi/v/PyUdisk\n[label-pypi-format]: https://img.shields.io/pypi/format/PyUdisk\n[label-pypi-status]: https://img.shields.io/pypi/status/PyUdisk\n[gha_pypi]: https://github.com/thevickypedia/PyUdisk/actions/workflows/main.yaml\n[pypi]: https://pypi.org/project/PyUdisk\n[pypi-files]: https://pypi.org/project/PyUdisk/#files\n[pypi-repo]: https://packaging.python.org/tutorials/packaging-projects/\n[release-notes]: https://github.com/thevickypedia/PyUdisk/blob/master/release_notes.rst\n",
    "bugtrack_url": null,
    "license": "MIT License  Copyright (c) 2024 TheVickypedia  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:  The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.  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 OR COPYRIGHT HOLDERS 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. ",
    "summary": "Extensive disk monitor for Linux OS",
    "version": "2.0.0",
    "project_urls": {
        "Homepage": "https://github.com/thevickypedia/PyUdisk",
        "Source": "https://github.com/thevickypedia/PyUdisk"
    },
    "split_keywords": [
        "disk-monitor",
        " pyudisk"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "2f824227ded91da76eea4220e56a01f2e213510209e3cb62f56e97fcd2d3e599",
                "md5": "5e7697d0583bfd91f76f2cb1d580a490",
                "sha256": "38f1fa03a3312f07fdb0b4dd8e2e14b91c1fc58437341823ee3c46ce507f4ada"
            },
            "downloads": -1,
            "filename": "PyUdisk-2.0.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "5e7697d0583bfd91f76f2cb1d580a490",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.10",
            "size": 25004,
            "upload_time": "2025-01-05T16:42:42",
            "upload_time_iso_8601": "2025-01-05T16:42:42.292194Z",
            "url": "https://files.pythonhosted.org/packages/2f/82/4227ded91da76eea4220e56a01f2e213510209e3cb62f56e97fcd2d3e599/PyUdisk-2.0.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-01-05 16:42:42",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "thevickypedia",
    "github_project": "PyUdisk",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "requirements": [
        {
            "name": "click",
            "specs": [
                [
                    "==",
                    "8.1.*"
                ]
            ]
        },
        {
            "name": "psutil",
            "specs": [
                [
                    "==",
                    "6.0.*"
                ]
            ]
        },
        {
            "name": "PyArchitecture",
            "specs": [
                [
                    ">=",
                    "0.3.0"
                ]
            ]
        },
        {
            "name": "pydantic",
            "specs": [
                [
                    "==",
                    "2.*"
                ]
            ]
        },
        {
            "name": "pydantic-settings",
            "specs": [
                [
                    "==",
                    "2.*"
                ]
            ]
        }
    ],
    "lcname": "pyudisk"
}
        
Elapsed time: 0.64475s