;
8 |
9 | export default ReactMarkdownMock;
10 |
--------------------------------------------------------------------------------
/frontend/taipy-gui/test-config/nanoid.js:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2021-2025 Avaiga Private Limited
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
5 | * the License. You may obtain a copy of the License at
6 | *
7 | * http://www.apache.org/licenses/LICENSE-2.0
8 | *
9 | * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on
10 | * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
11 | * specific language governing permissions and limitations under the License.
12 | */
13 |
14 | // mock nanoid that is ESM and does not work with jest
15 | // https://github.com/ai/nanoid/issues/363
16 | jest.mock("nanoid", () => ({ nanoid: () => {} }));
17 |
--------------------------------------------------------------------------------
/frontend/taipy-gui/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "target": "es2015",
4 | "lib": [
5 | "dom",
6 | "dom.iterable",
7 | "esnext"
8 | ],
9 | "outDir": "./dist/",
10 | "sourceMap": true,
11 | "allowJs": true,
12 | "skipLibCheck": true,
13 | "esModuleInterop": true,
14 | "allowSyntheticDefaultImports": true,
15 | "strict": true,
16 | "forceConsistentCasingInFileNames": true,
17 | "noFallthroughCasesInSwitch": true,
18 | "module": "esnext",
19 | "moduleResolution": "node",
20 | "resolveJsonModule": true,
21 | "isolatedModules": true,
22 | "noEmit": false,
23 | "jsx": "react-jsx",
24 | "declaration": true,
25 | },
26 | "include": [
27 | "src"
28 | ]
29 | }
30 |
--------------------------------------------------------------------------------
/frontend/taipy-gui/typedoc-mkdocs.json:
--------------------------------------------------------------------------------
1 | {
2 | "plugin": [
3 | "typedoc-plugin-markdown"
4 | ],
5 | "entryPoints": [
6 | "src/extensions/exports.ts"
7 | ],
8 | "name": "taipy-gui JS module API",
9 | "out": "reference_guiext",
10 | "excludeNotDocumented": true,
11 | "disableSources": true,
12 | "entryFileName": "index.md",
13 | "readme": "extension-index.md",
14 | "githubPages": false
15 | }
16 |
--------------------------------------------------------------------------------
/frontend/taipy/.gitignore:
--------------------------------------------------------------------------------
1 | node_modules/
2 | dist/
3 | .env
4 |
--------------------------------------------------------------------------------
/frontend/taipy/dev.env:
--------------------------------------------------------------------------------
1 | TAIPY_DIR=
2 |
--------------------------------------------------------------------------------
/frontend/taipy/src/icons/cycle.tsx:
--------------------------------------------------------------------------------
1 | import React from "react";
2 | import { SvgIcon, SvgIconProps } from "@mui/material";
3 |
4 | export const Cycle = (props: SvgIconProps) => (
5 |
6 |
7 |
8 |
9 | );
10 |
--------------------------------------------------------------------------------
/frontend/taipy/src/icons/index.ts:
--------------------------------------------------------------------------------
1 | export { Cycle } from "./cycle";
2 | export { Datanode } from "./datanode";
3 | export { Job } from "./job";
4 | export { Sequence } from "./sequence";
5 | export { Scenario } from "./scenario";
6 | export { Task } from "./task";
7 | export { Input } from "./input";
8 | export { Output } from "./output";
9 |
--------------------------------------------------------------------------------
/frontend/taipy/src/icons/input.tsx:
--------------------------------------------------------------------------------
1 | import React from "react";
2 | import { SvgIcon, SvgIconProps } from "@mui/material";
3 |
4 | export const Input = (props: SvgIconProps) => (
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 | );
13 |
--------------------------------------------------------------------------------
/frontend/taipy/src/icons/output.tsx:
--------------------------------------------------------------------------------
1 | import React from "react";
2 | import { SvgIcon, SvgIconProps } from "@mui/material";
3 |
4 | export const Output = (props: SvgIconProps) => (
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 | );
13 |
--------------------------------------------------------------------------------
/frontend/taipy/src/icons/scenario.tsx:
--------------------------------------------------------------------------------
1 | import React from "react";
2 | import { SvgIcon, SvgIconProps } from "@mui/material";
3 |
4 | export const Scenario = (props: SvgIconProps) => (
5 |
6 |
7 |
8 | );
9 |
--------------------------------------------------------------------------------
/frontend/taipy/src/icons/sequence.tsx:
--------------------------------------------------------------------------------
1 | import React from "react";
2 | import { SvgIcon, SvgIconProps } from "@mui/material";
3 |
4 | export const Sequence = (props: SvgIconProps) => (
5 |
6 |
7 |
8 | );
9 |
--------------------------------------------------------------------------------
/frontend/taipy/src/index.ts:
--------------------------------------------------------------------------------
1 | import ScenarioSelector from "./ScenarioSelector";
2 | import ScenarioViewer from "./ScenarioViewer";
3 | import ScenarioDag from "./ScenarioDag";
4 | import NodeSelector from "./NodeSelector";
5 | import JobSelector from "./JobSelector";
6 | import DataNodeViewer from "./DataNodeViewer";
7 |
8 | export { ScenarioSelector, ScenarioDag, ScenarioViewer as Scenario, NodeSelector as DataNodeSelector, JobSelector, DataNodeViewer as DataNode };
9 |
--------------------------------------------------------------------------------
/frontend/taipy/src/utils/hooks.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2021-2025 Avaiga Private Limited
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
5 | * the License. You may obtain a copy of the License at
6 | *
7 | * http://www.apache.org/licenses/LICENSE-2.0
8 | *
9 | * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on
10 | * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
11 | * specific language governing permissions and limitations under the License.
12 | */
13 | import { useMemo } from "react";
14 |
15 | export const useUniqueId = (id?: string) => useMemo(() => id ? id : new Date().toISOString() + Math.random(), [id]);
16 |
--------------------------------------------------------------------------------
/frontend/taipy/src/utils/names.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2021-2025 Avaiga Private Limited
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
5 | * the License. You may obtain a copy of the License at
6 | *
7 | * http://www.apache.org/licenses/LICENSE-2.0
8 | *
9 | * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on
10 | * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
11 | * specific language governing permissions and limitations under the License.
12 | */
13 |
14 | export const Taipy = "TAIPY";
15 | export const Job = "JOB";
16 | export const DataNode = "DataNode";
17 | export const Task = "Task";
18 | export const Sequence = "Sequence";
19 | export const Scenario = "Scenario";
20 |
--------------------------------------------------------------------------------
/frontend/taipy/test-config/Canvas.js:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2021-2025 Avaiga Private Limited
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
5 | * the License. You may obtain a copy of the License at
6 | *
7 | * http://www.apache.org/licenses/LICENSE-2.0
8 | *
9 | * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on
10 | * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
11 | * specific language governing permissions and limitations under the License.
12 | */
13 |
14 | HTMLCanvasElement.prototype.getContext = () => {
15 | // return whatever getContext has to return
16 | };
17 |
--------------------------------------------------------------------------------
/frontend/taipy/test-config/createObjectUrl.js:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2021-2025 Avaiga Private Limited
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
5 | * the License. You may obtain a copy of the License at
6 | *
7 | * http://www.apache.org/licenses/LICENSE-2.0
8 | *
9 | * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on
10 | * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
11 | * specific language governing permissions and limitations under the License.
12 | */
13 |
14 | if (typeof window.URL.createObjectURL === 'undefined') {
15 | window.URL.createObjectURL = () => {
16 | // Do nothing
17 | // Mock this function for plotly to work
18 | };
19 | }
20 |
--------------------------------------------------------------------------------
/frontend/taipy/test-config/guiMock.js:
--------------------------------------------------------------------------------
1 | jest.mock("taipy-gui", () => ({
2 | useDispatch: jest.fn(() => jest.fn()),
3 | useModule: jest.fn(),
4 | createSendActionNameAction: jest.fn(),
5 | getUpdateVar: jest.fn((a, b) => b),
6 | createSendUpdateAction: jest.fn(),
7 | useDynamicProperty: jest.fn((a, b, c) => (typeof a == "undefined" ? (typeof b == "undefined" ? c : b) : a)),
8 | getComponentClassName: jest.fn(),
9 | useDispatchRequestUpdateOnFirstRender: jest.fn(),
10 | useClassNames: jest.fn((a, b, c) => c || b || a || ""),
11 | getSuffixedClassNames: jest.fn()
12 | }));
13 |
--------------------------------------------------------------------------------
/frontend/taipy/test-config/intersectionObserver.js:
--------------------------------------------------------------------------------
1 | class IntersectionObserver {
2 | root = null;
3 | rootMargin = "";
4 | thresholds = [];
5 |
6 | disconnect() {
7 | return null;
8 | }
9 |
10 | observe() {
11 | return null;
12 | }
13 |
14 | takeRecords() {
15 | return [];
16 | }
17 |
18 | unobserve() {
19 | return null;
20 | }
21 | }
22 | window.IntersectionObserver = IntersectionObserver;
23 | global.IntersectionObserver = IntersectionObserver;
24 |
--------------------------------------------------------------------------------
/frontend/taipy/test-config/nanoid.js:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2021-2025 Avaiga Private Limited
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
5 | * the License. You may obtain a copy of the License at
6 | *
7 | * http://www.apache.org/licenses/LICENSE-2.0
8 | *
9 | * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on
10 | * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
11 | * specific language governing permissions and limitations under the License.
12 | */
13 |
14 | // mock nanoid that is ESM and does not work with jest
15 | // https://github.com/ai/nanoid/issues/363
16 | jest.mock("nanoid", () => ({
17 | nanoid : ()=>{}
18 | }), {virtual: true});
19 |
--------------------------------------------------------------------------------
/frontend/taipy/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "target": "es2015",
4 | "lib": [
5 | "dom",
6 | "dom.iterable",
7 | "esnext"
8 | ],
9 | "outDir": "./dist/",
10 | "sourceMap": true,
11 | "allowJs": true,
12 | "skipLibCheck": true,
13 | "esModuleInterop": true,
14 | "allowSyntheticDefaultImports": true,
15 | "strict": true,
16 | "forceConsistentCasingInFileNames": true,
17 | "noFallthroughCasesInSwitch": true,
18 | "module": "esnext",
19 | "moduleResolution": "node",
20 | "resolveJsonModule": true,
21 | "isolatedModules": true,
22 | "noEmit": false,
23 | "jsx": "react-jsx"
24 | },
25 | "include": [
26 | "src"
27 | ],
28 | }
29 |
--------------------------------------------------------------------------------
/mypy.ini:
--------------------------------------------------------------------------------
1 | [mypy]
2 | ignore_missing_imports = True
3 | exclude = "(taipy/templates/|tools/|doc/gui/examples/.*/builder.py)"
4 |
--------------------------------------------------------------------------------
/pytest.ini:
--------------------------------------------------------------------------------
1 | [pytest]
2 | filterwarnings =
3 | ; ignore pytest warnings when gui thread is stopped during playwright testing
4 | ignore::pytest.PytestUnhandledThreadExceptionWarning
5 | ignore::DeprecationWarning:jupyter_client
6 | ignore::DeprecationWarning:twisted
7 | ignore::DeprecationWarning:pandas
8 | ignore::DeprecationWarning:numpy
9 | ignore::FutureWarning:pyarrow
10 | markers =
11 | teste2e:End-to-end tests
12 | orchestrator_dispatcher:Orchestrator dispatcher tests
13 | standalone:Tests starting a standalone dispatcher thread
14 |
--------------------------------------------------------------------------------
/taipy/common/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright 2021-2025 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 | """Common functionalities for the taipy package."""
13 |
--------------------------------------------------------------------------------
/taipy/common/_cli/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright 2021-2025 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 |
--------------------------------------------------------------------------------
/taipy/common/_cli/_base_cli/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright 2021-2025 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 |
--------------------------------------------------------------------------------
/taipy/common/config/_config_comparator/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright 2021-2025 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 |
--------------------------------------------------------------------------------
/taipy/common/config/_init.py:
--------------------------------------------------------------------------------
1 | # Copyright 2021-2025 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 | from .config import Config
13 |
--------------------------------------------------------------------------------
/taipy/common/config/_serializer/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright 2021-2025 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 |
--------------------------------------------------------------------------------
/taipy/common/config/checker/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright 2021-2025 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 |
13 | from .issue import Issue
14 | from .issue_collector import IssueCollector
15 |
--------------------------------------------------------------------------------
/taipy/common/config/checker/_checkers/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright 2021-2025 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 |
--------------------------------------------------------------------------------
/taipy/common/config/common/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright 2021-2025 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 |
--------------------------------------------------------------------------------
/taipy/common/config/common/_classproperty.py:
--------------------------------------------------------------------------------
1 | # Copyright 2021-2025 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 |
13 | class _Classproperty(object):
14 | def __init__(self, f):
15 | self.f = f
16 |
17 | def __get__(self, obj, owner):
18 | return self.f(owner)
19 |
--------------------------------------------------------------------------------
/taipy/common/config/common/typing.py:
--------------------------------------------------------------------------------
1 | # Copyright 2021-2025 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 | from typing import TypeVar
13 |
14 | from ..checker._checkers._config_checker import _ConfigChecker
15 |
16 | ConfigCheckerType = TypeVar("ConfigCheckerType", bound=_ConfigChecker)
17 |
--------------------------------------------------------------------------------
/taipy/common/config/exceptions/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright 2021-2025 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 | """# Exceptions raised by the `taipy.common.config` package."""
13 |
14 | from .exceptions import *
15 |
--------------------------------------------------------------------------------
/taipy/common/config/global_app/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright 2021-2025 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 |
--------------------------------------------------------------------------------
/taipy/common/logger/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright 2021-2025 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 |
--------------------------------------------------------------------------------
/taipy/common/version.json:
--------------------------------------------------------------------------------
1 | {"major": 4, "minor": 1, "patch": 0}
--------------------------------------------------------------------------------
/taipy/core/_cli/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright 2021-2025 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 |
--------------------------------------------------------------------------------
/taipy/core/_entity/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright 2021-2025 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 |
--------------------------------------------------------------------------------
/taipy/core/_entity/_migrate/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright 2021-2025 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 | from ._migrate_fs import _migrate_fs_entities, _remove_backup_file_entities, _restore_migrate_file_entities
13 | from ._migrate_mongo import _migrate_mongo_entities, _remove_backup_mongo_entities, _restore_migrate_mongo_entities
14 |
--------------------------------------------------------------------------------
/taipy/core/_manager/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright 2021-2025 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 |
--------------------------------------------------------------------------------
/taipy/core/_orchestrator/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright 2021-2025 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 |
--------------------------------------------------------------------------------
/taipy/core/_orchestrator/_dispatcher/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright 2021-2025 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 | from ._development_job_dispatcher import _DevelopmentJobDispatcher
13 | from ._job_dispatcher import _JobDispatcher
14 | from ._standalone_job_dispatcher import _StandaloneJobDispatcher
15 |
--------------------------------------------------------------------------------
/taipy/core/_repository/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright 2021-2025 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 |
--------------------------------------------------------------------------------
/taipy/core/_version/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright 2021-2025 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 |
--------------------------------------------------------------------------------
/taipy/core/_version/_cli/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright 2021-2025 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 |
--------------------------------------------------------------------------------
/taipy/core/common/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright 2021-2025 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 | from .frequency import Frequency
13 | from .mongo_default_document import MongoDefaultDocument
14 | from .scope import Scope
15 |
--------------------------------------------------------------------------------
/taipy/core/common/_repr_enum.py:
--------------------------------------------------------------------------------
1 | # Copyright 2021-2025 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 | import functools
13 | from enum import Enum
14 |
15 |
16 | class _ReprEnum(Enum):
17 | @classmethod
18 | @functools.lru_cache
19 | def _from_repr(cls, repr_: str):
20 | return next(filter(lambda e: repr(e) == repr_, cls)) # type: ignore
21 |
--------------------------------------------------------------------------------
/taipy/core/config/checkers/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright 2021-2025 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 |
--------------------------------------------------------------------------------
/taipy/core/cycle/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright 2021-2025 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 |
--------------------------------------------------------------------------------
/taipy/core/cycle/cycle_id.py:
--------------------------------------------------------------------------------
1 | # Copyright 2021-2025 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 | from typing import NewType
13 |
14 | CycleId = NewType("CycleId", str)
15 | """Type that holds a `Cycle^` identifier."""
16 | CycleId.__doc__ = """Type that holds a `Cycle^` identifier."""
17 |
--------------------------------------------------------------------------------
/taipy/core/exceptions/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright 2021-2025 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 | """Exceptions raised by core package functionalities."""
13 | from .exceptions import *
14 |
--------------------------------------------------------------------------------
/taipy/core/job/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright 2021-2025 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 |
--------------------------------------------------------------------------------
/taipy/core/job/job_id.py:
--------------------------------------------------------------------------------
1 | # Copyright 2021-2025 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 | from typing import NewType
13 |
14 | JobId = NewType("JobId", str)
15 | """Type that holds a `Job^` identifier."""
16 | JobId.__doc__ = """Type that holds a `Job^` identifier."""
17 |
--------------------------------------------------------------------------------
/taipy/core/scenario/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright 2021-2025 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 |
--------------------------------------------------------------------------------
/taipy/core/scenario/scenario_id.py:
--------------------------------------------------------------------------------
1 | # Copyright 2021-2025 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 | from typing import NewType
13 |
14 | ScenarioId = NewType("ScenarioId", str)
15 | """Type that holds a `Scenario^` identifier."""
16 | ScenarioId.__doc__ = """Type that holds a `Scenario^` identifier."""
17 |
--------------------------------------------------------------------------------
/taipy/core/sequence/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright 2021-2025 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 |
--------------------------------------------------------------------------------
/taipy/core/sequence/sequence_id.py:
--------------------------------------------------------------------------------
1 | # Copyright 2021-2025 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 | from typing import NewType
13 |
14 | SequenceId = NewType("SequenceId", str)
15 | """Type that holds a `Sequence^` identifier."""
16 | SequenceId.__doc__ = """Type that holds a `Sequence^` identifier."""
17 |
--------------------------------------------------------------------------------
/taipy/core/submission/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright 2021-2025 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 |
--------------------------------------------------------------------------------
/taipy/core/submission/submission_id.py:
--------------------------------------------------------------------------------
1 | # Copyright 2021-2025 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 | from typing import NewType
13 |
14 | SubmissionId = NewType("SubmissionId", str)
15 | """Type that holds a `Submission^` identifier."""
16 | SubmissionId.__doc__ = """Type that holds a `Submission^` identifier."""
17 |
--------------------------------------------------------------------------------
/taipy/core/task/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright 2021-2025 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 |
--------------------------------------------------------------------------------
/taipy/core/task/task_id.py:
--------------------------------------------------------------------------------
1 | # Copyright 2021-2025 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 | from typing import NewType
13 |
14 | TaskId = NewType("TaskId", str)
15 | """Type that holds a `Task^` identifier."""
16 | TaskId.__doc__ = """Type that holds a `Task^` identifier."""
17 |
--------------------------------------------------------------------------------
/taipy/core/version.json:
--------------------------------------------------------------------------------
1 | {"major": 4, "minor": 1, "patch": 0}
--------------------------------------------------------------------------------
/taipy/event/exceptions/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright 2021-2025 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 | """Exceptions raised by `taipy.event` package functionalities."""
13 | from .exceptions import *
14 |
--------------------------------------------------------------------------------
/taipy/event/exceptions/exceptions.py:
--------------------------------------------------------------------------------
1 | # Copyright 2021-2025 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 | class NoGuiDefinedInEventProcessor(Exception):
13 | """Raised when an on event callback is registered to be broadcast to all states,
14 | but no GUI is defined in the event consumer."""
15 |
--------------------------------------------------------------------------------
/taipy/gui/_init.py:
--------------------------------------------------------------------------------
1 | # Copyright 2021-2025 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 | from .gui import Gui
13 |
--------------------------------------------------------------------------------
/taipy/gui/_renderers/_html/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright 2021-2025 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 | from .parser import _TaipyHTMLParser
13 |
--------------------------------------------------------------------------------
/taipy/gui/builder/.gitignore:
--------------------------------------------------------------------------------
1 | # Taipy GUI builder stuff
2 | __init__.pyi
3 |
--------------------------------------------------------------------------------
/taipy/gui/builder/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright 2021-2025 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 | from ._api_generator import _ElementApiGenerator
13 | from ._element import content, html
14 |
15 | # separate import for "Page" class so stubgen can properly generate pyi file
16 | from .page import Page
17 |
18 | _ElementApiGenerator().add_default()
19 |
--------------------------------------------------------------------------------
/taipy/gui/data/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright 2021-2025 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 | from .data_accessor import _DataAccessor
13 | from .decimator import *
14 |
--------------------------------------------------------------------------------
/taipy/gui/data/data_format.py:
--------------------------------------------------------------------------------
1 | # Copyright 2021-2025 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 | from enum import Enum
13 |
14 |
15 | class _DataFormat(Enum):
16 | JSON = "JSON"
17 | APACHE_ARROW = "ARROW"
18 | CSV = "CSV"
19 |
--------------------------------------------------------------------------------
/taipy/gui/extension/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright 2021-2025 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 | from ..types import PropertyType
13 | from .library import Element, ElementLibrary, ElementProperty
14 |
--------------------------------------------------------------------------------
/taipy/gui/mock/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright 2021-2025 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 |
--------------------------------------------------------------------------------
/taipy/gui/state_support.py:
--------------------------------------------------------------------------------
1 | # Copyright 2021-2025 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 | from .state import State
13 |
14 |
15 | class StateSupport(State):
16 | pass
17 |
--------------------------------------------------------------------------------
/taipy/gui/utils/_css.py:
--------------------------------------------------------------------------------
1 |
2 | import os
3 | import typing as t
4 |
5 |
6 | def get_style(style: t.Union[str, t.Dict[str, t.Union[str, t.Dict[str, t.Any]]]]):
7 | """NOT DOCUMENTED"""
8 | if isinstance(style, dict):
9 | style_arr = []
10 | for k, v in style.items():
11 | if isinstance(v, dict):
12 | rules= []
13 | for vk, vv in v.items():
14 | if isinstance(vv, dict):
15 | rules.append(get_style({vk: vv}))
16 | else:
17 | rules.append(f'{vk}:{vv};')
18 | if rules:
19 | style_arr.append(f"{k}{{{''.join(rules)}}}")
20 | return os.linesep.join(style_arr) if style_arr else None
21 | return style
22 |
--------------------------------------------------------------------------------
/taipy/gui/utils/get_page_from_module.py:
--------------------------------------------------------------------------------
1 | # Copyright 2021-2025 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 | import typing as t
13 | from types import ModuleType
14 |
15 | from ..page import Page
16 |
17 |
18 | def _get_page_from_module(module: ModuleType) -> t.Optional[Page]:
19 | return next((v for v in vars(module).values() if isinstance(v, Page)), None)
20 |
--------------------------------------------------------------------------------
/taipy/gui/utils/html.py:
--------------------------------------------------------------------------------
1 | # Copyright 2021-2025 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 | import typing as t
13 |
14 |
15 | def _get_css_var_value(value: t.Any) -> str:
16 | if isinstance(value, str):
17 | return f'"{value}"' if " " in value else value
18 |
19 | return f"{value}px" if isinstance(value, int) else f"{value}"
20 |
--------------------------------------------------------------------------------
/taipy/gui/utils/is_debugging.py:
--------------------------------------------------------------------------------
1 | # Copyright 2021-2025 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 | import sys
13 |
14 |
15 | def is_debugging() -> bool:
16 | """NOT DOCUMENTED"""
17 | return hasattr(sys, "gettrace") and sys.gettrace() is not None
18 |
--------------------------------------------------------------------------------
/taipy/gui/utils/is_port_open.py:
--------------------------------------------------------------------------------
1 | # Copyright 2021-2025 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 | import socket
13 |
14 |
15 | def _is_port_open(host, port) -> bool:
16 | sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
17 | result = sock.connect_ex((host, port))
18 | sock.close()
19 | return result == 0
20 |
--------------------------------------------------------------------------------
/taipy/gui/version.json:
--------------------------------------------------------------------------------
1 | {"major": 4, "minor": 1, "patch": 0}
--------------------------------------------------------------------------------
/taipy/gui_core/.gitignore:
--------------------------------------------------------------------------------
1 | # This file won't be present on CI and would prevent the lib to be included if building package locally
2 | lib/
3 |
--------------------------------------------------------------------------------
/taipy/gui_core/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright 2021-2025 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 | from ._init import *
13 | from .filters import CustomScenarioFilter, DataNodeFilter, DataNodeScenarioFilter, ScenarioFilter
14 |
--------------------------------------------------------------------------------
/taipy/gui_core/_init.py:
--------------------------------------------------------------------------------
1 | # Copyright 2021-2025 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 | from ._GuiCoreLib import _GuiCore
13 |
14 |
15 | def _init_gui_core():
16 | from taipy.gui import Gui
17 |
18 | Gui.add_library(_GuiCore())
19 |
20 |
21 | _init_gui_core()
22 |
--------------------------------------------------------------------------------
/taipy/py.typed:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Avaiga/taipy/f505727b2a5218b753853a009055bf1fa4a6ab5c/taipy/py.typed
--------------------------------------------------------------------------------
/taipy/rest/.dockerignore:
--------------------------------------------------------------------------------
1 | .flaskenv
2 | Dockerfile
3 | Makefile
4 | docker-compose.yml
5 |
--------------------------------------------------------------------------------
/taipy/rest/.flaskenv:
--------------------------------------------------------------------------------
1 | FLASK_ENV=development
2 | FLASK_APP=taipy.rest.app:create_app
3 | SECRET_KEY=xqgl3(t0und)yca(kij6uux!wse0j5i15!zy9^v(#p8^b-22#8
4 | DATABASE_URI=sqlite:///myapi.db
5 |
--------------------------------------------------------------------------------
/taipy/rest/.gitignore:
--------------------------------------------------------------------------------
1 | # Django stuff:
2 | *.log
3 | local_settings.py
4 |
5 | # Flask stuff:
6 | instance/
7 | .webassets-cache
8 |
9 | # Scrapy stuff:
10 | .scrapy
11 |
12 | # Sphinx documentation
13 | docs/_build/
14 |
15 | # PyBuilder
16 | target/
17 |
18 | # celery beat schedule file
19 | celerybeat-schedule
20 |
21 | # SageMath parsed files
22 | *.sage.py
23 |
24 | # Rope project settings
25 | .ropeproject
26 |
27 | # mkdocs documentation
28 | /site
29 |
30 | # mkdocs build dir
31 | site/
32 |
33 | # Demo Testing File
34 | demo*.py
35 | *.csv
36 | demo*.css
37 | object_selection.py
38 | gui_assets
39 | dataset
40 |
41 | # Demos folder
42 | demo*/
43 | !demos/
44 |
45 | # Docker local dev
46 | docker-compose-dev*.yml
47 | Dockerfile.dev
48 |
49 | # Filesystem default local storage
50 | .data/
51 | .databkp/
52 |
53 | *.db
54 | taipy/rest/setup/*
55 |
--------------------------------------------------------------------------------
/taipy/rest/.testenv:
--------------------------------------------------------------------------------
1 | SECRET_KEY=testing
2 | DATABASE_URI=sqlite:///:memory:
3 |
--------------------------------------------------------------------------------
/taipy/rest/_init.py:
--------------------------------------------------------------------------------
1 | # Copyright 2021-2025 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 | from .rest import Rest
13 |
--------------------------------------------------------------------------------
/taipy/rest/api/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright 2021-2025 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 | """Package for the Taipy Rest API."""
12 | from . import error_handler, views
13 |
14 | __all__ = ["views", "error_handler"]
15 |
--------------------------------------------------------------------------------
/taipy/rest/api/exceptions/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright 2021-2025 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 |
--------------------------------------------------------------------------------
/taipy/rest/api/middlewares/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright 2021-2025 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 |
--------------------------------------------------------------------------------
/taipy/rest/commons/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright 2021-2025 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 |
--------------------------------------------------------------------------------
/taipy/rest/commons/templates/redoc.j2:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Taipy Rest - ReDoc
5 |
6 |
7 |
8 |
9 |
10 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
--------------------------------------------------------------------------------
/taipy/rest/extensions.py:
--------------------------------------------------------------------------------
1 | # Copyright 2021-2025 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 | """Extensions registry
13 |
14 | All extensions here are used as singletons and
15 | initialized in application factory
16 | """
17 |
18 | from .commons.apispec import APISpecExt
19 |
20 | apispec = APISpecExt()
21 |
--------------------------------------------------------------------------------
/taipy/rest/version.json:
--------------------------------------------------------------------------------
1 | {"major": 4, "minor": 1, "patch": 0}
--------------------------------------------------------------------------------
/taipy/templates/default/{{cookiecutter.__root_folder}}/algorithms/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright 2021-2025 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 | from algorithms import *
13 |
--------------------------------------------------------------------------------
/taipy/templates/default/{{cookiecutter.__root_folder}}/configuration/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright 2021-2025 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 | from .config import *
13 |
--------------------------------------------------------------------------------
/taipy/templates/default/{{cookiecutter.__root_folder}}/pages/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright 2021-2025 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 | from .root import root_page
13 |
--------------------------------------------------------------------------------
/taipy/templates/default/{{cookiecutter.__root_folder}}/requirements.txt:
--------------------------------------------------------------------------------
1 | taipy
2 |
--------------------------------------------------------------------------------
/taipy/templates/default/{{cookiecutter.__root_folder}}/sections/import.txt:
--------------------------------------------------------------------------------
1 | from taipy.gui import Gui
2 |
--------------------------------------------------------------------------------
/taipy/templates/default/{{cookiecutter.__root_folder}}/sections/main.txt:
--------------------------------------------------------------------------------
1 | if __name__ == "__main__":
2 |
--------------------------------------------------------------------------------
/taipy/templates/default/{{cookiecutter.__root_folder}}/sections/page_content.txt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Avaiga/taipy/f505727b2a5218b753853a009055bf1fa4a6ab5c/taipy/templates/default/{{cookiecutter.__root_folder}}/sections/page_content.txt
--------------------------------------------------------------------------------
/taipy/templates/default/{{cookiecutter.__root_folder}}/{{cookiecutter.__main_file}}.py:
--------------------------------------------------------------------------------
1 | # Copyright 2021-2025 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 |
--------------------------------------------------------------------------------
/taipy/templates/sdm/cookiecutter.json:
--------------------------------------------------------------------------------
1 | {
2 | "Application root folder": "taipy_application",
3 | "Application main Python file": "main.py",
4 | "Application title": "Taipy Application",
5 | "With TOML Config?": "No",
6 | "With a new Git repository?": "No",
7 |
8 | "__root_folder": "{{ cookiecutter['Application root folder'] | replace(' ','-') }}",
9 | "__main_file": "{{ cookiecutter['Application main Python file'][:-3] if cookiecutter['Application main Python file'].endswith('.py') else cookiecutter['Application main Python file'] }}",
10 | "__application_title": "{{ cookiecutter['Application title'] }}",
11 | "__use_toml_config": "{{ cookiecutter['With TOML Config?'] }}",
12 | "__git": "{{ cookiecutter['With a new Git repository?']}}"
13 | }
14 |
--------------------------------------------------------------------------------
/taipy/templates/sdm/{{cookiecutter.__root_folder}}/.taipyignore:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Avaiga/taipy/f505727b2a5218b753853a009055bf1fa4a6ab5c/taipy/templates/sdm/{{cookiecutter.__root_folder}}/.taipyignore
--------------------------------------------------------------------------------
/taipy/templates/sdm/{{cookiecutter.__root_folder}}/algos/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright 2021-2025 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 | from .algos import clean_data
13 |
--------------------------------------------------------------------------------
/taipy/templates/sdm/{{cookiecutter.__root_folder}}/algos/algos.py:
--------------------------------------------------------------------------------
1 | # Copyright 2021-2025 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 |
13 | def clean_data(df, replacement_type):
14 | df = df.fillna(replacement_type)
15 | return df
16 |
--------------------------------------------------------------------------------
/taipy/templates/sdm/{{cookiecutter.__root_folder}}/config/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright 2021-2025 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 |
--------------------------------------------------------------------------------
/taipy/templates/sdm/{{cookiecutter.__root_folder}}/config/config.toml:
--------------------------------------------------------------------------------
1 | [TAIPY]
2 |
3 | [DATA_NODE.initial_dataset]
4 | storage_type = "csv"
5 | scope = "CYCLE:SCOPE"
6 |
7 | [DATA_NODE.replacement_type]
8 | default_data = "NO VALUE"
9 |
10 | [DATA_NODE.cleaned_dataset]
11 | storage_type = "csv"
12 |
13 | [TASK.clean_data]
14 | function = "algos.algos.clean_data:function"
15 | inputs = [ "initial_dataset:SECTION", "replacement_type:SECTION",]
16 | outputs = [ "cleaned_dataset:SECTION",]
17 | skippable = "False:bool"
18 |
19 | [SCENARIO.scenario_configuration]
20 | tasks = [ "clean_data:SECTION",]
21 | frequency = "DAILY:FREQUENCY"
22 | sequences.scenario_configuration_sequence = [ "clean_data:SECTION",]
23 |
24 | [SCENARIO.scenario_configuration.comparators]
25 |
--------------------------------------------------------------------------------
/taipy/templates/sdm/{{cookiecutter.__root_folder}}/config/config_with_toml.py:
--------------------------------------------------------------------------------
1 | # Copyright 2021-2025 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 | from taipy.common.config import Config
13 |
14 |
15 | def configure():
16 | Config.load("config/config.toml")
17 | return Config.scenarios["scenario_configuration"]
18 |
--------------------------------------------------------------------------------
/taipy/templates/sdm/{{cookiecutter.__root_folder}}/pages/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright 2021-2025 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 | from .job_page import job_page
13 | from .scenario_page import scenario_page
14 |
--------------------------------------------------------------------------------
/taipy/templates/sdm/{{cookiecutter.__root_folder}}/pages/job_page/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright 2021-2025 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 | from .job_page import job_page
13 |
--------------------------------------------------------------------------------
/taipy/templates/sdm/{{cookiecutter.__root_folder}}/pages/job_page/job_page.py:
--------------------------------------------------------------------------------
1 | # Copyright 2021-2025 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 | import taipy.gui.builder as tgb
13 |
14 | with tgb.Page() as job_page:
15 | tgb.job_selector()
16 |
--------------------------------------------------------------------------------
/taipy/templates/sdm/{{cookiecutter.__root_folder}}/pages/scenario_page/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright 2021-2025 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 | from .scenario_page import scenario_page
13 |
--------------------------------------------------------------------------------
/taipy/templates/sdm/{{cookiecutter.__root_folder}}/requirements.txt:
--------------------------------------------------------------------------------
1 | taipy
2 |
--------------------------------------------------------------------------------
/taipy/templates/version.json:
--------------------------------------------------------------------------------
1 | {"major": 4, "minor": 1, "patch": 0}
--------------------------------------------------------------------------------
/taipy/version.json:
--------------------------------------------------------------------------------
1 | {"major": 4, "minor": 1, "patch": 0}
--------------------------------------------------------------------------------
/tests/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright 2021-2025 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 | """Unit test package for taipy."""
13 |
--------------------------------------------------------------------------------
/tests/common/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright 2021-2025 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 |
--------------------------------------------------------------------------------
/tests/common/cli/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright 2021-2025 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 |
--------------------------------------------------------------------------------
/tests/common/cli/conftest.py:
--------------------------------------------------------------------------------
1 | # Copyright 2021-2025 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 | import pytest
13 |
14 |
15 | @pytest.fixture(scope="function", autouse=True)
16 | def clean_parser(clean_argparser):
17 | clean_argparser()
18 |
19 | yield
20 |
21 | clean_argparser()
22 |
--------------------------------------------------------------------------------
/tests/common/config/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright 2021-2025 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 |
--------------------------------------------------------------------------------
/tests/common/config/checker/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright 2021-2025 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 |
--------------------------------------------------------------------------------
/tests/common/config/checker/checkers/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright 2021-2025 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 |
--------------------------------------------------------------------------------
/tests/common/config/common/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright 2021-2025 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 |
--------------------------------------------------------------------------------
/tests/common/config/global_app/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright 2021-2025 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 |
--------------------------------------------------------------------------------
/tests/common/config/utils/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright 2021-2025 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 |
--------------------------------------------------------------------------------
/tests/common/logger/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright 2021-2025 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 |
--------------------------------------------------------------------------------
/tests/common/logger/logger.conf:
--------------------------------------------------------------------------------
1 | [loggers]
2 | keys=root,Taipy
3 |
4 | [handlers]
5 | keys=consoleHandler
6 |
7 | [formatters]
8 | keys=simpleFormatter
9 |
10 | [logger_root]
11 | level=DEBUG
12 | handlers=consoleHandler
13 |
14 | [logger_Taipy]
15 | level=DEBUG
16 | handlers=consoleHandler
17 | qualname=Taipy
18 | propagate=0
19 |
20 | [handler_consoleHandler]
21 | class=StreamHandler
22 | level=DEBUG
23 | formatter=simpleFormatter
24 | args=(sys.stdout,)
25 |
26 | [formatter_simpleFormatter]
27 | format=%(asctime)s - %(name)s - %(levelname)s - %(message)s
28 |
--------------------------------------------------------------------------------
/tests/core/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright 2021-2025 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 |
--------------------------------------------------------------------------------
/tests/core/_entity/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright 2021-2025 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 |
--------------------------------------------------------------------------------
/tests/core/_entity/data_sample/cycles/CYCLE_January_2021_4463f2a8-d551-4d36-aaa1-2bbbb033fd3b.json:
--------------------------------------------------------------------------------
1 | {
2 | "id": "CYCLE_January_2021_4463f2a8-d551-4d36-aaa1-2bbbb033fd3b",
3 | "name": "January 2021",
4 | "frequency": "",
5 | "properties": {},
6 | "creation_date": "2021-01-25T00:00:00",
7 | "start_date": "2021-01-01T00:00:00",
8 | "end_date": "2021-01-31T23:59:59.999999"
9 | }
10 |
--------------------------------------------------------------------------------
/tests/core/_entity/data_sample/data_nodes/DATANODE_day_09c01a64-a998-4ba6-ac24-43e02db535a3.json:
--------------------------------------------------------------------------------
1 | {
2 | "id": "DATANODE_day_09c01a64-a998-4ba6-ac24-43e02db535a3",
3 | "config_id": "day",
4 | "scope": "",
5 | "storage_type": "pickle",
6 | "name": null,
7 | "parent_id": "SCENARIO_scenario_62d29866-610e-4173-bd22-6a0555e80ff4",
8 | "last_edit_date": "2023-10-08T21:12:32.977796",
9 | "edits": [
10 | {
11 | "timestamp": {
12 | "__type__": "Datetime",
13 | "__value__": "2023-10-08T21:12:32.936220"
14 | }
15 | },
16 | {
17 | "timestamp": {
18 | "__type__": "Datetime",
19 | "__value__": "2023-10-08T21:12:32.977796"
20 | }
21 | }
22 | ],
23 | "version": "b11ea9f9-b2d7-4b58-a1c2-c6b1700bed97",
24 | "validity_days": null,
25 | "validity_seconds": null,
26 | "edit_in_progress": false,
27 | "data_node_properties": {
28 | "is_generated": true
29 | }
30 | }
31 |
--------------------------------------------------------------------------------
/tests/core/_entity/data_sample/data_nodes/DATANODE_evaluation_7173c0d1-2b84-486f-af76-82788f957c3b.json:
--------------------------------------------------------------------------------
1 | {
2 | "id": "DATANODE_evaluation_7173c0d1-2b84-486f-af76-82788f957c3b",
3 | "config_id": "evaluation",
4 | "scope": "",
5 | "storage_type": "pickle",
6 | "name": null,
7 | "owner_id": "SCENARIO_scenario_62d29866-610e-4173-bd22-6a0555e80ff4",
8 | "parent_ids": [
9 | "TASK_evaluate_57cbea3b-332e-47ac-a468-472e4885eb82"
10 | ],
11 | "last_edit_date": "2023-10-08T21:12:33.289465",
12 | "edits": [
13 | {
14 | "job_id": "JOB_evaluate_75a2e8a3-2920-48a7-9d70-942d3cb9c71b",
15 | "timestamp": {
16 | "__type__": "Datetime",
17 | "__value__": "2023-10-08T21:12:33.289465"
18 | }
19 | }
20 | ],
21 | "version": "b11ea9f9-b2d7-4b58-a1c2-c6b1700bed97",
22 | "validity_days": null,
23 | "validity_seconds": null,
24 | "edit_in_progress": false,
25 | "data_node_properties": {
26 | "is_generated": true
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/tests/core/_entity/data_sample/data_nodes/DATANODE_initial_dataset_7d571742-92a5-457f-aef2-5d2eff3a3e99.json:
--------------------------------------------------------------------------------
1 | {
2 | "id": "DATANODE_initial_dataset_7d571742-92a5-457f-aef2-5d2eff3a3e99",
3 | "config_id": "initial_dataset",
4 | "scope": "",
5 | "storage_type": "csv",
6 | "name": null,
7 | "owner_id": null,
8 | "parent_ids": [
9 | "TASK_clean_data_2b17fa43-6746-45d6-b22d-0f5b09b9048a"
10 | ],
11 | "last_edit_date": "2023-10-08T21:12:32.933049",
12 | "edits": [],
13 | "version": "b11ea9f9-b2d7-4b58-a1c2-c6b1700bed97",
14 | "validity_days": null,
15 | "validity_seconds": null,
16 | "edit_in_progress": false,
17 | "data_node_properties": {
18 | "path": "data/dataset.csv",
19 | "has_header": true,
20 | "exposed_type": "pandas"
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/tests/core/_entity/data_sample/jobs/JOB_clean_data_969c7c6d-93ec-4044-bda5-20f8e3abbb17.json:
--------------------------------------------------------------------------------
1 | {
2 | "id": "JOB_clean_data_969c7c6d-93ec-4044-bda5-20f8e3abbb17",
3 | "task_id": "TASK_clean_data_2b17fa43-6746-45d6-b22d-0f5b09b9048a",
4 | "status": "",
5 | "force": false,
6 | "submit_id": "SUBMISSION_0bd14857-813f-4273-b457-4a763073b7f8",
7 | "creation_date": "2023-10-08T21:12:32.990839",
8 | "subscribers": [
9 | {
10 | "fct_name": "_Scheduler._on_status_change",
11 | "fct_params": [],
12 | "fct_module": "taipy.core._scheduler._scheduler"
13 | }
14 | ],
15 | "stacktrace": [],
16 | "version": "b11ea9f9-b2d7-4b58-a1c2-c6b1700bed97"
17 | }
18 |
--------------------------------------------------------------------------------
/tests/core/_entity/data_sample/jobs/JOB_evaluate_75a2e8a3-2920-48a7-9d70-942d3cb9c71b.json:
--------------------------------------------------------------------------------
1 | {
2 | "id": "JOB_evaluate_75a2e8a3-2920-48a7-9d70-942d3cb9c71b",
3 | "task_id": "TASK_evaluate_57cbea3b-332e-47ac-a468-472e4885eb82",
4 | "status": "",
5 | "force": false,
6 | "submit_id": "SUBMISSION_0bd14857-813f-4273-b457-4a763073b7f8",
7 | "creation_date": "2023-10-08T21:12:33.008351",
8 | "subscribers": [
9 | {
10 | "fct_name": "_Orchestrator._on_status_change",
11 | "fct_params": [],
12 | "fct_module": "taipy.core._orchestrator._orchestrator"
13 | }
14 | ],
15 | "stacktrace": [],
16 | "version": "b11ea9f9-b2d7-4b58-a1c2-c6b1700bed97"
17 | }
18 |
--------------------------------------------------------------------------------
/tests/core/_entity/data_sample/jobs/JOB_predict_e2298b78-c093-415c-ba7e-1c3f22463546.json:
--------------------------------------------------------------------------------
1 | {
2 | "id": "JOB_predict_e2298b78-c093-415c-ba7e-1c3f22463546",
3 | "task_id": "TASK_predict_cf8b3c83-5ea7-40eb-b8af-d5240852ff5b",
4 | "status": "",
5 | "force": false,
6 | "submit_id": "SUBMISSION_0bd14857-813f-4273-b457-4a763073b7f8",
7 | "creation_date": "2023-10-08T21:12:32.999167",
8 | "subscribers": [
9 | {
10 | "fct_name": "_Orchestrator._on_status_change",
11 | "fct_params": [],
12 | "fct_module": "taipy.core._orchestrator._orchestrator"
13 | }
14 | ],
15 | "stacktrace": [],
16 | "version": "b11ea9f9-b2d7-4b58-a1c2-c6b1700bed97"
17 | }
18 |
--------------------------------------------------------------------------------
/tests/core/_entity/data_sample/pipelines/PIPELINE_baseline_08c57938-83e8-4848-aca5-c98a4ca21e58.json:
--------------------------------------------------------------------------------
1 | {
2 | "id": "PIPELINE_baseline_08c57938-83e8-4848-aca5-c98a4ca21e58",
3 | "owner_id": "SCENARIO_scenario_62d29866-610e-4173-bd22-6a0555e80ff4",
4 | "parent_ids": [
5 | "SCENARIO_scenario_62d29866-610e-4173-bd22-6a0555e80ff4"
6 | ],
7 | "config_id": "baseline",
8 | "properties": {},
9 | "tasks": [
10 | "TASK_clean_data_2b17fa43-6746-45d6-b22d-0f5b09b9048a",
11 | "TASK_predict_cf8b3c83-5ea7-40eb-b8af-d5240852ff5b",
12 | "TASK_evaluate_57cbea3b-332e-47ac-a468-472e4885eb82"
13 | ],
14 | "subscribers": [],
15 | "version": "b11ea9f9-b2d7-4b58-a1c2-c6b1700bed97"
16 | }
17 |
--------------------------------------------------------------------------------
/tests/core/_entity/data_sample/scenarios/SCENARIO_scenario_62d29866-610e-4173-bd22-6a0555e80ff4.json:
--------------------------------------------------------------------------------
1 | {
2 | "id": "SCENARIO_scenario_62d29866-610e-4173-bd22-6a0555e80ff4",
3 | "config_id": "scenario",
4 | "pipelines": [
5 | "PIPELINE_baseline_08c57938-83e8-4848-aca5-c98a4ca21e58"
6 | ],
7 | "properties": {
8 | "name": "scenario_2021-01-25"
9 | },
10 | "creation_date": "2021-01-25T00:00:00",
11 | "primary_scenario": true,
12 | "subscribers": [],
13 | "tags": [],
14 | "version": "b11ea9f9-b2d7-4b58-a1c2-c6b1700bed97",
15 | "cycle": "CYCLE_January_2021_4463f2a8-d551-4d36-aaa1-2bbbb033fd3b"
16 | }
17 |
--------------------------------------------------------------------------------
/tests/core/_entity/data_sample/tasks/TASK_clean_data_2b17fa43-6746-45d6-b22d-0f5b09b9048a.json:
--------------------------------------------------------------------------------
1 | {
2 | "id": "TASK_clean_data_2b17fa43-6746-45d6-b22d-0f5b09b9048a",
3 | "parent_id": null,
4 | "config_id": "clean_data",
5 | "input_ids": [
6 | "DATANODE_initial_dataset_7d571742-92a5-457f-aef2-5d2eff3a3e99"
7 | ],
8 | "function_name": "clean_data",
9 | "function_module": "algos.algos",
10 | "output_ids": [
11 | "DATANODE_cleaned_dataset_0e715489-98ee-4a06-9b38-21409ed04d03"
12 | ],
13 | "version": "b11ea9f9-b2d7-4b58-a1c2-c6b1700bed97",
14 | "properties": {}
15 | }
16 |
--------------------------------------------------------------------------------
/tests/core/_entity/data_sample/tasks/TASK_evaluate_57cbea3b-332e-47ac-a468-472e4885eb82.json:
--------------------------------------------------------------------------------
1 | {
2 | "id": "TASK_evaluate_57cbea3b-332e-47ac-a468-472e4885eb82",
3 | "owner_id": "SCENARIO_scenario_62d29866-610e-4173-bd22-6a0555e80ff4",
4 | "parent_ids": [
5 | "PIPELINE_baseline_08c57938-83e8-4848-aca5-c98a4ca21e58"
6 | ],
7 | "config_id": "evaluate",
8 | "input_ids": [
9 | "DATANODE_predictions_04a03760-c963-46cc-bd24-d798f5821cef",
10 | "DATANODE_cleaned_dataset_0e715489-98ee-4a06-9b38-21409ed04d03",
11 | "DATANODE_day_09c01a64-a998-4ba6-ac24-43e02db535a3"
12 | ],
13 | "function_name": "evaluate",
14 | "function_module": "algos.algos",
15 | "output_ids": [
16 | "DATANODE_evaluation_7173c0d1-2b84-486f-af76-82788f957c3b"
17 | ],
18 | "version": "b11ea9f9-b2d7-4b58-a1c2-c6b1700bed97",
19 | "skippable": false,
20 | "properties": {}
21 | }
22 |
--------------------------------------------------------------------------------
/tests/core/_entity/data_sample/tasks/TASK_predict_cf8b3c83-5ea7-40eb-b8af-d5240852ff5b.json:
--------------------------------------------------------------------------------
1 | {
2 | "id": "TASK_predict_cf8b3c83-5ea7-40eb-b8af-d5240852ff5b",
3 | "owner_id": "SCENARIO_scenario_62d29866-610e-4173-bd22-6a0555e80ff4",
4 | "parent_ids": [
5 | "PIPELINE_baseline_08c57938-83e8-4848-aca5-c98a4ca21e58"
6 | ],
7 | "config_id": "predict",
8 | "input_ids": [
9 | "DATANODE_cleaned_dataset_0e715489-98ee-4a06-9b38-21409ed04d03",
10 | "DATANODE_day_09c01a64-a998-4ba6-ac24-43e02db535a3"
11 | ],
12 | "function_name": "predict",
13 | "function_module": "algos.algos",
14 | "output_ids": [
15 | "DATANODE_predictions_04a03760-c963-46cc-bd24-d798f5821cef"
16 | ],
17 | "version": "b11ea9f9-b2d7-4b58-a1c2-c6b1700bed97",
18 | "skippable": true,
19 | "properties": {}
20 | }
21 |
--------------------------------------------------------------------------------
/tests/core/_entity/data_sample/version.json:
--------------------------------------------------------------------------------
1 | {
2 | "latest_version": "b11ea9f9-b2d7-4b58-a1c2-c6b1700bed97",
3 | "development_version": "b11ea9f9-b2d7-4b58-a1c2-c6b1700bed97",
4 | "production_version": []
5 | }
6 |
--------------------------------------------------------------------------------
/tests/core/_entity/data_sample_migrated/cycles/CYCLE_January_2021_4463f2a8-d551-4d36-aaa1-2bbbb033fd3b.json:
--------------------------------------------------------------------------------
1 | {
2 | "id": "CYCLE_January_2021_4463f2a8-d551-4d36-aaa1-2bbbb033fd3b",
3 | "name": "January 2021",
4 | "frequency": "",
5 | "properties": {},
6 | "creation_date": "2021-01-25T00:00:00",
7 | "start_date": "2021-01-01T00:00:00",
8 | "end_date": "2021-01-31T23:59:59.999999"
9 | }
--------------------------------------------------------------------------------
/tests/core/_entity/data_sample_migrated/data_nodes/DATANODE_day_09c01a64-a998-4ba6-ac24-43e02db535a3.json:
--------------------------------------------------------------------------------
1 | {
2 | "id": "DATANODE_day_09c01a64-a998-4ba6-ac24-43e02db535a3",
3 | "config_id": "day",
4 | "scope": "",
5 | "storage_type": "pickle",
6 | "last_edit_date": "2023-10-08T21:12:32.977796",
7 | "edits": [
8 | {
9 | "timestamp": "2023-10-08T21:12:32.936220"
10 | },
11 | {
12 | "timestamp": "2023-10-08T21:12:32.977796"
13 | }
14 | ],
15 | "version": "b11ea9f9-b2d7-4b58-a1c2-c6b1700bed97",
16 | "validity_days": null,
17 | "validity_seconds": null,
18 | "edit_in_progress": false,
19 | "data_node_properties": {
20 | "is_generated": true,
21 | "name": null
22 | },
23 | "parent_ids": [
24 | "TASK_evaluate_57cbea3b-332e-47ac-a468-472e4885eb82",
25 | "TASK_predict_cf8b3c83-5ea7-40eb-b8af-d5240852ff5b"
26 | ],
27 | "owner_id": "SCENARIO_scenario_62d29866-610e-4173-bd22-6a0555e80ff4"
28 | }
--------------------------------------------------------------------------------
/tests/core/_entity/data_sample_migrated/data_nodes/DATANODE_evaluation_7173c0d1-2b84-486f-af76-82788f957c3b.json:
--------------------------------------------------------------------------------
1 | {
2 | "id": "DATANODE_evaluation_7173c0d1-2b84-486f-af76-82788f957c3b",
3 | "config_id": "evaluation",
4 | "scope": "",
5 | "storage_type": "pickle",
6 | "owner_id": "SCENARIO_scenario_62d29866-610e-4173-bd22-6a0555e80ff4",
7 | "parent_ids": [
8 | "TASK_evaluate_57cbea3b-332e-47ac-a468-472e4885eb82"
9 | ],
10 | "last_edit_date": "2023-10-08T21:12:33.289465",
11 | "edits": [
12 | {
13 | "timestamp": "2023-10-08T21:12:33.289465",
14 | "job_id": "JOB_evaluate_75a2e8a3-2920-48a7-9d70-942d3cb9c71b"
15 | }
16 | ],
17 | "version": "b11ea9f9-b2d7-4b58-a1c2-c6b1700bed97",
18 | "validity_days": null,
19 | "validity_seconds": null,
20 | "edit_in_progress": false,
21 | "data_node_properties": {
22 | "is_generated": true,
23 | "name": null
24 | }
25 | }
--------------------------------------------------------------------------------
/tests/core/_entity/data_sample_migrated/data_nodes/DATANODE_initial_dataset_7d571742-92a5-457f-aef2-5d2eff3a3e99.json:
--------------------------------------------------------------------------------
1 | {
2 | "id": "DATANODE_initial_dataset_7d571742-92a5-457f-aef2-5d2eff3a3e99",
3 | "config_id": "initial_dataset",
4 | "scope": "",
5 | "storage_type": "csv",
6 | "owner_id": null,
7 | "parent_ids": [
8 | "TASK_clean_data_2b17fa43-6746-45d6-b22d-0f5b09b9048a"
9 | ],
10 | "last_edit_date": "2023-10-08T21:12:32.933049",
11 | "edits": [],
12 | "version": "b11ea9f9-b2d7-4b58-a1c2-c6b1700bed97",
13 | "validity_days": null,
14 | "validity_seconds": null,
15 | "edit_in_progress": false,
16 | "data_node_properties": {
17 | "path": "data/dataset.csv",
18 | "has_header": true,
19 | "exposed_type": "pandas",
20 | "name": null
21 | }
22 | }
--------------------------------------------------------------------------------
/tests/core/_entity/data_sample_migrated/jobs/JOB_clean_data_969c7c6d-93ec-4044-bda5-20f8e3abbb17.json:
--------------------------------------------------------------------------------
1 | {
2 | "id": "JOB_clean_data_969c7c6d-93ec-4044-bda5-20f8e3abbb17",
3 | "task_id": "TASK_clean_data_2b17fa43-6746-45d6-b22d-0f5b09b9048a",
4 | "status": "",
5 | "force": false,
6 | "submit_id": "SUBMISSION_0bd14857-813f-4273-b457-4a763073b7f8",
7 | "creation_date": "2023-10-08T21:12:32.990839",
8 | "subscribers": [
9 | {
10 | "fct_name": "_Orchestrator._on_status_change",
11 | "fct_params": [],
12 | "fct_module": "taipy.core._orchestrator._orchestrator"
13 | }
14 | ],
15 | "stacktrace": [],
16 | "version": "b11ea9f9-b2d7-4b58-a1c2-c6b1700bed97",
17 | "submit_entity_id": null
18 | }
--------------------------------------------------------------------------------
/tests/core/_entity/data_sample_migrated/jobs/JOB_evaluate_75a2e8a3-2920-48a7-9d70-942d3cb9c71b.json:
--------------------------------------------------------------------------------
1 | {
2 | "id": "JOB_evaluate_75a2e8a3-2920-48a7-9d70-942d3cb9c71b",
3 | "task_id": "TASK_evaluate_57cbea3b-332e-47ac-a468-472e4885eb82",
4 | "status": "",
5 | "force": false,
6 | "submit_id": "SUBMISSION_0bd14857-813f-4273-b457-4a763073b7f8",
7 | "creation_date": "2023-10-08T21:12:33.008351",
8 | "subscribers": [
9 | {
10 | "fct_name": "_Orchestrator._on_status_change",
11 | "fct_params": [],
12 | "fct_module": "taipy.core._orchestrator._orchestrator"
13 | }
14 | ],
15 | "stacktrace": [],
16 | "version": "b11ea9f9-b2d7-4b58-a1c2-c6b1700bed97",
17 | "submit_entity_id": null
18 | }
--------------------------------------------------------------------------------
/tests/core/_entity/data_sample_migrated/jobs/JOB_predict_e2298b78-c093-415c-ba7e-1c3f22463546.json:
--------------------------------------------------------------------------------
1 | {
2 | "id": "JOB_predict_e2298b78-c093-415c-ba7e-1c3f22463546",
3 | "task_id": "TASK_predict_cf8b3c83-5ea7-40eb-b8af-d5240852ff5b",
4 | "status": "",
5 | "force": false,
6 | "submit_id": "SUBMISSION_0bd14857-813f-4273-b457-4a763073b7f8",
7 | "creation_date": "2023-10-08T21:12:32.999167",
8 | "subscribers": [
9 | {
10 | "fct_name": "_Orchestrator._on_status_change",
11 | "fct_params": [],
12 | "fct_module": "taipy.core._orchestrator._orchestrator"
13 | }
14 | ],
15 | "stacktrace": [],
16 | "version": "b11ea9f9-b2d7-4b58-a1c2-c6b1700bed97",
17 | "submit_entity_id": null
18 | }
--------------------------------------------------------------------------------
/tests/core/_entity/data_sample_migrated/scenarios/SCENARIO_scenario_62d29866-610e-4173-bd22-6a0555e80ff4.json:
--------------------------------------------------------------------------------
1 | {
2 | "id": "SCENARIO_scenario_62d29866-610e-4173-bd22-6a0555e80ff4",
3 | "config_id": "scenario",
4 | "pipelines": null,
5 | "properties": {
6 | "name": "scenario_2021-01-25"
7 | },
8 | "creation_date": "2021-01-25T00:00:00",
9 | "primary_scenario": true,
10 | "subscribers": [],
11 | "tags": [],
12 | "version": "b11ea9f9-b2d7-4b58-a1c2-c6b1700bed97",
13 | "cycle": "CYCLE_January_2021_4463f2a8-d551-4d36-aaa1-2bbbb033fd3b",
14 | "tasks": [
15 | "TASK_clean_data_2b17fa43-6746-45d6-b22d-0f5b09b9048a",
16 | "TASK_predict_cf8b3c83-5ea7-40eb-b8af-d5240852ff5b",
17 | "TASK_evaluate_57cbea3b-332e-47ac-a468-472e4885eb82"
18 | ],
19 | "additional_data_nodes": []
20 | }
--------------------------------------------------------------------------------
/tests/core/_entity/data_sample_migrated/tasks/TASK_clean_data_2b17fa43-6746-45d6-b22d-0f5b09b9048a.json:
--------------------------------------------------------------------------------
1 | {
2 | "id": "TASK_clean_data_2b17fa43-6746-45d6-b22d-0f5b09b9048a",
3 | "config_id": "clean_data",
4 | "input_ids": [
5 | "DATANODE_initial_dataset_7d571742-92a5-457f-aef2-5d2eff3a3e99"
6 | ],
7 | "function_name": "clean_data",
8 | "function_module": "algos.algos",
9 | "output_ids": [
10 | "DATANODE_cleaned_dataset_0e715489-98ee-4a06-9b38-21409ed04d03"
11 | ],
12 | "version": "b11ea9f9-b2d7-4b58-a1c2-c6b1700bed97",
13 | "properties": {},
14 | "parent_ids": [
15 | "SCENARIO_scenario_62d29866-610e-4173-bd22-6a0555e80ff4"
16 | ],
17 | "owner_id": null,
18 | "skippable": true
19 | }
--------------------------------------------------------------------------------
/tests/core/_entity/data_sample_migrated/tasks/TASK_evaluate_57cbea3b-332e-47ac-a468-472e4885eb82.json:
--------------------------------------------------------------------------------
1 | {
2 | "id": "TASK_evaluate_57cbea3b-332e-47ac-a468-472e4885eb82",
3 | "owner_id": "SCENARIO_scenario_62d29866-610e-4173-bd22-6a0555e80ff4",
4 | "parent_ids": [
5 | "SCENARIO_scenario_62d29866-610e-4173-bd22-6a0555e80ff4"
6 | ],
7 | "config_id": "evaluate",
8 | "input_ids": [
9 | "DATANODE_predictions_04a03760-c963-46cc-bd24-d798f5821cef",
10 | "DATANODE_cleaned_dataset_0e715489-98ee-4a06-9b38-21409ed04d03",
11 | "DATANODE_day_09c01a64-a998-4ba6-ac24-43e02db535a3"
12 | ],
13 | "function_name": "evaluate",
14 | "function_module": "algos.algos",
15 | "output_ids": [
16 | "DATANODE_evaluation_7173c0d1-2b84-486f-af76-82788f957c3b"
17 | ],
18 | "version": "b11ea9f9-b2d7-4b58-a1c2-c6b1700bed97",
19 | "skippable": false,
20 | "properties": {}
21 | }
--------------------------------------------------------------------------------
/tests/core/_entity/data_sample_migrated/tasks/TASK_predict_cf8b3c83-5ea7-40eb-b8af-d5240852ff5b.json:
--------------------------------------------------------------------------------
1 | {
2 | "id": "TASK_predict_cf8b3c83-5ea7-40eb-b8af-d5240852ff5b",
3 | "owner_id": "SCENARIO_scenario_62d29866-610e-4173-bd22-6a0555e80ff4",
4 | "parent_ids": [
5 | "SCENARIO_scenario_62d29866-610e-4173-bd22-6a0555e80ff4"
6 | ],
7 | "config_id": "predict",
8 | "input_ids": [
9 | "DATANODE_cleaned_dataset_0e715489-98ee-4a06-9b38-21409ed04d03",
10 | "DATANODE_day_09c01a64-a998-4ba6-ac24-43e02db535a3"
11 | ],
12 | "function_name": "predict",
13 | "function_module": "algos.algos",
14 | "output_ids": [
15 | "DATANODE_predictions_04a03760-c963-46cc-bd24-d798f5821cef"
16 | ],
17 | "version": "b11ea9f9-b2d7-4b58-a1c2-c6b1700bed97",
18 | "skippable": true,
19 | "properties": {}
20 | }
--------------------------------------------------------------------------------
/tests/core/_entity/data_sample_migrated/version.json:
--------------------------------------------------------------------------------
1 | {
2 | "latest_version": "b11ea9f9-b2d7-4b58-a1c2-c6b1700bed97",
3 | "development_version": "b11ea9f9-b2d7-4b58-a1c2-c6b1700bed97",
4 | "production_version": []
5 | }
--------------------------------------------------------------------------------
/tests/core/_manager/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright 2021-2025 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 |
--------------------------------------------------------------------------------
/tests/core/_orchestrator/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright 2021-2025 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 |
--------------------------------------------------------------------------------
/tests/core/_orchestrator/_dispatcher/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright 2021-2025 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 |
--------------------------------------------------------------------------------
/tests/core/_version/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright 2021-2025 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 |
--------------------------------------------------------------------------------
/tests/core/_version/dataset_2.0/cycles/CYCLE_Frequency.DAILY_2023-01-18T172525.892619_8956558e-d108-4ac4-8684-60f3e5ef9e8f.json:
--------------------------------------------------------------------------------
1 | {
2 | "id": "CYCLE_Frequency.DAILY_2023-01-18T172525.892619_8956558e-d108-4ac4-8684-60f3e5ef9e8f",
3 | "name": "Frequency.DAILY_2023-01-18T17:25:25.892619",
4 | "frequency": "",
5 | "properties": {
6 | "display_name": "2023-01-18T00:00:00"
7 | },
8 | "creation_date": "2023-01-18T17:25:25.892619",
9 | "start_date": "2023-01-18T00:00:00",
10 | "end_date": "2023-01-18T23:59:59.999999"
11 | }
12 |
--------------------------------------------------------------------------------
/tests/core/_version/dataset_2.0/data_nodes/DATANODE_d1_3d65c33b-b188-4402-8d2c-3b26d98b9a9e.json:
--------------------------------------------------------------------------------
1 | {
2 | "id": "DATANODE_d1_3d65c33b-b188-4402-8d2c-3b26d98b9a9e",
3 | "config_id": "d1",
4 | "scope": "",
5 | "storage_type": "in_memory",
6 | "name": "DATANODE_d1_3d65c33b-b188-4402-8d2c-3b26d98b9a9e",
7 | "owner_id": "SCENARIO_my_scenario_c4307ae8-d2ce-4802-8b16-8307baa7cff1",
8 | "parent_ids": [
9 | "TASK_my_task_53cf9993-047f-4220-9c03-e28fa250f6b3"
10 | ],
11 | "last_edit_date": "2023-01-18T17:28:05.302529",
12 | "edits": [],
13 | "cacheable": false,
14 | "validity_days": null,
15 | "validity_seconds": null,
16 | "edit_in_progress": false,
17 | "data_node_properties": {
18 | "custom_prop": "foo"
19 | }
20 | }
21 |
--------------------------------------------------------------------------------
/tests/core/_version/dataset_2.0/data_nodes/DATANODE_d2_bd8ee43e-6fa9-4832-b2e7-c0c9516b1e1c.json:
--------------------------------------------------------------------------------
1 | {
2 | "id": "DATANODE_d2_bd8ee43e-6fa9-4832-b2e7-c0c9516b1e1c",
3 | "config_id": "d2",
4 | "scope": "",
5 | "storage_type": "csv",
6 | "name": "DATANODE_d2_bd8ee43e-6fa9-4832-b2e7-c0c9516b1e1c",
7 | "owner_id": "SCENARIO_my_scenario_c4307ae8-d2ce-4802-8b16-8307baa7cff1",
8 | "parent_ids": [
9 | "TASK_my_task_53cf9993-047f-4220-9c03-e28fa250f6b3"
10 | ],
11 | "last_edit_date": null,
12 | "edits": [],
13 | "cacheable": false,
14 | "validity_days": null,
15 | "validity_seconds": null,
16 | "edit_in_progress": false,
17 | "data_node_properties": {
18 | "default_path": "foo.csv",
19 | "has_header": true,
20 | "path": "foo.csv",
21 | "exposed_type": "pandas",
22 | "custom_prop": "foo"
23 | }
24 | }
25 |
--------------------------------------------------------------------------------
/tests/core/_version/dataset_2.0/scenarios/SCENARIO_my_scenario_c4307ae8-d2ce-4802-8b16-8307baa7cff1.json:
--------------------------------------------------------------------------------
1 | {
2 | "id": "SCENARIO_my_scenario_c4307ae8-d2ce-4802-8b16-8307baa7cff1",
3 | "config_id": "my_scenario",
4 | "sequences": [
5 | "SEQUENCE_my_sequence_1b97a539-ca51-4eb8-aa64-c232269618c6"
6 | ],
7 | "properties": {"custom_prop": "foo"},
8 | "creation_date": "2023-01-18T17:28:05.354251",
9 | "primary_scenario": true,
10 | "subscribers": [],
11 | "tags": [],
12 | "cycle": "CYCLE_Frequency.DAILY_2023-01-18T172525.892619_8956558e-d108-4ac4-8684-60f3e5ef9e8f"
13 | }
14 |
--------------------------------------------------------------------------------
/tests/core/_version/dataset_2.0/sequences/SEQUENCE_my_sequence_1b97a539-ca51-4eb8-aa64-c232269618c6.json:
--------------------------------------------------------------------------------
1 | {
2 | "id": "SEQUENCE_my_sequence_1b97a539-ca51-4eb8-aa64-c232269618c6",
3 | "owner_id": "SCENARIO_my_scenario_c4307ae8-d2ce-4802-8b16-8307baa7cff1",
4 | "parent_ids": [
5 | "SCENARIO_my_scenario_c4307ae8-d2ce-4802-8b16-8307baa7cff1"
6 | ],
7 | "config_id": "my_sequence",
8 | "properties": {"custom_prop": "foo"},
9 | "tasks": [
10 | "TASK_my_task_53cf9993-047f-4220-9c03-e28fa250f6b3"
11 | ],
12 | "subscribers": []
13 | }
14 |
--------------------------------------------------------------------------------
/tests/core/_version/dataset_2.0/tasks/TASK_my_task_53cf9993-047f-4220-9c03-e28fa250f6b3.json:
--------------------------------------------------------------------------------
1 | {
2 | "id": "TASK_my_task_53cf9993-047f-4220-9c03-e28fa250f6b3",
3 | "owner_id": "SCENARIO_my_scenario_c4307ae8-d2ce-4802-8b16-8307baa7cff1",
4 | "parent_ids": [
5 | "SEQUENCE_my_sequence_1b97a539-ca51-4eb8-aa64-c232269618c6"
6 | ],
7 | "config_id": "my_task",
8 | "input_ids": [
9 | "DATANODE_d1_3d65c33b-b188-4402-8d2c-3b26d98b9a9e"
10 | ],
11 | "function_name": "twice",
12 | "function_module": "tests.core.version.test_legacy_version_migration",
13 | "output_ids": [
14 | "DATANODE_d2_bd8ee43e-6fa9-4832-b2e7-c0c9516b1e1c"
15 | ]
16 | }
17 |
--------------------------------------------------------------------------------
/tests/core/common/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright 2021-2025 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 |
--------------------------------------------------------------------------------
/tests/core/common/logger.conf:
--------------------------------------------------------------------------------
1 | [loggers]
2 | keys=root,Taipy
3 |
4 | [handlers]
5 | keys=consoleHandler
6 |
7 | [formatters]
8 | keys=simpleFormatter
9 |
10 | [logger_root]
11 | level=DEBUG
12 | handlers=consoleHandler
13 |
14 | [logger_Taipy]
15 | level=DEBUG
16 | handlers=consoleHandler
17 | qualname=Taipy
18 | propagate=0
19 |
20 | [handler_consoleHandler]
21 | class=StreamHandler
22 | level=DEBUG
23 | formatter=simpleFormatter
24 | args=(sys.stdout,)
25 |
26 | [formatter_simpleFormatter]
27 | format=%(asctime)s - %(name)s - %(levelname)s - %(message)s
28 |
--------------------------------------------------------------------------------
/tests/core/config/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright 2021-2025 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 |
--------------------------------------------------------------------------------
/tests/core/config/checkers/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright 2021-2025 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 |
--------------------------------------------------------------------------------
/tests/core/cycle/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright 2021-2025 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 |
--------------------------------------------------------------------------------
/tests/core/data/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright 2021-2025 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 |
--------------------------------------------------------------------------------
/tests/core/data/data_sample/config.toml:
--------------------------------------------------------------------------------
1 | [DATA_NODE.default]
2 | has_header = false
3 |
4 | [DATA_NODE.foo]
5 | path = "path_from_config_file"
6 |
--------------------------------------------------------------------------------
/tests/core/data/data_sample/data_source_template.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "foo",
3 | "type": "csv",
4 | "scope": "SEQUENCE",
5 | "path": "foo",
6 | "has_header": true
7 | }
8 |
--------------------------------------------------------------------------------
/tests/core/data/data_sample/empty.xlsx:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Avaiga/taipy/f505727b2a5218b753853a009055bf1fa4a6ab5c/tests/core/data/data_sample/empty.xlsx
--------------------------------------------------------------------------------
/tests/core/data/data_sample/example.csv:
--------------------------------------------------------------------------------
1 | id,integer,text
2 | Ibelfu5,584,This is the first row
3 | h89653fu5,7,This is the second row
4 | hdds23,275,This is the third row
5 | q68423,754,This is the fourth row
6 | qqf8,10,This is the fifth row
7 | 5sqf8,11778,This is the sixth row
8 | 5458,95,This is the seventh row
9 | 569ggg8,466,This is the 8th row
10 | kus458,635,This is the 9th row
11 | 5kuds458,9,This is the last row
12 |
--------------------------------------------------------------------------------
/tests/core/data/data_sample/example.p:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Avaiga/taipy/f505727b2a5218b753853a009055bf1fa4a6ab5c/tests/core/data/data_sample/example.p
--------------------------------------------------------------------------------
/tests/core/data/data_sample/example.parquet:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Avaiga/taipy/f505727b2a5218b753853a009055bf1fa4a6ab5c/tests/core/data/data_sample/example.parquet
--------------------------------------------------------------------------------
/tests/core/data/data_sample/example.xlsx:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Avaiga/taipy/f505727b2a5218b753853a009055bf1fa4a6ab5c/tests/core/data/data_sample/example.xlsx
--------------------------------------------------------------------------------
/tests/core/data/data_sample/example_2.csv:
--------------------------------------------------------------------------------
1 | id;integer;text
2 | Ibelfu5;584;This is the first row
3 | h89653fu5;7;This is the second row
4 | hdds23;275;This is the third row
5 | q68423;754;This is the fourth row
6 | qqf8;10;This is the fifth row
7 | 5sqf8;11778;This is the sixth row
8 | 5458;95;This is the seventh row
9 | 569ggg8;466;This is the 8th row
10 | kus458;635;This is the 9th row
11 | 5kuds458;9;This is the last row
12 | jEn4a;1001;1st appended line
13 | 4ajeQ;1002;2nd appended line
14 |
--------------------------------------------------------------------------------
/tests/core/data/data_sample/example_2.xlsx:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Avaiga/taipy/f505727b2a5218b753853a009055bf1fa4a6ab5c/tests/core/data/data_sample/example_2.xlsx
--------------------------------------------------------------------------------
/tests/core/data/data_sample/example_3.xlsx:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Avaiga/taipy/f505727b2a5218b753853a009055bf1fa4a6ab5c/tests/core/data/data_sample/example_3.xlsx
--------------------------------------------------------------------------------
/tests/core/data/data_sample/example_4.xlsx:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Avaiga/taipy/f505727b2a5218b753853a009055bf1fa4a6ab5c/tests/core/data/data_sample/example_4.xlsx
--------------------------------------------------------------------------------
/tests/core/data/data_sample/invalid.json.txt:
--------------------------------------------------------------------------------
1 | {
2 | []
3 | }
4 |
--------------------------------------------------------------------------------
/tests/core/data/data_sample/json/example_dict.json:
--------------------------------------------------------------------------------
1 | {
2 | "id": "1",
3 | "integer": 1,
4 | "text": "abc"
5 | }
6 |
--------------------------------------------------------------------------------
/tests/core/data/data_sample/json/example_int.json:
--------------------------------------------------------------------------------
1 | 1
2 |
--------------------------------------------------------------------------------
/tests/core/data/data_sample/json/example_list.json:
--------------------------------------------------------------------------------
1 | [
2 | {
3 | "id": "1",
4 | "integer": 1,
5 | "text": "abc"
6 | },
7 | {
8 | "id": "2",
9 | "integer": 2,
10 | "text": "def"
11 | },
12 | {
13 | "id": "3",
14 | "integer": 3,
15 | "text": "ghi"
16 | },
17 | null
18 | ]
19 |
--------------------------------------------------------------------------------
/tests/core/data/data_sample/json/example_null.json:
--------------------------------------------------------------------------------
1 | null
2 |
--------------------------------------------------------------------------------
/tests/core/data/data_sample/parquet_example/data.parquet:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Avaiga/taipy/f505727b2a5218b753853a009055bf1fa4a6ab5c/tests/core/data/data_sample/parquet_example/data.parquet
--------------------------------------------------------------------------------
/tests/core/data_sample/example.csv:
--------------------------------------------------------------------------------
1 | number
2 | 10
3 | 20
4 | 30
5 | 40
6 | 50
7 | 60
8 | 70
9 | 80
10 | 90
11 | 100
12 |
--------------------------------------------------------------------------------
/tests/core/data_sample/example.xlsx:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Avaiga/taipy/f505727b2a5218b753853a009055bf1fa4a6ab5c/tests/core/data_sample/example.xlsx
--------------------------------------------------------------------------------
/tests/core/job/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright 2021-2025 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 |
--------------------------------------------------------------------------------
/tests/core/notification/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright 2021-2025 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 |
--------------------------------------------------------------------------------
/tests/core/repository/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright 2021-2025 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 |
--------------------------------------------------------------------------------
/tests/core/scenario/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright 2021-2025 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 |
--------------------------------------------------------------------------------
/tests/core/sequence/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright 2021-2025 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 |
--------------------------------------------------------------------------------
/tests/core/submission/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright 2021-2025 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 |
--------------------------------------------------------------------------------
/tests/core/task/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright 2021-2025 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 |
--------------------------------------------------------------------------------
/tests/event/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright 2021-2025 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 |
--------------------------------------------------------------------------------
/tests/gui/.gitignore:
--------------------------------------------------------------------------------
1 | !current-covid-patients-hospital.csv
2 |
--------------------------------------------------------------------------------
/tests/gui/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright 2021-2025 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 |
--------------------------------------------------------------------------------
/tests/gui/builder/control/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright 2021-2025 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 |
--------------------------------------------------------------------------------
/tests/gui/config/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright 2021-2025 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 |
--------------------------------------------------------------------------------
/tests/gui/control/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright 2021-2025 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 |
--------------------------------------------------------------------------------
/tests/gui/e2e/page_scopes/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright 2021-2025 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 |
--------------------------------------------------------------------------------
/tests/gui/e2e/page_scopes/assets/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright 2021-2025 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 |
--------------------------------------------------------------------------------
/tests/gui/e2e/page_scopes/assets/page3.py:
--------------------------------------------------------------------------------
1 | # Copyright 2021-2025 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 | from taipy.gui import Markdown
13 |
14 | x = 50
15 |
16 | page = Markdown(
17 | """
18 | <|{x}|id=x1|>
19 |
20 | x * 2 = <|{x*2}|id=x2|>
21 |
22 | <|{x}|number|id=xinput|>
23 | """
24 | )
25 |
--------------------------------------------------------------------------------
/tests/gui/e2e/page_scopes/assets2/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright 2021-2025 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 |
--------------------------------------------------------------------------------
/tests/gui/e2e/page_scopes/assets2_class_scopes/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright 2021-2025 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 |
--------------------------------------------------------------------------------
/tests/gui/e2e/page_scopes/assets2_class_scopes/page1.md:
--------------------------------------------------------------------------------
1 | # Page1 - Add
2 |
3 | Operand 1: <|{operand_1}|slider|id=s1|>
4 |
5 | Operand 2: <|{operand_2}|slider|id=s2|>
6 |
7 | Operand 1 + Operand 2 = <|{operand_1 + operand_2}|id=v1|>
8 |
9 | Reset: <|button|on_action=reset|id=btn_reset|>
10 |
--------------------------------------------------------------------------------
/tests/gui/e2e/page_scopes/assets2_class_scopes/page2.md:
--------------------------------------------------------------------------------
1 | # Page2 - Multiply
2 |
3 | Operand 1: <|{operand_1}|slider|id=s1|>
4 |
5 | Operand 2: <|{operand_2}|slider|id=s2|>
6 |
7 | Operand 1 * Operand 2 = <|{operand_1 * operand_2}|id=v1|>
8 |
--------------------------------------------------------------------------------
/tests/gui/e2e/page_scopes/assets3/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright 2021-2025 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 |
--------------------------------------------------------------------------------
/tests/gui/e2e/page_scopes/assets3/page1.py:
--------------------------------------------------------------------------------
1 | # Copyright 2021-2025 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 | from taipy.gui import Markdown
13 |
14 | page = Markdown(
15 | """
16 |
17 | <|{n}|id=t1|>
18 |
19 | """
20 | )
21 |
--------------------------------------------------------------------------------
/tests/gui/e2e/page_scopes/assets3_class_scopes/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright 2021-2025 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 |
--------------------------------------------------------------------------------
/tests/gui/e2e/page_scopes/assets3_class_scopes/page1.py:
--------------------------------------------------------------------------------
1 | # Copyright 2021-2025 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 | from taipy.gui import Markdown, Page
13 |
14 |
15 | class Page1(Page):
16 | def create_page(self):
17 | return Markdown(
18 | """
19 |
20 | <|{n}|id=t1|>
21 |
22 | """
23 | )
24 |
--------------------------------------------------------------------------------
/tests/gui/e2e/page_scopes/assets4/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright 2021-2025 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 |
--------------------------------------------------------------------------------
/tests/gui/e2e/page_scopes/assets4/page1.py:
--------------------------------------------------------------------------------
1 | # Copyright 2021-2025 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 | from taipy.gui import Markdown
13 |
14 | d = 20
15 |
16 |
17 | def reset_d(state):
18 | state.d = d # a
19 |
20 |
21 | page = Markdown(
22 | """
23 |
24 | <|{d}|text|id=t1|>
25 |
26 | <|{d}|number|id=n1|>
27 |
28 | """
29 | )
30 |
--------------------------------------------------------------------------------
/tests/gui/e2e/page_scopes/assets5_import_all/__init__.py:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Avaiga/taipy/f505727b2a5218b753853a009055bf1fa4a6ab5c/tests/gui/e2e/page_scopes/assets5_import_all/__init__.py
--------------------------------------------------------------------------------
/tests/gui/e2e/page_scopes/assets5_import_all/folder1/__init__.py:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Avaiga/taipy/f505727b2a5218b753853a009055bf1fa4a6ab5c/tests/gui/e2e/page_scopes/assets5_import_all/folder1/__init__.py
--------------------------------------------------------------------------------
/tests/gui/e2e/page_scopes/assets5_import_all/folder1/content1.py:
--------------------------------------------------------------------------------
1 | a = 10
2 |
3 | def update_a(state):
4 | state.a = 20
5 |
--------------------------------------------------------------------------------
/tests/gui/e2e/page_scopes/assets5_import_all/folder1/content2.py:
--------------------------------------------------------------------------------
1 | b = 20
2 |
3 | def update_b(state):
4 | state.b = 40
5 |
--------------------------------------------------------------------------------
/tests/gui/e2e/page_scopes/assets5_import_all/page1.py:
--------------------------------------------------------------------------------
1 | from taipy.gui import Markdown
2 |
3 | from .folder1.content1 import a, update_a # noqa: F401
4 | from .folder1.content2 import * # noqa: F403
5 |
6 | page = Markdown(
7 | """
8 | <|{a}|id=num_a|>
9 | <|btna|button|on_action=update_a|id=btn_a|>
10 | <|{b}|id=num_b|>
11 | <|btnb|button|on_action=update_b|id=btn_b|>
12 | """
13 | )
14 |
15 |
--------------------------------------------------------------------------------
/tests/gui/e2e/page_scopes/assets6_page_load/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright 2021-2025 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 |
--------------------------------------------------------------------------------
/tests/gui/e2e/page_scopes/assets6_page_load/page1.py:
--------------------------------------------------------------------------------
1 | # Copyright 2021-2025 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 | from taipy.gui import Markdown
13 |
14 | a = 10
15 |
16 |
17 | def on_page_load(state):
18 | state.a = 20
19 |
20 |
21 | page = Markdown("<|{a}|id=text_a|>")
22 |
--------------------------------------------------------------------------------
/tests/gui/e2e/renderers/page1.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | Hey
8 | There
9 |
10 |
11 |
--------------------------------------------------------------------------------
/tests/gui/e2e/renderers/test-assets/page1.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | Hey
8 | There
9 |
10 |
11 |
--------------------------------------------------------------------------------
/tests/gui/e2e/renderers/test-assets/style/style.css:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2021-2025 Avaiga Private Limited
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
5 | * the License. You may obtain a copy of the License at
6 | *
7 | * http://www.apache.org/licenses/LICENSE-2.0
8 | *
9 | * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on
10 | * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
11 | * specific language governing permissions and limitations under the License.
12 | */
13 |
14 | .taipy-text {
15 | color: green;
16 | }
17 | .custom-text {
18 | color: blue;
19 | }
20 |
--------------------------------------------------------------------------------
/tests/gui/extension/extlib_test/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright 2021-2025 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 | from .library import Library
12 |
--------------------------------------------------------------------------------
/tests/gui/gui_specific/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright 2021-2025 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 |
--------------------------------------------------------------------------------
/tests/gui/gui_specific/sample_assets/assets/css/style.css:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2021-2025 Avaiga Private Limited
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
5 | * the License. You may obtain a copy of the License at
6 | *
7 | * http://www.apache.org/licenses/LICENSE-2.0
8 | *
9 | * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on
10 | * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
11 | * specific language governing permissions and limitations under the License.
12 | */
13 |
14 | h1 {
15 | font-size: 50px;
16 | color: red;
17 | }
18 |
--------------------------------------------------------------------------------
/tests/gui/gui_specific/sample_assets/page1.md:
--------------------------------------------------------------------------------
1 | # Taipy Demo Page 1
2 |
--------------------------------------------------------------------------------
/tests/gui/gui_specific/sample_assets/ptest.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | Document
8 |
9 |
10 |
This is a paragraph
11 |
12 |
13 |
--------------------------------------------------------------------------------
/tests/gui/hooks/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright 2021-2025 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 |
--------------------------------------------------------------------------------
/tests/gui/ignore/no_file/resource.txt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Avaiga/taipy/f505727b2a5218b753853a009055bf1fa4a6ab5c/tests/gui/ignore/no_file/resource.txt
--------------------------------------------------------------------------------
/tests/gui/ignore/with_file/.taipyignore:
--------------------------------------------------------------------------------
1 | resource.txt
2 |
--------------------------------------------------------------------------------
/tests/gui/ignore/with_file/resource.txt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Avaiga/taipy/f505727b2a5218b753853a009055bf1fa4a6ab5c/tests/gui/ignore/with_file/resource.txt
--------------------------------------------------------------------------------
/tests/gui/ignore/with_file/resource2.txt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Avaiga/taipy/f505727b2a5218b753853a009055bf1fa4a6ab5c/tests/gui/ignore/with_file/resource2.txt
--------------------------------------------------------------------------------
/tests/gui/lambdas/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright 2021-2025 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 |
--------------------------------------------------------------------------------
/tests/gui/lambdas/another_module.py:
--------------------------------------------------------------------------------
1 | exported_page ="<|Hello|button|on_action={lambda s,i,p: None}|>"
2 |
--------------------------------------------------------------------------------
/tests/gui/notebook/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright 2021-2025 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 | from taipy.gui import Gui, Markdown
13 |
--------------------------------------------------------------------------------
/tests/gui/resources/fred.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Avaiga/taipy/f505727b2a5218b753853a009055bf1fa4a6ab5c/tests/gui/resources/fred.png
--------------------------------------------------------------------------------
/tests/gui/resources/taipan.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Avaiga/taipy/f505727b2a5218b753853a009055bf1fa4a6ab5c/tests/gui/resources/taipan.jpg
--------------------------------------------------------------------------------
/tests/gui/resources/taipy_env:
--------------------------------------------------------------------------------
1 | run_browser = False
2 | port=5555
3 |
--------------------------------------------------------------------------------
/tests/gui/server/ws/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright 2021-2025 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 |
--------------------------------------------------------------------------------
/tests/gui_core/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright 2021-2025 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 |
--------------------------------------------------------------------------------
/tests/rest/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright 2021-2025 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 |
--------------------------------------------------------------------------------
/tests/rest/json/expected/cycle.json:
--------------------------------------------------------------------------------
1 | {
2 | "id": "CYCLE_Frequency.DAILY_2022-03-31T215052.349698_4dfea10a-605f-4d02-91cd-cc8c43cd7d2f",
3 | "name": "Frequency.DAILY_2022-03-31T21:50:52.349698",
4 | "frequency": "",
5 | "properties": {},
6 | "creation_date": "2022-03-31T21:50:52.349698",
7 | "start_date": "2022-03-31T00:00:00",
8 | "end_date": "2022-03-31T23:59:59.999999"
9 | }
10 |
--------------------------------------------------------------------------------
/tests/rest/json/expected/datanode.json:
--------------------------------------------------------------------------------
1 | {
2 | "id": "DATANODE_day_8c0595aa-2dcf-4080-aa78-2eebd7619c9b",
3 | "config_id": "day",
4 | "scope": "",
5 | "storage_type": "pickle",
6 | "name": "DATANODE_day_8c0595aa-2dcf-4080-aa78-2eebd7619c9b",
7 | "owner_id": "SCENARIO_scenario_a9c3eea2-2af3-4a85-a0c3-ef98ff5bd586",
8 | "parent_ids": ["TASK_evaluate_task_31f1ecdf-2b75-4cd8-9509-9e70edab9189"],
9 | "last_edit_date": null,
10 | "job_ids": [],
11 | "validity_days": null,
12 | "validity_seconds": null,
13 | "edit_in_progress": false,
14 | "data_node_properties": {
15 | },
16 | "version": "1.0"
17 | }
18 |
--------------------------------------------------------------------------------
/tests/rest/json/expected/job.json:
--------------------------------------------------------------------------------
1 | {
2 | "id": "JOB_602e112d-2bfa-4813-8d02-79da294fe56f",
3 | "task_id": "TASK_evaluate_task_bf7796b3-e248-4e44-a87f-420b748ea461",
4 | "status": "",
5 | "force": false,
6 | "creation_date": "2022-03-31T22:00:23.710789",
7 | "subscribers": [
8 | {
9 | "fct_name": "_Orchestrator._on_status_change",
10 | "fct_module": "taipy.core._orchestrator._orchestrator"
11 | }
12 | ],
13 | "stacktrace": [],
14 | "version": "1.0"
15 | }
16 |
--------------------------------------------------------------------------------
/tests/rest/json/expected/scenario.json:
--------------------------------------------------------------------------------
1 | {
2 | "id": "SCENARIO_scenario_a9c3eea2-2af3-4a85-a0c3-ef98ff5bd586",
3 | "config_id": "scenario",
4 | "tasks": [
5 | "TASK_forecast_task_7e1bac33-15f1-4cfd-8702-17adeee902cb",
6 | "TASK_evaluate_task_31f1ecdf-2b75-4cd8-9509-9e70eddc6973"
7 | ],
8 | "additional_data_nodes": [],
9 | "sequences": [
10 | "SEQUENCE_sequence_0e1c5dd3-9896-4221-bfc8-6924acd11147"
11 | ],
12 | "properties": {},
13 | "creation_date": "2022-03-31T21:50:52.360872",
14 | "primary_scenario": true,
15 | "subscribers": [],
16 | "tags": [],
17 | "cycle": "CYCLE_Frequency.DAILY_2022-03-31T215052.349698_4dfea10a-605f-4d02-91cd-cc8c43cd7d2f",
18 | "version": "1.0"
19 | }
20 |
--------------------------------------------------------------------------------
/tests/rest/json/expected/sequence.json:
--------------------------------------------------------------------------------
1 | {
2 | "id": "SEQUENCE_sequence_0e1c5dd3-9896-4221-bfc8-6924pjg11147",
3 | "owner_id": "SCENARIO_scenario_a9c3eea2-2af3-4a85-a0c3-ef98ff5bd586",
4 | "parent_ids": [],
5 | "config_id": "sequence",
6 | "properties": {},
7 | "tasks": [
8 | "TASK_forecast_task_7e1bac33-15f1-4cfd-8702-17adeee902cb",
9 | "TASK_evaluate_task_31f1ecdf-2b75-4cd8-9509-9e70eddc6973"
10 | ],
11 | "subscribers": [],
12 | "version": "1.0"
13 | }
14 |
--------------------------------------------------------------------------------
/tests/rest/json/expected/task.json:
--------------------------------------------------------------------------------
1 | {
2 | "id": "TASK_evaluate_task_31f1ecdf-2b75-4cd8-9509-9e70eddc6973",
3 | "owner_id": "SCENARIO_scenario_a9c3eea2-2af3-4a85-a0c3-ef98ff5bd586",
4 | "parent_ids": ["SEQUENCE_sequence_0e1c5aa9-9896-4221-bfc8-6924acd11147"],
5 | "config_id": "evaluate_task",
6 | "input_ids": [
7 | "DATANODE_historical_temperature_5525cf20-c3a3-42ce-a1c9-88e988bb49f9",
8 | "DATANODE_forecasts_c1d9ace5-6099-44ce-a90f-6518db37bbf4",
9 | "DATANODE_day_8c0595aa-2dcf-4080-aa78-2eebd7619c9b"
10 | ],
11 | "function_name": "evaluate",
12 | "function_module": "tests.setup.shared.algorithms",
13 | "output_ids": [
14 | "DATANODE_evaluation_a208b475-11ba-452f-aec6-077e46ced49b"
15 | ],
16 | "version": "1.0"
17 | }
18 |
--------------------------------------------------------------------------------
/tests/rest/setup/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright 2021-2025 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 |
--------------------------------------------------------------------------------
/tests/rest/setup/my_model.p:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Avaiga/taipy/f505727b2a5218b753853a009055bf1fa4a6ab5c/tests/rest/setup/my_model.p
--------------------------------------------------------------------------------
/tests/rest/setup/shared/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright 2021-2025 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 |
--------------------------------------------------------------------------------
/tests/templates/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright 2021-2025 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 |
--------------------------------------------------------------------------------
/tests/templates/conftest.py:
--------------------------------------------------------------------------------
1 | # Copyright 2021-2025 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 | import pytest
13 |
14 |
15 | @pytest.fixture(scope="function", autouse=True)
16 | def clean_parser(clean_argparser):
17 | clean_argparser()
18 |
19 | yield
20 |
21 | clean_argparser()
22 |
--------------------------------------------------------------------------------
/tests/tools/__init__.py:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Avaiga/taipy/f505727b2a5218b753853a009055bf1fa4a6ab5c/tests/tools/__init__.py
--------------------------------------------------------------------------------
/tests/tools/release/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright 2021-2025 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 |
--------------------------------------------------------------------------------
/tools/gui/docker/nginx-prefix/Dockerfile:
--------------------------------------------------------------------------------
1 | FROM nginx
2 | COPY default.conf /etc/nginx/conf.d/default.conf
3 |
--------------------------------------------------------------------------------
/tools/gui/docker/nginx-prefix/default.conf:
--------------------------------------------------------------------------------
1 | server {
2 | listen 4000;
3 |
4 | location /prefix {
5 | rewrite /prefix/(.*) /$1 break;
6 | rewrite /prefix / break;
7 | proxy_pass http://172.17.0.1:5000;
8 | }
9 |
10 | location /prefix/socket.io {
11 | proxy_http_version 1.1;
12 | proxy_buffering off;
13 | proxy_set_header Upgrade $http_upgrade;
14 | proxy_set_header Connection "Upgrade";
15 | proxy_pass http://172.17.0.1:5000/socket.io;
16 | }
17 | }
18 |
--------------------------------------------------------------------------------
/tools/packages/requirements.txt:
--------------------------------------------------------------------------------
1 | tabulate
2 | toml
3 | requests
4 |
--------------------------------------------------------------------------------
/tools/packages/taipy-common/MANIFEST.in:
--------------------------------------------------------------------------------
1 | # Package taipy-common
2 | include taipy/common/*.json
3 | include taipy/common/config/*.pyi
4 | include taipy/common/config/*.json
5 |
6 | include setup.requirements.txt
7 | include package_desc.md
8 |
--------------------------------------------------------------------------------
/tools/packages/taipy-common/setup.requirements.txt:
--------------------------------------------------------------------------------
1 | deepdiff>=6.7.0,<=8.1.1
2 | toml>=0.10,<=0.10.2
3 |
--------------------------------------------------------------------------------
/tools/packages/taipy-core/MANIFEST.in:
--------------------------------------------------------------------------------
1 | # Package taipy-core
2 | include taipy/core/*.json
3 | include taipy/core/config/*.json
4 |
5 | include setup.requirements.txt
6 | include package_desc.md
7 |
--------------------------------------------------------------------------------
/tools/packages/taipy-core/setup.requirements.txt:
--------------------------------------------------------------------------------
1 | boto3>=1.29.4,<=1.35.90
2 | networkx>=2.6,<=3.4.2
3 | openpyxl>=3.1.2,<=3.1.5
4 | pandas>=1.3.5,<=2.2.3
5 | pyarrow>=16.0.0,<=18.1.0
6 | pymongo[srv]>=4.2.0,<=4.10.1
7 | sqlalchemy>=2.0.16,<=2.0.36
8 | taipy-common
9 | toml>=0.10,<=0.10.2
10 |
--------------------------------------------------------------------------------
/tools/packages/taipy-gui/MANIFEST.in:
--------------------------------------------------------------------------------
1 | # Package taipy-gui
2 | recursive-include taipy/gui/webapp *
3 | include taipy/gui/version.json
4 | include taipy/gui/viselements.json
5 | include taipy/gui/*.pyi
6 |
7 | include setup.requirements.txt
8 | include package_desc.md
9 |
--------------------------------------------------------------------------------
/tools/packages/taipy-gui/setup.requirements.txt:
--------------------------------------------------------------------------------
1 | charset-normalizer>=3.3.2,<=3.4.1
2 | flask>=3.1.0,<=3.1.0
3 | flask-cors>=5.0.0,<=5.0.0
4 | flask-socketio>=5.4.1,<=5.5.0
5 | gevent>=24.11.1,<=24.11.1
6 | gevent-websocket>=0.10.1,<=0.10.1
7 | gitignore-parser>=0.1,<=0.1.11
8 | kthread>=0.2.3,<=0.2.3
9 | markdown>=3.4.4,<=3.7
10 | pandas>=1.3.5,<=2.2.3
11 | python-dotenv>=1.0.0,<=1.0.1
12 | pytz>=2021.3,<=2024.2
13 | simple-websocket>=0.10.1,<=1.1.0
14 | taipy-common
15 | twisted>=24.7.0,<=24.11.0
16 | tzlocal>=3.0,<=5.2
17 | watchdog>=4.0.0,<=6.0.0
18 |
--------------------------------------------------------------------------------
/tools/packages/taipy-rest/MANIFEST.in:
--------------------------------------------------------------------------------
1 | # Package taipy-rest
2 | include taipy/rest/*.json
3 |
4 | include setup.requirements.txt
5 | include package_desc.md
6 |
--------------------------------------------------------------------------------
/tools/packages/taipy-rest/setup.requirements.txt:
--------------------------------------------------------------------------------
1 | apispec[yaml]>=6.3,<=6.8.0
2 | apispec-webframeworks>=0.5.2,<=1.2.0
3 | flask>=3.1.0,<=3.1.0
4 | flask-restful>=0.3.9,<=0.3.10
5 | marshmallow>=3.20.1,<=3.23.2
6 | passlib>=1.7.4,<=1.7.4
7 | taipy-core
8 |
--------------------------------------------------------------------------------
/tools/packages/taipy-templates/MANIFEST.in:
--------------------------------------------------------------------------------
1 | # Package taipy-templates
2 | recursive-include taipy/templates *
3 |
4 | include setup.requirements.txt
5 | include package_desc.md
6 |
--------------------------------------------------------------------------------
/tools/packages/taipy-templates/setup.requirements.txt:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/tools/packages/taipy/MANIFEST.in:
--------------------------------------------------------------------------------
1 | # Package taipy
2 | include taipy/*.json
3 | include taipy/gui_core/*.json
4 | include taipy/gui_core/lib/*.js
5 |
6 | include setup.requirements.txt
7 | include package_desc.md
8 |
--------------------------------------------------------------------------------
/tools/packages/taipy/setup.requirements.txt:
--------------------------------------------------------------------------------
1 | cookiecutter>=2.1.1,<=2.6.0
2 | taipy-gui
3 | taipy-rest
4 | taipy-templates
5 |
--------------------------------------------------------------------------------