__init__.py 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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. The Taipy `core` package provides powerful, customized, data-driven back-end functionalities.
  13. It provides the tools to help data scientists and Python developers transform their algorithms
  14. into a complete back-end application. In particular, it helps with:
  15. - Data Integration
  16. - Task Orchestration
  17. - What-if Analysis
  18. - Version management
  19. More details on the Core functionalities are available in the user manual.
  20. To use such functionalities, the first step consists of setting up the Taipy configuration to design
  21. your application's characteristics and behaviors. Use the `Config^` singleton class (from `taipy.common.config`)
  22. to configure your application. Please refer to the
  23. [data nodes](../../../../userman/scenario_features/data-integration/data-node-config.md),
  24. [tasks](../../../../userman/scenario_features/task-orchestration/scenario-config.md),
  25. and [scenarios](../../../../userman/scenario_features/sdm/scenario/scenario-config.md) pages.
  26. Once your application is configured, import module `import taipy as tp` so you can use any function described
  27. in the following section on [Function](#functions). In particular, the most used functions are `tp.create_scenario()`,
  28. `tp.get_scenarios()`, `tp.get_data_nodes()`, `tp.submit()`, used to get, create, and submit entities.
  29. !!! Note
  30. Taipy provides a runnable service, `Orchestrator^` that runs as a service in a dedicated thread.
  31. The purpose is to have a dedicated thread responsible for dispatching the submitted jobs to an available
  32. executor for their execution.
  33. In particular, this `Orchestrator^` service is automatically run when used with Taipy REST or Taipy GUI.
  34. See the [running services](../../../../userman/run-deploy/run/running_services.md) page of the user
  35. manual for more details.
  36. """
  37. from ._init import *
  38. from ._init_version import _read_version
  39. from .common.mongo_default_document import MongoDefaultDocument
  40. from .data.data_node_id import Edit
  41. from .exceptions import exceptions
  42. __version__ = _read_version()