GMD Toolkit
Python toolkit for modifying & creating Geometry Dash plist files, including gmd & gmdl (GDShare level & level list export) and the encoded dat format (GD savefiles).
Installation
Install the latest release from PyPI:
pip install gmdkit
Install the latest development version from GitHub:
pip install git+https://github.com/UHDanke/gmdkit.git
Clone and install in editable mode:
git clone https://github.com/UHDanke/gmdkit.git
cd gmdkit
pip install -e .
Basic Usage
Importing, modifying a level and saving it:
# import level
from gmdkit import Level
# import object
from gmdkit import Object
# import property mappings
from gmdkit.mappings import obj_prop
# import object functions
import gmdkit.functions.object as obj_func
# open file
level = Level.from_file("example.gmd")
# get inner level properties
start = level.start
# get level objects as an ObjectList()
# object lists subclass list() so they can use all list methods alongside the ones defined by ListClass
# level.objects WILL throw an error if the level lacks an object string,
# or if you passed load = False to Level.from_file(), which skips loading objects
# LevelSave by default does not load the objects of levels
# so for any level you want to edit the objects of you must call level.load() first
obj_list = level.objects
# filter by condition
after_origin = obj_list.where(lambda obj: obj.get(obj_prop.X, 0) > 0)
# apply functions, kwargs are filtered for each called function
# ex: obj_func.fix_lighter has 'replacement' as a key argument
after_origin.apply(obj_func.clean_duplicate_groups, obj_func.fix_lighter, replacement=0)
# create new object
new_obj = Object.default(1)
# set properties of object
# objects subclass dict() so they can use all dict methods alongside the ones defined by DictClass
new_obj.update(
{
obj_prop.X: 100,
obj_prop.Y: 200,
obj_prop.SCALE_X: 2,
obj_prop.SCALE_Y: 2
}
)
# append object to the level's object list
# can also be done directly to level.objects or level['k4'].objects (which level.objects references)
# lvl_prop.level.OBJECT_STRING also maps to 'k4'
obj_list.append(new_obj)
# export level
level.to_file("example.gmd")
Documentation (WIP)
You can find the work-in-progress documentation at:
Metadata
Release files for gmdkit 0.7.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| gmdkit-0.7.0.tar.gz | 8.8 MB | With provenance | Details for gmdkit-0.7.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| gmdkit-0.7.0-py3-none-any.whl | Python 3 | none | any | Details for gmdkit-0.7.0-py3-none-any.whl |
Total release size: 9.0 MB
Release files / gmdkit-0.7.0.tar.gz
| Download URL | gmdkit-0.7.0.tar.gz |
|---|---|
| Size | 8.8 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c5aa19e299ac89691dce8d3d89180000a48bf39cb2b5a0dd2c212a7691e4916a
|
|
BLAKE2b-256 checksum How to use checksums |
797be548beb98c38275ec56a65a360abd403610aec689011016bc77e46d472dc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 29, 2026.
Transparency logRelease files / gmdkit-0.7.0-py3-none-any.whl
| Download URL | gmdkit-0.7.0-py3-none-any.whl |
|---|---|
| Size | 206.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
fcf2ec2e64a2e6b5afdb0f0749178e93e0aeeb467ab7aa8a781e63a262f365a0
|
|
BLAKE2b-256 checksum How to use checksums |
46262ea1abb364c8f95acb578805d4191f9b2cd8f0ad9303d6bb2604eed52bb6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 29, 2026.
Transparency logSecurity for gmdkit 0.7.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for gmdkit-0.7.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 29, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.