Skip to main content

GPT Image

Create GUID Partition Table disk images on local disks. Written in pure Python gpt-image allows GPT disk images to be built on a local filesystem and exported to a destination device.

This is useful for creating a disk image on SD Cards or embedded devices.

Quick Start

import gpt_image, uuid

# create a new, 8 MB disk, size is in bytes
disk = gpt_image.disk.Disk("disk-image.raw")
disk.create(8 * 1024 * 1024)

# create a 2MB Linux partition named "partition1"
partition = gpt_image.partition.Partition("partition1", 2 * 1024 * 1024, Partition.LINUX_FILE_SYSTEM)

# add the partition to disk
disk.table.partitions.add(partition)
disk.write()

MIT License

Copyright (c) 2021 Scott Wysocki

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gpt-image-0.6.5.tar.gz (12.9 kB view details)

Uploaded Source

Built Distribution

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

gpt_image-0.6.5-py3-none-any.whl (11.1 kB view details)

Uploaded Python 3

File details

Details for the file gpt-image-0.6.5.tar.gz.

File metadata

  • Download URL: gpt-image-0.6.5.tar.gz
  • Upload date:
  • Size: 12.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.3 readme-renderer/35.0 requests/2.28.1 requests-toolbelt/0.9.1 urllib3/1.26.11 tqdm/4.64.0 importlib-metadata/4.12.0 keyring/23.7.0 rfc3986/2.0.0 colorama/0.4.5 CPython/3.9.13

File hashes

Hashes for gpt-image-0.6.5.tar.gz
Algorithm Hash digest
SHA256 b326c9040d37238191de9aca2220a8c79292a50ad31eb3f874e1db35d403b1ff
MD5 1b95c236b2b10920907e3dc1634cb9ee
BLAKE2b-256 21c38f835adcd0fec6faea2c3dc295e6e2cf9bf63af400cc8d61fad69f68e8fa

See more details on using hashes here.

File details

Details for the file gpt_image-0.6.5-py3-none-any.whl.

File metadata

  • Download URL: gpt_image-0.6.5-py3-none-any.whl
  • Upload date:
  • Size: 11.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.3 readme-renderer/35.0 requests/2.28.1 requests-toolbelt/0.9.1 urllib3/1.26.11 tqdm/4.64.0 importlib-metadata/4.12.0 keyring/23.7.0 rfc3986/2.0.0 colorama/0.4.5 CPython/3.9.13

File hashes

Hashes for gpt_image-0.6.5-py3-none-any.whl
Algorithm Hash digest
SHA256 b302b5fefaa927c22360e0f9fa1dfb0c8ddf07c9adeff3e58ed45bae6291e40f
MD5 20beaa51cc99341267633d658e2bc39d
BLAKE2b-256 d3e1b79853ffae5e831f2f1a3d03e25665b3e4833965d9e45a3e6ffe07a37875

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