Constants.py 724 B

123456789101112
  1. # Copyright (c) 2021 Ultimaker B.V.
  2. # Cura is released under the terms of the LGPLv3 or higher.
  3. from cura.UltimakerCloud import UltimakerCloudConstants
  4. from cura.ApplicationMetadata import CuraSDKVersion
  5. ROOT_URL = f"{UltimakerCloudConstants.CuraCloudAPIRoot}/cura-packages/v{UltimakerCloudConstants.CuraCloudAPIVersion}"
  6. ROOT_CURA_URL = f"{ROOT_URL}/cura/v{CuraSDKVersion}" # Root of all Marketplace API requests.
  7. ROOT_USER_URL = f"{ROOT_URL}/user"
  8. PACKAGES_URL = f"{ROOT_CURA_URL}/packages" # URL to use for requesting the list of packages.
  9. PACKAGE_UPDATES_URL = f"{PACKAGES_URL}/package-updates" # URL to use for requesting the list of packages that can be updated.
  10. USER_PACKAGES_URL = f"{ROOT_USER_URL}/packages"