__init__.py 689 B

12345678910111213141516171819
  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. class CuraAPI:
  6. """
  7. The official Cura API that plugins can use to interact with Cura.
  8. Python does not technically prevent talking to other classes as well,
  9. but this API provides a version-safe interface with proper deprecation warnings etc.
  10. Usage of any other methods than the ones provided in this API can cause plugins to be unstable.
  11. """
  12. # For now we use the same API version to be consistent.
  13. VERSION = PluginRegistry.APIVersion
  14. # Backups API.
  15. backups = Backups()