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
Metadata
Release files for pyreadpartitions 1.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pyreadpartitions-1.1.1.tar.gz | 9.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pyreadpartitions-1.1.1-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details |
Total release size: 18.3 kB
Release files / pyreadpartitions-1.1.1.tar.gz
| Download URL | pyreadpartitions-1.1.1.tar.gz |
|---|---|
| Size | 9.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4ccd8b16e8e3d0d53b6933eab19cc8f95bc8020003749a7fdf238170ec11e631
|
|
BLAKE2b-256 checksum How to use checksums |
5f2fe2dcbdbf0f224c452956cf6f0af7d342b7c8fba3e97b9fbc904a91fa226c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.6.1 requests/2.25.1 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.8.6
|
Release files / pyreadpartitions-1.1.1-py2.py3-none-any.whl
| Download URL | pyreadpartitions-1.1.1-py2.py3-none-any.whl |
|---|---|
| Size | 8.9 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
3169e872e14142c014f953052df3af20616227633ce1e5ac7946d4b1b4c04740
|
|
BLAKE2b-256 checksum How to use checksums |
486257d5f4ef596785878fd8c21901f7219455f71db8e7eab7ebf3f515257e7f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.6.1 requests/2.25.1 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.8.6
|