__init__.py 680 B

123456789101112131415161718
  1. # Copyright (c) 2018 Ultimaker B.V.
  2. # Cura is released under the terms of the LGPLv3 or higher.
  3. from UM.PluginRegistry import PluginRegistry
  4. from cura.API.Backups import Backups
  5. ## The official Cura API that plug-ins can use to interact with Cura.
  6. #
  7. # Python does not technically prevent talking to other classes as well, but
  8. # this API provides a version-safe interface with proper deprecation warnings
  9. # etc. Usage of any other methods than the ones provided in this API can cause
  10. # plug-ins to be unstable.
  11. class CuraAPI:
  12. # For now we use the same API version to be consistent.
  13. VERSION = PluginRegistry.APIVersion
  14. # Backups API.
  15. backups = Backups()