gdformat
Parser and builder for the Geometry Dash 2.2 server protocol. It covers the wire objects, the full endpoint response envelopes and typed parsing of every endpoint's form parameters, so a server never handles the raw format itself.
Only the latest game version is supported. Python 3.14, managed with uv, no runtime dependencies.
Layout
| Module | Contents |
|---|---|
gdformat.objects |
Frozen dataclasses for each wire object (Level, User, Comment, Song, ...) with serialise_* / parse_* functions. |
gdformat.responses |
One serialise_* per endpoint response, producing the exact string to send, plus parse_level_download for reading an official level download. |
gdformat.requests |
One *Request dataclass and parse_* per endpoint, taking the POST form. verify_* helpers check the client integrity values. |
gdformat.crypto |
XOR keys and salts, gjp2, chk generation, response hashes, level passwords, leaderboard seeds. |
gdformat.encoding |
Base64, XOR, level string compression, URL quoting, relative age strings. |
gdformat.enums |
Every discriminant the protocol uses. |
gdformat.codes |
Documented numeric response codes. |
Usage
from gdformat import is_error, objects, requests, responses
def download_level(form: dict[str, str]) -> str:
request = requests.parse_download_level(form)
if is_error(request):
return "-1"
level = objects.Level(...) # Built from your storage.
return responses.serialise_level_download(level, songs)
Failures are values: every parser returns T | ParseError, narrowed with
is_error / is_success. Nothing in the library raises.
Metadata
Release files for gdformat 0.2.2
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 |
|---|---|---|---|---|
| gdformat-0.2.2.tar.gz | 30.3 kB | Without provenance | Details for gdformat-0.2.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| gdformat-0.2.2-py3-none-any.whl | Python 3 | none | any | Details for gdformat-0.2.2-py3-none-any.whl |
Total release size: 77.7 kB
Release files / gdformat-0.2.2.tar.gz
| Download URL | gdformat-0.2.2.tar.gz |
|---|---|
| Size | 30.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
75b303d8751c914111c3c62ea518ac38a608fb160e3c4b0fca9d9a484f085d25
|
|
BLAKE2b-256 checksum How to use checksums |
b98d74cd95011c5c032a937e5867895cfa8c9a91ed6dcc9a7c9e3749c6dd007a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.12.15 {"installer":{"name":"uv","version":"0.12.15","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / gdformat-0.2.2-py3-none-any.whl
| Download URL | gdformat-0.2.2-py3-none-any.whl |
|---|---|
| Size | 47.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4475020050929be2f9343f1ef5a55e2dd23b99a5c36bcc9cba279c6dc87683c6
|
|
BLAKE2b-256 checksum How to use checksums |
b45a432283c29c5a3d2e03cffdd34e985e7d6f0fabd19668ef0308e080f06801
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.12.15 {"installer":{"name":"uv","version":"0.12.15","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Security for gdformat 0.2.2
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
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.