Hot! - Global Metadata Dat
No pixel moves, no chop transforms the space, without first checking the metadata’s face. It holds the version, artist, and the state – a quiet ghost that orchestrates the great. Let me know which direction matches your intent, and I can expand it into a full module or documentation.
def get(self, category, key, default=None): return self._metadata.get(category, {}).get(key, default) global metadata dat
def set(self, category, key, value, validate=None): if category not in self._metadata: self._metadata[category] = {} if validate and not validate(value): raise ValueError(f"Invalid value for key: value") self._metadata[category][key] = value No pixel moves, no chop transforms the space,
def get_all(self): return self._metadata No pixel moves
def export_json(self): import json return json.dumps(self._metadata, indent=2)