profile_manager.profiles.utils module¶
- profile_manager.profiles.utils.define_plugin_version_from_metadata(manager_metadata: Dict[str, Any], plugin_metadata: Dict[str, Any]) str[source]¶
Define plugin version from available metadata
- profile_manager.profiles.utils.get_current_profile_name() str[source]¶
Get name of the profile used by the current QGIS session.
- Returns:
current profile name
- Return type:
- profile_manager.profiles.utils.get_installed_plugin_list(profile_name: str, only_activated: bool = True) List[str][source]¶
Get installed plugin for a profile
- profile_manager.profiles.utils.get_installed_plugin_metadata(profile_name: str, plugin_slug_name: str) Dict[str, Any][source]¶
Get metadata information from metadata.txt file in profile installed plugin
- profile_manager.profiles.utils.get_plugin_info_from_qgis_manager(plugin_slug_name: str, reload_manager: bool = False) Dict[str, str] | None[source]¶
Get plugin informations from QGIS plugin manager
- profile_manager.profiles.utils.get_plugin_repository_url(manager_metadata: Dict[str, Any]) str | None[source]¶
Get plugins.xml URL of the repository a plugin was installed from.
Only repositories known by the current QGIS session are available.
- profile_manager.profiles.utils.get_profile_icon_path(profile_name: str) Path | None[source]¶
Get the icon file path of a profile, with the same lookup as QgsUserProfile::icon().
The first existing icon.<ext> file in the profile folder is used.
- Parameters:
profile_name (str) – profile name
- Returns:
icon file path, None if the profile has no custom icon
- Return type:
Optional[Path]
- profile_manager.profiles.utils.get_profile_name_list() List[str][source]¶
Get profile name list from current installed QGIS
- Returns:
profile name list
- Return type:
List[str]
- profile_manager.profiles.utils.get_profile_plugin_information(profile_name: str, plugin_slug_name: str) QdtPluginInformation | None[source]¶
Get plugin information from profile, whatever the repository it was installed from (official, third-party or none).
- profile_manager.profiles.utils.get_profile_plugin_list_information(profile_name: str, only_activated: bool = True) List[QdtPluginInformation][source]¶
Get profile plugin information
- profile_manager.profiles.utils.get_profile_plugin_metadata_path(profile_name: str, plugin_slug_name: str) Path[source]¶
Get path to metadata.txt for a plugin inside a profile
- profile_manager.profiles.utils.get_profile_qgis_ini_path(profile_name: str) Path[source]¶
Get the settings INI file path (QGIS3.ini, QGIS4.ini…) for a profile.
- Parameters:
profile_name (str) – profile name
- Returns:
settings INI file path
- Return type:
Path
- profile_manager.profiles.utils.get_qgis_customization_relative_path() Path[source]¶
Get the UI customization file path relative to a profile folder.
- Returns:
relative path
- Return type:
Path