Skip to main content

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

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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pyreadpartitions-1.1.1-py2.py3-none-any.whl (8.9 kB view details)

Uploaded Python 2Python 3

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

Hashes for pyreadpartitions-1.1.1.tar.gz
Algorithm Hash digest
SHA256 4ccd8b16e8e3d0d53b6933eab19cc8f95bc8020003749a7fdf238170ec11e631
MD5 0ef6ca03c8895d1f059ee131931c3052
BLAKE2b-256 5f2fe2dcbdbf0f224c452956cf6f0af7d342b7c8fba3e97b9fbc904a91fa226c

See more details on using hashes here.

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

Hashes for pyreadpartitions-1.1.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 3169e872e14142c014f953052df3af20616227633ce1e5ac7946d4b1b4c04740
MD5 4e172aa1e79dc3321a9e7b6f6e372a5a
BLAKE2b-256 486257d5f4ef596785878fd8c21901f7219455f71db8e7eab7ebf3f515257e7f

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.1.1 This release

2 files

1.1.0

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page