config.py 1.7 KB

12345678910111213141516171819202122232425262728293031323334
  1. # Copyright 2021-2024 Avaiga Private Limited
  2. #
  3. # Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
  4. # the License. You may obtain a copy of the License at
  5. #
  6. # http://www.apache.org/licenses/LICENSE-2.0
  7. #
  8. # Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on
  9. # an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
  10. # specific language governing permissions and limitations under the License.
  11. """
  12. Contain the application's configuration including the scenario configurations.
  13. The configuration is run by the Core service.
  14. """
  15. from algorithms import *
  16. from taipy import Config
  17. # ###########################################################################
  18. # PLACEHOLDER: Put your application's configurations here #
  19. # #
  20. # Example: #
  21. # scenario_config = Config.configure_scenario("placeholder_scenario", []) #
  22. # #
  23. # Or create a config.toml file and load it like this: #
  24. # def configure(): #
  25. # Config.load("config/config.toml") #
  26. # return Config.scenarios["scenario_configuration"] #
  27. # #
  28. # Comment, remove or replace the previous lines with your own use case #
  29. # ###########################################################################