{"categories":[{"label":"Python Modules","url":"https://skillfed.io/packages/category/software-development-libraries-python-modules/16"}],"enrichment":{"capability":"Retrieves structured information about block devices on a system by wrapping lsblk and reading from /sys/block, /sys/devices, and /proc, with support for filtering and iSCSI metadata.","skillfed_tags":["linux-only","abandoned","copyleft"],"use_cases":["Inventory block devices in system administration scripts without parsing lsblk text output.","Filter and discover iSCSI-attached storage targets by IP address and port number.","Collect block device usage statistics and metadata for monitoring or reporting.","Enumerate mounted partitions and their parent devices in automated provisioning workflows.","Build storage device catalogs on systems with older lsblk versions lacking JSON support."],"what_it_does":"blkinfo is a Python library that gathers information about block devices (disks, partitions, etc.) on a Linux system. It wraps the lsblk command-line tool and supplements it by reading directly from /sys/block, /sys/devices, and /proc to collect device metadata, usage statistics, and iSCSI target details. The library was originally created to provide JSON output on older Red Hat Enterprise Linux and CentOS systems where lsblk lacked that capability.\n\nYou instantiate a BlkDiskInfo object and call get_disks() to retrieve all available block devices as structured data, optionally passing filters to narrow results by device name, size, transport type, mount status, or other attributes. The main use case is programmatic inventory of storage devices in system administration or infrastructure automation scripts.","worth_installing":"No. The package is abandoned (no updates since 2021-10-06, last commit 2023-08-06) and carries a copyleft GPLv3 license that restricts use in proprietary software. Modern Linux systems have lsblk with JSON output built-in. Install only if locked to an old Red Hat/CentOS system with no other option and your project is open-source."},"id":"blkinfo","links":{"html":"https://skillfed.io/packages/blkinfo","md":"https://skillfed.io/packages/blkinfo.md","pypi":"https://pypi.org/project/blkinfo/"},"maintenance":{"status":"abandoned"},"meta":{"latest_release":"2021-10-06","license_spdx":null,"license_treatment":"copyleft","name":"blkinfo","python_support":"unspecified","summary":"blkinfo is a python package to list information about all available or the specified block devices."},"popularity":{"monthly_downloads":175425,"position":10265,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"0.2.0"}
