Skip to main content

Provides values to identify the partition type within a master boot record

Project description

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

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

partitiontypes-1.0.1.tar.gz (9.3 kB view details)

Uploaded Source

Built Distribution

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

partitiontypes-1.0.1-py3-none-any.whl (10.1 kB view details)

Uploaded Python 3

File details

Details for the file partitiontypes-1.0.1.tar.gz.

File metadata

  • Download URL: partitiontypes-1.0.1.tar.gz
  • Upload date:
  • Size: 9.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.6

File hashes

Hashes for partitiontypes-1.0.1.tar.gz
Algorithm Hash digest
SHA256 f650eff31c6b8a9e491cfdf8a8c5bfb3480cf9f6a9fa7360a31ec5cff96083a1
MD5 4abe8a381d6f7bcc4448e3825a40ee75
BLAKE2b-256 b4daf9027f906f9a7585091b3595db9d56e48af1a65096a104e3ab9e87cd9bba

See more details on using hashes here.

File details

Details for the file partitiontypes-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: partitiontypes-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 10.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.6

File hashes

Hashes for partitiontypes-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 328dce90eecb5c3bdf3b1278ad1e2ceebe9d5be7e5537b2a35b4db4fc2b81498
MD5 cca26ea883b8d7a0b4e04da3bef8ae29
BLAKE2b-256 e6be4a286e90423c169d715a723ce212832626e3ed454a3c5a6536aca6b40a8c

See more details on using hashes here.

Supported by

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