gdDocumentation0.8.0

API reference

GD

Entry to the standard features of a command-line program: files, data, async, time, and more.

Properties

async : GD.async

Entry for async work: waiting, concurrency, racing, timeouts, and cancellation. spawn starts a main-thread coroutine; CPU work belongs in each standard module's _async entry points.

log : GD.log

Entry for ordered I/O of one line at a time with a consistent level, time, and destination. flush waits for earlier output.

net : GD.net

Network entry for TCP and TLS streams, listeners, UDP packets, name resolution, and address checks. TLS verifies the certificate chain and server name by default; waiting operations suspend only their caller.

mail : GD.mail

Parse mail addresses, dates, and headers, and submit messages over SMTP. STARTTLS upgrades the existing connection without falling back to plaintext. MIME helpers are under GD.mail.mime.

http : GD.http

Entry for HTTP requests plus URL, query, and media-type handling. fetch suspends only its caller; fetch_async returns a Signal for composition.

web : GD.web

Entry for building websites and Web APIs, with routes, static files, gdhtml templates, sessions, CSRF, JWT, rate limiting, and input validation.

file : GD.file

Whole-file operations and streaming file I/O suspend only their caller. This entry also provides path operations and file-format readers; *_async returns Signals for concurrent starts.

collection : GD.collection

Reshape Arrays and Dictionaries and create heaps, queues, and caches. Awaitable operations use CPU workers or the runtime ready queue; callable work cooperates with other tasks without requiring SceneTree frames.

data : GD.data

Data conversion for bytes, binary codecs, hashes, key derivation, and in-memory CSV, INI, TOML, YAML, JSON, XML, and related formats. Invalid input and settings return failures.

id : GD.id

Entry for generating and checking UUIDs and time-ordered ULIDs. Timestamp -1 selects the current time; other values outside the 48-bit range return an empty string. Encoded overflow is rejected.

text : GD.text

Entry for formatting and comparing text.

html : GD.html

Entry for HTML entities, tags, and templates with context-sensitive escaping for text, attributes, URLs, styles, and scripts.

math : GD.math

Entry for standard mathematical functions, IEEE 754 special values, and bit conversions.

version : GD.version

Entry for parsing, comparing, and range-matching Semantic Versions.

time : GD.time

Entry for converting and computing Unix time, ISO 8601, and HTTP dates. parse_iso accepts RFC 3339, and add and diff clamp at the 64-bit integer ends.

cli : GD.cli

Entry for gd's version and docs, flags, and allowed environment and system information.

test : GD.test

Entry for small test helpers that collect asserts.

database : GD.database

Database entry shared by SQLite and PostgreSQL. Synchronous-looking calls suspend only their GDScript; *_async returns Signals for composition.

online : GD.online

Manage matchmaking destinations for online games. Online and Secret in gd-godot handle game synchronization and guest authentication.

Methods