kedro-light 2023.3.13__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- kedro-light-2023.3.13/LICENSE +21 -0
- kedro-light-2023.3.13/PKG-INFO +51 -0
- kedro-light-2023.3.13/README.md +3 -0
- kedro-light-2023.3.13/kedro_light/__init__.py +7 -0
- kedro-light-2023.3.13/kedro_light/kedro.py +42 -0
- kedro-light-2023.3.13/kedro_light/kedro_viz.py +17 -0
- kedro-light-2023.3.13/kedro_light.egg-info/PKG-INFO +51 -0
- kedro-light-2023.3.13/kedro_light.egg-info/SOURCES.txt +11 -0
- kedro-light-2023.3.13/kedro_light.egg-info/dependency_links.txt +1 -0
- kedro-light-2023.3.13/kedro_light.egg-info/requires.txt +56 -0
- kedro-light-2023.3.13/kedro_light.egg-info/top_level.txt +1 -0
- kedro-light-2023.3.13/pyproject.toml +47 -0
- kedro-light-2023.3.13/setup.cfg +4 -0
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2021 ellwise
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: kedro-light
|
|
3
|
+
Version: 2023.3.13
|
|
4
|
+
Summary: A lightweight interface to Kedro and Kedro-Viz
|
|
5
|
+
Author-email: Elliott Wise <ell.wise@gmail.com>
|
|
6
|
+
License: MIT License
|
|
7
|
+
|
|
8
|
+
Copyright (c) 2021 ellwise
|
|
9
|
+
|
|
10
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
11
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
12
|
+
in the Software without restriction, including without limitation the rights
|
|
13
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
14
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
15
|
+
furnished to do so, subject to the following conditions:
|
|
16
|
+
|
|
17
|
+
The above copyright notice and this permission notice shall be included in all
|
|
18
|
+
copies or substantial portions of the Software.
|
|
19
|
+
|
|
20
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
21
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
22
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
23
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
24
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
25
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
26
|
+
SOFTWARE.
|
|
27
|
+
|
|
28
|
+
Project-URL: source, https://github.com/ellwise/kedro-light
|
|
29
|
+
Project-URL: docs, https://ellwise.github.io/kedro-light
|
|
30
|
+
Description-Content-Type: text/markdown
|
|
31
|
+
Provides-Extra: api
|
|
32
|
+
Provides-Extra: biosequence
|
|
33
|
+
Provides-Extra: dask
|
|
34
|
+
Provides-Extra: dev
|
|
35
|
+
Provides-Extra: docs
|
|
36
|
+
Provides-Extra: geopandas
|
|
37
|
+
Provides-Extra: matplotlib
|
|
38
|
+
Provides-Extra: holoviews
|
|
39
|
+
Provides-Extra: networkx
|
|
40
|
+
Provides-Extra: pandas
|
|
41
|
+
Provides-Extra: pillow
|
|
42
|
+
Provides-Extra: plotly
|
|
43
|
+
Provides-Extra: redis
|
|
44
|
+
Provides-Extra: spark
|
|
45
|
+
Provides-Extra: tensorflow
|
|
46
|
+
Provides-Extra: yaml
|
|
47
|
+
License-File: LICENSE
|
|
48
|
+
|
|
49
|
+
**Kedro Light provides a minimal interface to [Kedro](https://github.com/kedro-org/kedro) and [Kedro-Viz](https://github.com/kedro-org/kedro-viz).**
|
|
50
|
+
To read more about it, check out the documentation [here](https://ellwise.github.io/kedro-light/).
|
|
51
|
+
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
from kedro.framework.session import KedroSession
|
|
2
|
+
from kedro.io import DataCatalog
|
|
3
|
+
from kedro.pipeline import Pipeline
|
|
4
|
+
from kedro.pipeline.node import Node
|
|
5
|
+
from kedro.runner import ParallelRunner, SequentialRunner, ThreadRunner
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
def data_catalog(project_path: str, conf_source: str) -> DataCatalog:
|
|
9
|
+
"""
|
|
10
|
+
Create a data catalog for reading and writing datasets given a project path and a relative
|
|
11
|
+
configuration path
|
|
12
|
+
"""
|
|
13
|
+
with KedroSession(
|
|
14
|
+
session_id=None, project_path=project_path, conf_source=conf_source
|
|
15
|
+
) as session:
|
|
16
|
+
context = session.load_context()
|
|
17
|
+
return context.catalog
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
def run(
|
|
21
|
+
pipeline: Pipeline,
|
|
22
|
+
catalog: DataCatalog,
|
|
23
|
+
parallel=False,
|
|
24
|
+
threaded=False,
|
|
25
|
+
only_missing=False,
|
|
26
|
+
):
|
|
27
|
+
"""Run a pipeline using the datasets within a given data catalog"""
|
|
28
|
+
if parallel and threaded:
|
|
29
|
+
raise ValueError("Can only choose one of `parallel` and `threaded`")
|
|
30
|
+
runner = ParallelRunner() if parallel else ThreadRunner() if threaded else SequentialRunner()
|
|
31
|
+
func = runner.run_only_missing if only_missing else runner.run
|
|
32
|
+
func(pipeline, catalog)
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
def run_node(
|
|
36
|
+
node: Node,
|
|
37
|
+
catalog: DataCatalog,
|
|
38
|
+
is_async=False,
|
|
39
|
+
):
|
|
40
|
+
"""Run a node using the datasets within a given data catalog"""
|
|
41
|
+
runner = SequentialRunner()
|
|
42
|
+
runner.run_node(node, catalog, is_async=is_async)
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
from typing import Dict
|
|
2
|
+
|
|
3
|
+
import uvicorn
|
|
4
|
+
from kedro.io import DataCatalog
|
|
5
|
+
from kedro.pipeline import Pipeline
|
|
6
|
+
from kedro_viz.api import apps
|
|
7
|
+
from kedro_viz.data_access import data_access_manager
|
|
8
|
+
from kedro_viz.server import populate_data
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
def show(pipelines: Dict[str, Pipeline], io: DataCatalog):
|
|
12
|
+
"""Start a Kedro-Viz server for the specified pipeline and data catalog"""
|
|
13
|
+
populate_data(data_access_manager, io, pipelines, None)
|
|
14
|
+
app = apps.create_api_app_from_project(None)
|
|
15
|
+
host, port = "localhost", 4141
|
|
16
|
+
print(f"Kedro-Viz is running on http://{host}:{port}/")
|
|
17
|
+
uvicorn.run(app, host=host, port=port, log_config=None)
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: kedro-light
|
|
3
|
+
Version: 2023.3.13
|
|
4
|
+
Summary: A lightweight interface to Kedro and Kedro-Viz
|
|
5
|
+
Author-email: Elliott Wise <ell.wise@gmail.com>
|
|
6
|
+
License: MIT License
|
|
7
|
+
|
|
8
|
+
Copyright (c) 2021 ellwise
|
|
9
|
+
|
|
10
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
11
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
12
|
+
in the Software without restriction, including without limitation the rights
|
|
13
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
14
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
15
|
+
furnished to do so, subject to the following conditions:
|
|
16
|
+
|
|
17
|
+
The above copyright notice and this permission notice shall be included in all
|
|
18
|
+
copies or substantial portions of the Software.
|
|
19
|
+
|
|
20
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
21
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
22
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
23
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
24
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
25
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
26
|
+
SOFTWARE.
|
|
27
|
+
|
|
28
|
+
Project-URL: source, https://github.com/ellwise/kedro-light
|
|
29
|
+
Project-URL: docs, https://ellwise.github.io/kedro-light
|
|
30
|
+
Description-Content-Type: text/markdown
|
|
31
|
+
Provides-Extra: api
|
|
32
|
+
Provides-Extra: biosequence
|
|
33
|
+
Provides-Extra: dask
|
|
34
|
+
Provides-Extra: dev
|
|
35
|
+
Provides-Extra: docs
|
|
36
|
+
Provides-Extra: geopandas
|
|
37
|
+
Provides-Extra: matplotlib
|
|
38
|
+
Provides-Extra: holoviews
|
|
39
|
+
Provides-Extra: networkx
|
|
40
|
+
Provides-Extra: pandas
|
|
41
|
+
Provides-Extra: pillow
|
|
42
|
+
Provides-Extra: plotly
|
|
43
|
+
Provides-Extra: redis
|
|
44
|
+
Provides-Extra: spark
|
|
45
|
+
Provides-Extra: tensorflow
|
|
46
|
+
Provides-Extra: yaml
|
|
47
|
+
License-File: LICENSE
|
|
48
|
+
|
|
49
|
+
**Kedro Light provides a minimal interface to [Kedro](https://github.com/kedro-org/kedro) and [Kedro-Viz](https://github.com/kedro-org/kedro-viz).**
|
|
50
|
+
To read more about it, check out the documentation [here](https://ellwise.github.io/kedro-light/).
|
|
51
|
+
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
LICENSE
|
|
2
|
+
README.md
|
|
3
|
+
pyproject.toml
|
|
4
|
+
kedro_light/__init__.py
|
|
5
|
+
kedro_light/kedro.py
|
|
6
|
+
kedro_light/kedro_viz.py
|
|
7
|
+
kedro_light.egg-info/PKG-INFO
|
|
8
|
+
kedro_light.egg-info/SOURCES.txt
|
|
9
|
+
kedro_light.egg-info/dependency_links.txt
|
|
10
|
+
kedro_light.egg-info/requires.txt
|
|
11
|
+
kedro_light.egg-info/top_level.txt
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
kedro
|
|
2
|
+
kedro-viz
|
|
3
|
+
|
|
4
|
+
[api]
|
|
5
|
+
kedro[api]
|
|
6
|
+
|
|
7
|
+
[biosequence]
|
|
8
|
+
kedro[biosequence]
|
|
9
|
+
|
|
10
|
+
[dask]
|
|
11
|
+
kedro[dask]
|
|
12
|
+
|
|
13
|
+
[dev]
|
|
14
|
+
black
|
|
15
|
+
build
|
|
16
|
+
isort
|
|
17
|
+
mkdocs-material
|
|
18
|
+
pip-tools
|
|
19
|
+
ruff
|
|
20
|
+
twine
|
|
21
|
+
|
|
22
|
+
[docs]
|
|
23
|
+
kedro[docs]
|
|
24
|
+
|
|
25
|
+
[geopandas]
|
|
26
|
+
kedro[geopandas]
|
|
27
|
+
|
|
28
|
+
[holoviews]
|
|
29
|
+
kedro[holoviews]
|
|
30
|
+
|
|
31
|
+
[matplotlib]
|
|
32
|
+
kedro[matplotlib]
|
|
33
|
+
|
|
34
|
+
[networkx]
|
|
35
|
+
kedro[networkx]
|
|
36
|
+
|
|
37
|
+
[pandas]
|
|
38
|
+
kedro[pandas]
|
|
39
|
+
|
|
40
|
+
[pillow]
|
|
41
|
+
kedro[pillow]
|
|
42
|
+
|
|
43
|
+
[plotly]
|
|
44
|
+
kedro[plotly]
|
|
45
|
+
|
|
46
|
+
[redis]
|
|
47
|
+
kedro[redis]
|
|
48
|
+
|
|
49
|
+
[spark]
|
|
50
|
+
kedro[spark]
|
|
51
|
+
|
|
52
|
+
[tensorflow]
|
|
53
|
+
kedro[tensorflow]
|
|
54
|
+
|
|
55
|
+
[yaml]
|
|
56
|
+
kedro[yaml]
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
kedro_light
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["setuptools"]
|
|
3
|
+
build-backend = "setuptools.build_meta"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
authors = [{name = "Elliott Wise", email = "ell.wise@gmail.com"}]
|
|
7
|
+
description = "A lightweight interface to Kedro and Kedro-Viz"
|
|
8
|
+
dependencies = ["kedro", "kedro-viz"]
|
|
9
|
+
license = {file = "LICENSE"}
|
|
10
|
+
name = "kedro-light"
|
|
11
|
+
readme = "README.md"
|
|
12
|
+
version = "2023.03.13"
|
|
13
|
+
|
|
14
|
+
[project.optional-dependencies]
|
|
15
|
+
api = ["kedro[api]"]
|
|
16
|
+
biosequence = ["kedro[biosequence]"]
|
|
17
|
+
dask = ["kedro[dask]"]
|
|
18
|
+
dev = ["black", "build", "isort", "mkdocs-material", "pip-tools", "ruff", "twine"]
|
|
19
|
+
docs = ["kedro[docs]"]
|
|
20
|
+
geopandas = ["kedro[geopandas]"]
|
|
21
|
+
matplotlib = ["kedro[matplotlib]"]
|
|
22
|
+
holoviews = ["kedro[holoviews]"]
|
|
23
|
+
networkx = ["kedro[networkx]"]
|
|
24
|
+
pandas = ["kedro[pandas]"]
|
|
25
|
+
pillow = ["kedro[pillow]"]
|
|
26
|
+
plotly = ["kedro[plotly]"]
|
|
27
|
+
redis = ["kedro[redis]"]
|
|
28
|
+
spark = ["kedro[spark]"]
|
|
29
|
+
tensorflow = ["kedro[tensorflow]"]
|
|
30
|
+
yaml = ["kedro[yaml]"]
|
|
31
|
+
|
|
32
|
+
[project.urls]
|
|
33
|
+
source = "https://github.com/ellwise/kedro-light"
|
|
34
|
+
docs = "https://ellwise.github.io/kedro-light"
|
|
35
|
+
|
|
36
|
+
[tool.black]
|
|
37
|
+
line-length = 99
|
|
38
|
+
|
|
39
|
+
[tool.isort]
|
|
40
|
+
profile = "black"
|
|
41
|
+
|
|
42
|
+
[tool.ruff]
|
|
43
|
+
ignore-init-module-imports = true
|
|
44
|
+
line-length = 99
|
|
45
|
+
|
|
46
|
+
[tool.setuptools]
|
|
47
|
+
packages = ["kedro_light"]
|