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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pyreadpartitions-1.1.1.tar.gz.
File metadata
- Download URL: pyreadpartitions-1.1.1.tar.gz
- Upload date:
- Size: 9.4 kB
- Tags: Source
- Uploaded using 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
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4ccd8b16e8e3d0d53b6933eab19cc8f95bc8020003749a7fdf238170ec11e631
|
|
| MD5 |
0ef6ca03c8895d1f059ee131931c3052
|
|
| BLAKE2b-256 |
5f2fe2dcbdbf0f224c452956cf6f0af7d342b7c8fba3e97b9fbc904a91fa226c
|
File details
Details for the file pyreadpartitions-1.1.1-py2.py3-none-any.whl.
File metadata
- Download URL: pyreadpartitions-1.1.1-py2.py3-none-any.whl
- Upload date:
- Size: 8.9 kB
- Tags: Python 2, Python 3
- Uploaded using 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
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3169e872e14142c014f953052df3af20616227633ce1e5ac7946d4b1b4c04740
|
|
| MD5 |
4e172aa1e79dc3321a9e7b6f6e372a5a
|
|
| BLAKE2b-256 |
486257d5f4ef596785878fd8c21901f7219455f71db8e7eab7ebf3f515257e7f
|