partitiontypes 1.0.1

Creator: railscoder56

Last updated:

Add to Cart

Description:

partitiontypes 1.0.1

Description
Provides values to identify the partition type within a master boot record.
Installation
pip install partitiontypes
Usage
From command line:
python -m partitiontypes [--value VALUE] [--update]



Option
Short
Type
Default
Description




--value
-v
String
-
The id to be investigated as one byte hex (hex values need to be uppercase)


--update
-u
Flag
-
Updates the current list of partition ids



Programmatically:
from partitiontypes.PartitionTypes import PartitionTypes

p = PartitionTypes()

result = p.getIds("07")

# Result:
# [
# PartitionId(id=07, description= OS/2 IFS (e.g., HPFS)),
# PartitionId(id=07, description= Windows NT NTFS),
# PartitionId(id=07, description= exFAT),
# PartitionId(id=07, description= Advanced Unix),
# PartitionId(id=07, description= QNX2.x pre-1988)
# ]

Example
The package includes a list of IDs per default. If you want to have the newest version use the following command:
python -m partitiontypes --update
################################################################################

Partition Types by 5f0
Provides values to identify the partition type within a master boot record

Current working directory: /path/to/partitiontypes

Datetime: 01/01/1970 16:17:18

################################################################################

Update successful!
Number of IDs: 273

################################################################################

Execution Time: 0.583953 sec

If you want to ask for a partition type:
python -m partitiontypes -v 07
################################################################################

Partition Types by 5f0
Provides values to identify the partition type within a master boot record

Current working directory: /path/to/partitiontypes

Datetime: 01/01/1970 16:17:18

################################################################################


Candidates for 07:

---> ID: 07 Type: OS/2 IFS (e.g., HPFS)
---> ID: 07 Type: Windows NT NTFS
---> ID: 07 Type: exFAT
---> ID: 07 Type: Advanced Unix
---> ID: 07 Type: QNX2.x pre-1988 (see below under IDs 4d-4f)

################################################################################

Execution Time: 0.002954 sec


Credits
The IDs are based on the list of Prof. Dr. Brouwer. Thank you for your permission to use it.
You can find the original here.
License
MIT

License

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

Customer Reviews

There are no reviews.