bundle.blender.app ================== .. py:module:: bundle.blender.app .. autoapi-nested-parse:: User-space Blender application management. Submodules ---------- .. toctree:: :maxdepth: 1 /autoapi/bundle/blender/app/manager/index Classes ------- .. autoapisummary:: bundle.blender.app.BlenderEnvironment bundle.blender.app.BlenderAppManager Package Contents ---------------- .. py:class:: BlenderEnvironment(/, **data: Any) Bases: :py:obj:`bundle.core.data.Data` Describes a discovered Blender installation. .. py:attribute:: blender_executable :type: pathlib.Path .. py:attribute:: python_executable :type: pathlib.Path .. py:attribute:: scripts_dir :type: pathlib.Path .. py:property:: site_packages :type: pathlib.Path .. py:class:: BlenderAppManager(**data) Bases: :py:obj:`bundle.core.data.Data` Base data model class, providing utilities for serialization and deserialization from/to JSON, along with JSON Schema generation. .. attribute:: model_config Default model configuration settings. .. py:attribute:: install_root :type: pathlib.Path .. py:attribute:: cache_root :type: pathlib.Path .. py:attribute:: base_url :type: str :value: 'https://download.blender.org' .. py:method:: archive_name(version: str, arch: str | None = None) -> str .. py:method:: archive_url(version: str, channel: str = 'release', arch: str | None = None) -> str .. py:method:: cache_path(version: str, channel: str = 'release', arch: str | None = None) -> pathlib.Path .. py:property:: default_version :type: str .. py:method:: resolve_latest_version(channel: str = 'release') -> str :async: Query the Blender download index for the newest stable version of ``channel``. Fetches the release listing, picks the highest ``BlenderX.Y`` series, then selects the highest ``X.Y.Z`` archive present in that series. .. py:method:: installed_versions() -> list[pathlib.Path] .. py:method:: managed_environments() -> list .. py:method:: default_environment() .. py:method:: ensure_download(version: str, channel: str = 'release', arch: str | None = None, force: bool = False) -> pathlib.Path :async: .. py:method:: ensure_install(version: str, channel: str = 'release', arch: str | None = None, force: bool = False) -> pathlib.Path :async: