pyreadpartitions 1.1.1

Last updated:

0 purchases

pyreadpartitions 1.1.1 Image
pyreadpartitions 1.1.1 Images
Add to Cart

Description:

pyreadpartitions 1.1.1

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

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Customer Reviews

There are no reviews.