Skip to main content

Python Badge Framework License Level Editor

gmdbuilder

A type-safe general-purpose Python framework for Geometry Dash level editing and scripting.

gmdbuilder lets you:

  • Read & write GD levels
  • Autoscan to protect against bugs (property types/ranges, spawn limit, no empty triggers, etc.)
  • Work directly with triggers, groups, and objects - and choose your own abstractions
  • Use pre-built systems and templates to accelerate development
  • Know exactly what's happening in your scripts

gmdbuilder is developed in collaboration with HDanke, the creator of gmdkit (a dependency of this framework) and his unofficial GD Editor Docs.

Documentation (WIP)

(No overengineered language was made in the making of this project)

Why Python?

Python fits surprisingly well as a language for GD scripting:

  • Exceptionally good at building/verifying dictionaries (which all GD objects are)
  • Operator overloading for counters and other special logic
  • Any programming paradigm that you want is well supported
  • Reliable type system with good debugger/type-checker tooling
  • Huge package ecosystem

Installation

Install the latest release from PyPI:

pip install gmdbuilder

Install the latest development version from GitHub:

pip install git+https://github.com/LXtreme/gmdbuilder.git

Getting Started

from gmdbuilder import level

# From .gmd file, supports full object editing/deleting
level.from_file("example.gmd")

# From WSLiveEditor, only supports adidng objects
level.from_live_editor()

obj_list = level.objects # mutations are validated

# Object properties are in the form { "a<key number>": value }
repr(obj_list[1])

from gmdbuilder import obj_prop   # property key str Literals
from gmdbuilder import enum       # enum values for object properties
from gmdbuilder import obj_id     # object ID int Literals

# Similar to 'next' button in the editor.
a = level.new.group()

from gmdbuilder import is_obj_type, is_obj_id, from_object_string, new_obj
import gmdbuilder.object_types as td # TypedDict dictionaries

ppt = obj_prop.Trigger

for obj in obj_list:
    # is_obj_id and is_obj_type are both TypeGuards. 
    # Allows editing generic object lists to be done fully type-safe
    if is_obj_id(obj, obj_id.Trigger.MOVE):
        obj[obj_prop.GROUPS] = { a }
        obj[ppt.Move.EASING] = obj_enum.Easing.NONE
    if is_obj_type(obj, td.MoveType):
        obj[ppt.Move.USE_SMALL_STEP] = True


filter = {
    obj_prop.ID: obj_id.Trigger.COUNT
    obj_prop.GROUPS: { 15 }
}
obj_list.delete_where(filter)
obj_list.delete_where(lambda obj: obj[ObjProp.ID] == 1)


# CountType is a typed_dict, allowing per-field static type checking
# Translates to { a1: 1611, a2: 50, a3: 45 }
object = from_object_string("1,1611,2,50,3,45;", obj_type=td.CountType)
object[ppt.Count.ACTIVATE_GROUP] = True
object[ppt.Count.TARGET_ID] = a
object["a2"] = 50 # also validated and provides type info

move = new_obj(obj_id.Trigger.MOVE)   # casts to MoveType typed_dict automatically
instant_count = new_obj(1611)         # casts to InstantCountType typed_dict

obj_list.append(object)
obj_list.extend([move, instant_count])

# Export object edits, deletions and additions
# Added objects recieve the tag_group
level.export_to_file(file_path="example_updated.gmd")
level.export_to_live_editor()

Metadata

Release files for gmdbuilder 0.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for gmdbuilder 0.2.1
File Size Uploaded Provenance Actions
gmdbuilder-0.2.1.tar.gz 48.9 kB With provenance Details for gmdbuilder-0.2.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for gmdbuilder 0.2.1
File Interpreter ABI Platform Actions
gmdbuilder-0.2.1-py3-none-any.whl Python 3 none any Details for gmdbuilder-0.2.1-py3-none-any.whl

Total release size: 98.7 kB

Release files / gmdbuilder-0.2.1.tar.gz

Download URL gmdbuilder-0.2.1.tar.gz
Size 48.9 kB
Tags Source
SHA-256 checksum
How to use checksums
d055e958a9ae294cd6d9b82feb3be26a39b11c945c0ac363dd11fe16756328cb
BLAKE2b-256 checksum
How to use checksums
1b4ebb957d1a19523e4818e87fd9f96b962dd80595f0545d1345f1cff22dbb6c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

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 Mar 10, 2026.

Transparency log

Release files / gmdbuilder-0.2.1-py3-none-any.whl

Download URL gmdbuilder-0.2.1-py3-none-any.whl
Size 49.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4691f1dbacc9ebf35365165a5b9cc5eaf8c1bf5278c604d640749bba0d1e71ad
BLAKE2b-256 checksum
How to use checksums
2786e765d650da5c21a513f38e4cca29731faadf116be064c8f78ff2fcd1fae7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

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 Mar 10, 2026.

Transparency log

Security for gmdbuilder 0.2.1

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.

Select from 2 files

Attestation for gmdbuilder-0.2.1.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 Mar 10, 2026.

Transparency log

A 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.

Release history Release notifications | RSS feed

This release

0.2.1 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page