mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-06-04 11:14:21 +08:00
24 lines
770 B
Python
24 lines
770 B
Python
# Copyright (c) 2018 Ultimaker B.V.
|
|
# Cura is released under the terms of the LGPLv3 or higher.
|
|
from UM.PluginRegistry import PluginRegistry
|
|
from cura.API.Backups import Backups
|
|
from cura.API.Interface import Interface
|
|
|
|
## The official Cura API that plug-ins can use to interact with Cura.
|
|
#
|
|
# Python does not technically prevent talking to other classes as well, but
|
|
# this API provides a version-safe interface with proper deprecation warnings
|
|
# etc. Usage of any other methods than the ones provided in this API can cause
|
|
# plug-ins to be unstable.
|
|
|
|
class CuraAPI:
|
|
|
|
# For now we use the same API version to be consistent.
|
|
VERSION = PluginRegistry.APIVersion
|
|
|
|
# Backups API
|
|
backups = Backups()
|
|
|
|
# Interface API
|
|
interface = Interface()
|