Skip to content

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 section on Functionc. 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.
  • ScenarioId: Type that holds a Scenario identifier.
  • SequenceId: Type that holds a Sequence identifier.
  • SubmissionId: Type that holds a Submission 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.
  • DataNode: Reference to a dataset.
  • Job: Execution of a Task.
  • MongoDefaultDocument: The default class for "custom_document" property to configure a MongoCollectionDataNode.
  • Scenario: Instance of a Business case to solve.
  • Sequence: List of Tasks and additional attributes representing a set of data processing elements connected as a direct acyclic graph.
  • Status: Execution status of a Job.
  • Submission: Hold the jobs and submission status when a Scenario^, Sequence^ or Task^ is submitted.
  • SubmissionStatus: Execution status of a Submission.
  • Submittable: Instance of an entity that can be submitted for execution.
  • Task: Hold a user function that will be executed, its parameters and the results.