Read MBR and GPT partitions directly in python.
Project description
pyreadpartitions
Read MBR and GPT partitions directly in python.
Examples:
from pyreadpartitions import get_disk_partitions_info
with open('/dev/sda', 'rb') as fp:
info = get_disk_partitions_info(fp)
print(info.mbr)
print(info.gpt)
from pyreadpartitions import show_disk_partitions_info
with open('/dev/sda', 'rb') as fp:
show_disk_partitions_info(fp)
A console script is also available:
$ sudo cat /dev/sda | pyreadpartitions
or if you already have access to a file or directly to the disk:
# pyreadpartitions /dev/sda
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pyreadpartitions-1.1.1.tar.gz
(9.4 kB
view hashes)
Built Distribution
Close
Hashes for pyreadpartitions-1.1.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3169e872e14142c014f953052df3af20616227633ce1e5ac7946d4b1b4c04740 |
|
MD5 | 4e172aa1e79dc3321a9e7b6f6e372a5a |
|
BLAKE2b-256 | 486257d5f4ef596785878fd8c21901f7219455f71db8e7eab7ebf3f515257e7f |