A python module to manipulate and create MBRs.
Project description
# PyMBR
PyMBR is a simple module that allows the user to parse, manipulate or create MBR/Bootsectors easily.
- Parse full MBR dump
- Parse parts of the MBR such as the partition table.
- Change the bootcode or the artition table values.
- Compose the changes made into a a new MBR binary string.
## Installation
``` sh
python setup.py install
```
## Sample usage - Creating a simple MBR
``` python
import pymbr
mbr = pymbr.MBR()
mbr.bootcode = pymbr.Bootcode.ZOIDBERG
mbr.partitionTable = pymbr.PartitionTable.parse('
PyMBR is a simple module that allows the user to parse, manipulate or create MBR/Bootsectors easily.
- Parse full MBR dump
- Parse parts of the MBR such as the partition table.
- Change the bootcode or the artition table values.
- Compose the changes made into a a new MBR binary string.
## Installation
``` sh
python setup.py install
```
## Sample usage - Creating a simple MBR
``` python
import pymbr
mbr = pymbr.MBR()
mbr.bootcode = pymbr.Bootcode.ZOIDBERG
mbr.partitionTable = pymbr.PartitionTable.parse('
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pymbr-1.0.2.tar.gz
(4.6 kB
view hashes)