Skip to content
This repository has been archived by the owner on Jan 2, 2024. It is now read-only.

Commit

Permalink
Merge pull request #11 from Avaiga/feature/taipy#210-init-file
Browse files Browse the repository at this point in the history
propagate init file
  • Loading branch information
jrobinAV authored Jun 21, 2023
2 parents 4170bc6 + 3db3191 commit e739219
Showing 1 changed file with 11 additions and 62 deletions.
73 changes: 11 additions & 62 deletions src/taipy/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,73 +13,22 @@

if find_spec("taipy"):
if find_spec("taipy.config"):
from taipy.config import Config, Frequency, Scope

if find_spec("taipy.core"):
from taipy.core._core import Core
from taipy.core.cycle.cycle import Cycle
from taipy.core.cycle.cycle_id import CycleId
from taipy.core.data.data_node import DataNode
from taipy.core.data.data_node_id import DataNodeId
from taipy.core.job.job import Job
from taipy.core.job.job_id import JobId
from taipy.core.job.status import Status
from taipy.core.pipeline.pipeline import Pipeline
from taipy.core.pipeline.pipeline_id import PipelineId
from taipy.core.scenario.scenario import Scenario
from taipy.core.scenario.scenario_id import ScenarioId
from taipy.core.taipy import (
cancel_job,
clean_all_entities,
clean_all_entities_by_version,
compare_scenarios,
create_pipeline,
create_scenario,
delete,
delete_job,
delete_jobs,
export_scenario,
get,
get_cycles,
get_cycles_scenarios,
get_data_nodes,
get_jobs,
get_latest_job,
get_parents,
get_pipelines,
get_primary,
get_primary_scenarios,
get_scenarios,
get_tasks,
is_deletable,
set,
set_primary,
submit,
subscribe_pipeline,
subscribe_scenario,
tag,
unsubscribe_pipeline,
unsubscribe_scenario,
untag,
)
from taipy.core.task.task import Task
from taipy.core.task.task_id import TaskId
from taipy.config._init import * # type: ignore

if find_spec("taipy.gui"):
from taipy.gui import Gui

if find_spec("taipy.gui_core"):
from taipy.gui_core.GuiCoreLib import _GuiCore
from taipy.gui._init import * # type: ignore

Gui.add_library(_GuiCore())
if find_spec("taipy.core"):
from taipy.core._init import * # type: ignore

if find_spec("taipy.enterprise") and find_spec("taipy.enterprise.gui"):
from taipy.enterprise.gui import _init_gui_enterprise
if find_spec("taipy.rest"):
from taipy.rest._init import * # type: ignore

_init_gui_enterprise(Gui)
if find_spec("taipy.gui_core"):
from taipy.gui_core._init import * # type: ignore

if find_spec("taipy.rest"):
from taipy.rest import Rest
if find_spec("taipy.enterprise"):
from taipy.enterprise._init import * # type: ignore

if find_spec("taipy._run"):
from taipy._run import _run as run
from taipy._run import _run as run # type: ignore

0 comments on commit e739219

Please sign in to comment.