• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

DHARPA-Project / kiara_plugin.network_analysis / 16113187676

07 Jul 2025 09:28AM UTC coverage: 54.789% (+0.1%) from 54.641%
16113187676

push

github

makkus
build: add marimo depenendcy

84 of 163 branches covered (51.53%)

Branch coverage included in aggregate %.

591 of 1069 relevant lines covered (55.29%)

2.76 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

60.61
/src/kiara_plugin/network_analysis/__init__.py
1
# -*- coding: utf-8 -*-
2

3
"""Top-level package for kiara_plugin.network_analysis."""
4

5
import os
5✔
6

7
from kiara.utils.class_loading import (
5✔
8
    KiaraEntryPointItem,
9
    find_data_types_under,
10
    find_kiara_model_classes_under,
11
    find_kiara_modules_under,
12
    find_pipeline_base_path_for_module,
13
)
14
from kiara_plugin.network_analysis.data_types import NetworkDataType
5✔
15
from kiara_plugin.network_analysis.models import NetworkData
5✔
16
from kiara_plugin.network_analysis.utils import (
5✔
17
    guess_node_id_column_name,
18
    guess_node_label_column_name,
19
    guess_source_column_name,
20
    guess_target_column_name,
21
)
22
from kiara_plugin.network_analysis.utils.notebooks.marimo import prepare_altair_graph
5✔
23

24
__all__ = [
5✔
25
    "get_version",
26
    "guess_node_id_column_name",
27
    "guess_node_label_column_name",
28
    "guess_source_column_name",
29
    "guess_target_column_name",
30
    "NetworkData",
31
    "NetworkDataType",
32
    "prepare_altair_graph",
33
]
34

35
__author__ = """Markus Binsteiner"""
5✔
36
__email__ = "markus@frkl.dev"
5✔
37

38

39
KIARA_METADATA = {
5✔
40
    "authors": [{"name": __author__, "email": __email__}],
41
    "description": "Kiara modules for: network_analysis",
42
    "references": {
43
        "source_repo": {
44
            "desc": "The module package git repository.",
45
            "url": "https://github.com/DHARPA-Project/kiara_plugin.network_analysis",
46
        },
47
        "documentation": {
48
            "desc": "The url for the module package documentation.",
49
            "url": "https://DHARPA-Project.github.io/kiara_plugin.network_analysis/",
50
        },
51
    },
52
    "tags": ["network_analysis"],
53
    "labels": {"package": "kiara_plugin.network_analysis"},
54
}
55

56
find_modules: KiaraEntryPointItem = (
5✔
57
    find_kiara_modules_under,
58
    "kiara_plugin.network_analysis.modules",
59
)
60
find_model_classes: KiaraEntryPointItem = (
5✔
61
    find_kiara_model_classes_under,
62
    "kiara_plugin.network_analysis.models",
63
)
64
find_data_types: KiaraEntryPointItem = (
5✔
65
    find_data_types_under,
66
    "kiara_plugin.network_analysis.data_types",
67
)
68
find_pipelines: KiaraEntryPointItem = (
5✔
69
    find_pipeline_base_path_for_module,
70
    "kiara_plugin.network_analysis.pipelines",
71
    KIARA_METADATA,
72
)
73

74

75
def get_version():
5✔
76
    from importlib.metadata import PackageNotFoundError, version
5✔
77

78
    try:
5✔
79
        # Change here if project is renamed and does not equal the package name
80
        dist_name = __name__
5✔
81
        __version__ = version(dist_name)
5✔
82
    except PackageNotFoundError:
×
83
        try:
×
84
            version_file = os.path.join(os.path.dirname(__file__), "version.txt")
×
85

86
            if os.path.exists(version_file):
×
87
                with open(version_file, encoding="utf-8") as vf:
×
88
                    __version__ = vf.read()
×
89
            else:
90
                __version__ = "unknown"
×
91

92
        except Exception:
×
93
            pass
×
94

95
        if __version__ is None:
×
96
            __version__ = "unknown"
×
97

98
    return __version__
5✔
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc