Skip to content

Package: taipy.core

Taipy Core

The Taipy Core package is a Python library designed to build powerful, customized, data-driven back-end applications. It provides the tools to help Python developers transform their algorithms into a complete back-end application. More details on the Taipy Core functionalities are available in the user manual.

To build a Taipy Core application, the first step consists of setting up the Taipy configuration to design your application's characteristics and behaviors. Import Config from the taipy.config module, then use the various methods of the Config singleton class to configure your core application. In particular, configure the data nodes, tasks, and scenarios. Please refer to the Core configuration user manual for more information and detailed examples.

Once your application is configured, import module import taipy as tp so you can use any function described in the following function section. In particular, the most used functions are tp.create_scenario, tp.get_scenarios, tp.get_data_nodes, tp.submit, used to get, create, and submit entities.

Note

Taipy Core provides a runnable service, Core that runs as a service in a dedicated thread. The purpose is to have a dedicated thread responsible for dispatching the submitted jobs to an available executor for their execution.

In particular, this Core service is automatically run when Core is used with taipy-rest or taipy-gui. See the running services page of the user manual for more details.

Types

  • CycleId: Type that holds a Cycle identifier.
  • DataNodeId: Type that holds a DataNode identifier.
  • JobId: Type that holds a Job identifier.
  • PipelineId: Type that holds a Pipeline identifier.
  • ScenarioId: Type that holds a Scenario identifier.
  • TaskId: Type that holds a Task identifier.
  • Edit: Type that holds a DataNode edit information.

Functions

Classes

  • Core: Core service
  • Cycle: An iteration of a recurrent work pattern.
  • Job: Execution of a Task.
  • Pipeline: List of Tasks and additional attributes representing a set of data processing elements connected as a direct acyclic graph.
  • Scenario: Instance of a Business case to solve.
  • Status: Execution status of a Job.
  • Task: Hold a user function that will be executed, its parameters and the results.