Files
create/mods/sdk/kindred_sdk/compat.py
forbes-0023 e667aceead
Some checks failed
Build and Test / build (pull_request) Failing after 1m40s
feat(addon-system): create kindred-addon-sdk package (#249)
Add mods/sdk/ with the kindred_sdk Python package providing a stable
API layer for addon integration with Kindred Create platform features.

Modules:
- context: editing context/overlay registration wrappers
- theme: YAML-driven palette system (Catppuccin Mocha)
- origin: FileOrigin registration helpers
- dock: deferred dock panel registration
- compat: version detection utilities

The SDK loads at priority 0 (before all other addons) via the existing
manifest-driven loader. Theme colors are defined in a single YAML
palette file instead of hardcoded Python dicts, enabling future theme
support and eliminating color duplication across addons.

Closes #249
2026-02-17 08:36:27 -06:00

22 lines
442 B
Python

"""Version detection utilities."""
import FreeCAD
def create_version():
"""Return the Kindred Create version string (e.g. ``"0.1.3"``)."""
try:
from version import VERSION
return VERSION
except ImportError:
return "0.0.0"
def freecad_version():
"""Return the FreeCAD base version as a tuple of strings.
Example: ``("1", "0", "0", "2025.01.01")``.
"""
return tuple(FreeCAD.Version())