deriva-ml 1.17.10__py3-none-any.whl
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.
- deriva_ml/.DS_Store +0 -0
- deriva_ml/__init__.py +79 -0
- deriva_ml/bump_version.py +142 -0
- deriva_ml/core/__init__.py +39 -0
- deriva_ml/core/base.py +1527 -0
- deriva_ml/core/config.py +69 -0
- deriva_ml/core/constants.py +36 -0
- deriva_ml/core/definitions.py +74 -0
- deriva_ml/core/enums.py +222 -0
- deriva_ml/core/ermrest.py +288 -0
- deriva_ml/core/exceptions.py +28 -0
- deriva_ml/core/filespec.py +116 -0
- deriva_ml/dataset/__init__.py +12 -0
- deriva_ml/dataset/aux_classes.py +225 -0
- deriva_ml/dataset/dataset.py +1519 -0
- deriva_ml/dataset/dataset_bag.py +450 -0
- deriva_ml/dataset/history.py +109 -0
- deriva_ml/dataset/upload.py +439 -0
- deriva_ml/demo_catalog.py +495 -0
- deriva_ml/execution/__init__.py +26 -0
- deriva_ml/execution/environment.py +290 -0
- deriva_ml/execution/execution.py +1180 -0
- deriva_ml/execution/execution_configuration.py +147 -0
- deriva_ml/execution/workflow.py +413 -0
- deriva_ml/feature.py +228 -0
- deriva_ml/install_kernel.py +71 -0
- deriva_ml/model/__init__.py +0 -0
- deriva_ml/model/catalog.py +485 -0
- deriva_ml/model/database.py +719 -0
- deriva_ml/protocols/dataset.py +19 -0
- deriva_ml/run_notebook.py +228 -0
- deriva_ml/schema/__init__.py +3 -0
- deriva_ml/schema/annotations.py +473 -0
- deriva_ml/schema/check_schema.py +104 -0
- deriva_ml/schema/create_schema.py +393 -0
- deriva_ml/schema/deriva-ml-reference.json +8525 -0
- deriva_ml/schema/policy.json +81 -0
- deriva_ml/schema/table_comments_utils.py +57 -0
- deriva_ml/test.py +94 -0
- deriva_ml-1.17.10.dist-info/METADATA +38 -0
- deriva_ml-1.17.10.dist-info/RECORD +45 -0
- deriva_ml-1.17.10.dist-info/WHEEL +5 -0
- deriva_ml-1.17.10.dist-info/entry_points.txt +9 -0
- deriva_ml-1.17.10.dist-info/licenses/LICENSE +201 -0
- deriva_ml-1.17.10.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
{
|
|
2
|
+
"groups": {
|
|
3
|
+
"isrd-systems": ["https://auth.globus.org/3938e0d0-ed35-11e5-8641-22000ab4b42b"],
|
|
4
|
+
"isrd-staff": ["https://auth.globus.org/176baec4-ed26-11e5-8e88-22000ab4b42b"],
|
|
5
|
+
"isrd-testers": ["https://auth.globus.org/9d596ac6-22b9-11e6-b519-22000aef184d"],
|
|
6
|
+
"eye-ai": ["https://auth.globus.org/d38e6f4d-ac96-11ed-8ab4-7b5a369c0a53"],
|
|
7
|
+
|
|
8
|
+
"local-admin": ["admin"],
|
|
9
|
+
"project-admins": ["isrd-systems"],
|
|
10
|
+
"project-writers": ["isrd-systems", "eye-ai"],
|
|
11
|
+
|
|
12
|
+
"project-curators": ["isrd-systems", "local-admin", "eye-ai" ],
|
|
13
|
+
"project-users": ["isrd-systems", "local-admin", "eye-ai"],
|
|
14
|
+
|
|
15
|
+
"empty": [],
|
|
16
|
+
"public": ["*"],
|
|
17
|
+
"admins": [
|
|
18
|
+
"project-admins",
|
|
19
|
+
"local-admin",
|
|
20
|
+
"isrd-systems"
|
|
21
|
+
],
|
|
22
|
+
"curators": ["project-curators"],
|
|
23
|
+
"writers": ["project-writers"],
|
|
24
|
+
"writers_and_curators": [
|
|
25
|
+
"curators",
|
|
26
|
+
"writers"
|
|
27
|
+
],
|
|
28
|
+
"users": [
|
|
29
|
+
"isrd-staff",
|
|
30
|
+
"project-users",
|
|
31
|
+
"writers_and_curators"
|
|
32
|
+
]
|
|
33
|
+
},
|
|
34
|
+
|
|
35
|
+
"acl_definitions": {
|
|
36
|
+
"read_only": {
|
|
37
|
+
"select": "users",
|
|
38
|
+
"enumerate": "users",
|
|
39
|
+
"insert": "empty",
|
|
40
|
+
"update": "empty",
|
|
41
|
+
"delete": "empty"
|
|
42
|
+
},
|
|
43
|
+
"self_serve": {
|
|
44
|
+
"select": "users",
|
|
45
|
+
"enumerate": "public",
|
|
46
|
+
"insert": "writers_and_curators",
|
|
47
|
+
"update": "curators",
|
|
48
|
+
"delete": "curators",
|
|
49
|
+
"owner": "admins"
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
|
|
53
|
+
"acl_bindings": {
|
|
54
|
+
"row_owner_guard": {
|
|
55
|
+
"types": ["update", "delete"],
|
|
56
|
+
"projection": ["RCB"],
|
|
57
|
+
"projection_type": "acl"
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
|
|
61
|
+
"catalog_acl": {
|
|
62
|
+
"acl": "self_serve"
|
|
63
|
+
},
|
|
64
|
+
|
|
65
|
+
"schema_acls": [
|
|
66
|
+
{
|
|
67
|
+
"schema": "public",
|
|
68
|
+
"acl": "read_only"
|
|
69
|
+
}
|
|
70
|
+
],
|
|
71
|
+
|
|
72
|
+
"table_acls": [
|
|
73
|
+
{
|
|
74
|
+
"schema_pattern": "^(?!(^public)$).+$",
|
|
75
|
+
"table_pattern": ".*",
|
|
76
|
+
"acl_bindings": [
|
|
77
|
+
"row_owner_guard"
|
|
78
|
+
]
|
|
79
|
+
}
|
|
80
|
+
]
|
|
81
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import argparse
|
|
2
|
+
import sys
|
|
3
|
+
from pathlib import Path
|
|
4
|
+
|
|
5
|
+
from deriva.core import ErmrestCatalog, get_credential
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
def update_table_comments(model, schema_name: str, table_name: str, comments_dir: str) -> None:
|
|
9
|
+
table = model.schemas[schema_name].tables[table_name]
|
|
10
|
+
table_comments_dir = Path(comments_dir)/Path(f"{schema_name}/{table_name}")
|
|
11
|
+
for file in table_comments_dir.iterdir():
|
|
12
|
+
file_path = table_comments_dir / file.name
|
|
13
|
+
with file_path.open("r") as f:
|
|
14
|
+
comment_str = f.read()
|
|
15
|
+
if file.name.split(".")[0] == table_name:
|
|
16
|
+
table.comment = comment_str
|
|
17
|
+
else:
|
|
18
|
+
table.columns[file.name.split(".")[0]].comment = comment_str
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
def update_schema_comments(model, schema_name: str, comments_dir: str) -> None:
|
|
22
|
+
schema_comments_dir = Path(comments_dir)/Path(schema_name)
|
|
23
|
+
for table in schema_comments_dir.iterdir():
|
|
24
|
+
if not table.name.endswith(".DS_Store"):
|
|
25
|
+
update_table_comments(model, schema_name, table.name, comments_dir)
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
def main():
|
|
29
|
+
"""Main entry point for the table comments utility CLI.
|
|
30
|
+
|
|
31
|
+
Parses command line arguments and updates table comments.
|
|
32
|
+
|
|
33
|
+
Returns:
|
|
34
|
+
None. Executes the CLI.
|
|
35
|
+
"""
|
|
36
|
+
parser = argparse.ArgumentParser(description="Update table comments from files")
|
|
37
|
+
parser.add_argument("host", help="Hostname")
|
|
38
|
+
parser.add_argument("catalog_id", help="Catalog ID")
|
|
39
|
+
parser.add_argument("comments_dir", help="Directory containing comment files")
|
|
40
|
+
|
|
41
|
+
args = parser.parse_args()
|
|
42
|
+
|
|
43
|
+
catalog = ErmrestCatalog("https", args.host, args.catalog_id, credentials=get_credential(args.host))
|
|
44
|
+
model = catalog.getCatalogModel()
|
|
45
|
+
|
|
46
|
+
# Update comments for all schemas
|
|
47
|
+
for schema_name in model.schemas:
|
|
48
|
+
if schema_name not in ["public", "deriva-ml"]:
|
|
49
|
+
update_schema_comments(model, schema_name, args.comments_dir)
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
if __name__ == '__main__':
|
|
53
|
+
sys.exit(main())
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
# docs/<schema-name>/<table-name>/[table|<column-name>.Md
|
deriva_ml/test.py
ADDED
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
from typing import Any, Type
|
|
2
|
+
from deriva_ml import RID
|
|
3
|
+
from sqlalchemy import UniqueConstraint, inspect
|
|
4
|
+
from collections import defaultdict
|
|
5
|
+
from graphlib import CycleError, TopologicalSorter
|
|
6
|
+
|
|
7
|
+
def _prepare_wide_table(self, dataset, dataset_rid: RID, include_tables: list[str]) -> tuple:
|
|
8
|
+
"""
|
|
9
|
+
Generates details of a wide table from the model
|
|
10
|
+
|
|
11
|
+
Args:
|
|
12
|
+
include_tables (list[str] | None): List of table names to include in the denormalized dataset. If None,
|
|
13
|
+
all tables from the dataset will be included.
|
|
14
|
+
|
|
15
|
+
Returns:
|
|
16
|
+
str: SQL query string that represents the process of denormalization.
|
|
17
|
+
"""
|
|
18
|
+
|
|
19
|
+
# Skip over tables that we don't want to include in the denormalized dataset.
|
|
20
|
+
# Also, strip off the Dataset/Dataset_X part of the path so we don't include dataset columns in the denormalized
|
|
21
|
+
# table.
|
|
22
|
+
include_tables = set(include_tables)
|
|
23
|
+
for t in include_tables:
|
|
24
|
+
# Check to make sure the table is in the catalog.
|
|
25
|
+
_ = self.name_to_table(t)
|
|
26
|
+
|
|
27
|
+
table_paths = [
|
|
28
|
+
path
|
|
29
|
+
for path in self._schema_to_paths()
|
|
30
|
+
if path[-1].name in include_tables and include_tables.intersection({p.name for p in path})
|
|
31
|
+
]
|
|
32
|
+
paths_by_element = defaultdict(list)
|
|
33
|
+
for p in table_paths:
|
|
34
|
+
paths_by_element[p[2].name].append(p)
|
|
35
|
+
|
|
36
|
+
# Get the names of all of the tables that can be dataset elements.
|
|
37
|
+
dataset_element_tables = {e.name for e in self.list_dataset_element_types() if e.schema.name == self.domain_schema}
|
|
38
|
+
|
|
39
|
+
skip_columns = {"RCT", "RMT", "RCB", "RMB"}
|
|
40
|
+
join_conditions = {}
|
|
41
|
+
join_tables = {}
|
|
42
|
+
for element_table, paths in paths_by_element.items():
|
|
43
|
+
graph = {}
|
|
44
|
+
for path in paths:
|
|
45
|
+
for left, right in zip(path[0:], path[1:]):
|
|
46
|
+
graph.setdefault(left.name, set()).add(right.name)
|
|
47
|
+
|
|
48
|
+
# New lets remove any cycles that we may have in the graph.
|
|
49
|
+
# We will use a topological sort to find the order in which we need to join the tables.
|
|
50
|
+
# If we find a cycle, we will remove the table from the graph and splice in an additional ON clause.
|
|
51
|
+
# We will then repeat the process until there are no cycles.
|
|
52
|
+
graph_has_cycles = True
|
|
53
|
+
element_join_tables = []
|
|
54
|
+
element_join_conditions = {}
|
|
55
|
+
while graph_has_cycles:
|
|
56
|
+
try:
|
|
57
|
+
ts = TopologicalSorter(graph)
|
|
58
|
+
element_join_tables = list(reversed(list(ts.static_order())))
|
|
59
|
+
graph_has_cycles = False
|
|
60
|
+
except CycleError as e:
|
|
61
|
+
cycle_nodes = e.args[1]
|
|
62
|
+
if len(cycle_nodes) > 3:
|
|
63
|
+
raise DerivaMLException(f"Unexpected cycle found when normalizing dataset {cycle_nodes}")
|
|
64
|
+
# Remove cycle from graph and splice in additional ON constraint.
|
|
65
|
+
graph[cycle_nodes[1]].remove(cycle_nodes[0])
|
|
66
|
+
|
|
67
|
+
# The Dataset_Version table is a special case as it points to dataset and dataset to version.
|
|
68
|
+
if "Dataset_Version" in join_tables:
|
|
69
|
+
element_join_tables.remove("Dataset_Version")
|
|
70
|
+
|
|
71
|
+
for path in paths:
|
|
72
|
+
for left, right in zip(path[0:], path[1:]):
|
|
73
|
+
if right.name == "Dataset_Version":
|
|
74
|
+
# The Dataset_Version table is a special case as it points to dataset and dataset to version.
|
|
75
|
+
continue
|
|
76
|
+
if element_join_tables.index(right.name) < element_join_tables.index(left.name):
|
|
77
|
+
continue
|
|
78
|
+
table_relationship = self._table_relationship(left, right)
|
|
79
|
+
element_join_conditions.setdefault(right.name, set()).add((table_relationship[0], table_relationship[1]))
|
|
80
|
+
join_tables[element_table] = element_join_tables
|
|
81
|
+
join_conditions[element_table] = element_join_conditions
|
|
82
|
+
# Get the list of columns that will appear in the final denormalized dataset.
|
|
83
|
+
denormalized_columns = [
|
|
84
|
+
(table_name, c.name)
|
|
85
|
+
for table_name in join_tables
|
|
86
|
+
if not self.is_association(table_name) # Don't include association columns in the denormalized view.'
|
|
87
|
+
for c in self.name_to_table(table_name).columns
|
|
88
|
+
if (not include_tables or table_name in include_tables) and (c.name not in skip_columns)
|
|
89
|
+
]
|
|
90
|
+
|
|
91
|
+
# List of dataset ids to include in the denormalized view.
|
|
92
|
+
dataset_rids = [dataset_rid] + dataset.list_dataset_children(recurse=True)
|
|
93
|
+
return join_tables, join_conditions, denormalized_columns, dataset_rids, dataset_element_tables
|
|
94
|
+
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: deriva-ml
|
|
3
|
+
Version: 1.17.10
|
|
4
|
+
Summary: Utilities to simplify use of Dervia and Pandas to create reproducable ML pipelines
|
|
5
|
+
Author-email: ISRD <isrd-dev@isi.edu>
|
|
6
|
+
Requires-Python: >=3.10
|
|
7
|
+
Description-Content-Type: text/markdown
|
|
8
|
+
License-File: LICENSE
|
|
9
|
+
Requires-Dist: bump-my-version
|
|
10
|
+
Requires-Dist: bdbag
|
|
11
|
+
Requires-Dist: deriva~=1.7.10
|
|
12
|
+
Requires-Dist: deepdiff
|
|
13
|
+
Requires-Dist: nbconvert
|
|
14
|
+
Requires-Dist: pandas
|
|
15
|
+
Requires-Dist: pydantic>=2.11
|
|
16
|
+
Requires-Dist: papermill
|
|
17
|
+
Requires-Dist: pandas-stubs==2.2.3.250527
|
|
18
|
+
Requires-Dist: pyyaml
|
|
19
|
+
Requires-Dist: regex~=2024.7.24
|
|
20
|
+
Requires-Dist: semver>3.0.0
|
|
21
|
+
Requires-Dist: setuptools>=80
|
|
22
|
+
Requires-Dist: setuptools-scm>=8.0
|
|
23
|
+
Requires-Dist: nbstripout
|
|
24
|
+
Requires-Dist: hydra_zen
|
|
25
|
+
Requires-Dist: SQLAlchemy
|
|
26
|
+
Dynamic: license-file
|
|
27
|
+
|
|
28
|
+
# DerivaML
|
|
29
|
+
Deriva-ML is a python library to simplify the process of creating and executing reproducible machine learning workflows
|
|
30
|
+
using a deriva catalog.
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
Complete on-line documentation for DerivaML can be found [here](https://informatics-isi-edu.github.io/deriva-ml/)
|
|
34
|
+
|
|
35
|
+
To get started using DerivaML, you can clone the [model template repository](https://github.com/informatics-isi-edu/deriva-ml-model-template), and modify it to suite your requirements.
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
## References
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
deriva_ml/.DS_Store,sha256=gb-f5IXVed_gS5Be1Z6WxCYjrI_r5SdblvfFpIOY4ro,8196
|
|
2
|
+
deriva_ml/__init__.py,sha256=OqhpZEC9xDpQ1vKNQSb_b0W32LlNGnfAyQaIkOXJNAs,1887
|
|
3
|
+
deriva_ml/bump_version.py,sha256=eN2G5G_OeiuFxhOdjjwfxD8Rmv6dFvzIm0y_1x4Mif4,4020
|
|
4
|
+
deriva_ml/demo_catalog.py,sha256=V0oJRfvAUQG_60-L3yweueKCtIGjDPXTWaAbM1nlOpY,17373
|
|
5
|
+
deriva_ml/feature.py,sha256=6-aphkxdKjWa9oPSGFWxHcwAc_8hmWj-7I4M178YG5Y,8470
|
|
6
|
+
deriva_ml/install_kernel.py,sha256=b62XY0SLViYO_Zye5r1Pl9qhYZyu_fk4KAO8NS1pxgM,2165
|
|
7
|
+
deriva_ml/run_notebook.py,sha256=_pds1q3WcfWqhCBqKeznbwSv5n7OND8FkL6JQ2Jkfmc,8093
|
|
8
|
+
deriva_ml/test.py,sha256=BqmQXR9IyQP9h8pWttk0dzyJod2CwcfYbSUZS-Q5r4k,4460
|
|
9
|
+
deriva_ml/core/__init__.py,sha256=Ko8GsWc7K_eDFW0-GaNS6gOWYP8cWHWir-ChSQaHntE,856
|
|
10
|
+
deriva_ml/core/base.py,sha256=uy2wgQ41yakoKy0faRcrg9Z-yQ_t2hFwC_mLkJn3sck,62813
|
|
11
|
+
deriva_ml/core/config.py,sha256=HKo_cTuPWbu-IMm5Nw57Wzn1B_Mhm7Wuiq6HC-Tmt2E,2423
|
|
12
|
+
deriva_ml/core/constants.py,sha256=6wBJ8qMxe-dbCjRGrjUIX-RK0mTWrLDTeUpaVbLFoM8,888
|
|
13
|
+
deriva_ml/core/definitions.py,sha256=uq_8uYFBVBVHS691Ri2kdQsN37z0GNYTaZskJIb_ocM,1385
|
|
14
|
+
deriva_ml/core/enums.py,sha256=sSN4B4OynbB-AXwxRszoFr-KWIWIAfhVa06EzAEHwVc,7194
|
|
15
|
+
deriva_ml/core/ermrest.py,sha256=N0IJ3TE87jElaBChEIo5AFDTr0SIrb6F90yiimRfPr4,10182
|
|
16
|
+
deriva_ml/core/exceptions.py,sha256=4MZNPOyN-UMaGeY9sqJDVwh_iOmz1ntp4usSyCNqVMg,934
|
|
17
|
+
deriva_ml/core/filespec.py,sha256=BQAAcRXfXq1lDcsKlokLOOXCBtEZpPgXxrFOIZYAgLg,4229
|
|
18
|
+
deriva_ml/dataset/__init__.py,sha256=wTCQaWGfRYEiUoOOxerKSpkbl1T5YFhoCyemlxGTk8k,283
|
|
19
|
+
deriva_ml/dataset/aux_classes.py,sha256=e0D83IEDvsSIx79lKoCsD-CcIFmnoinNtzvpdMMQ80E,7291
|
|
20
|
+
deriva_ml/dataset/dataset.py,sha256=d860WuCL0-Pz6TyRpGVzhpPWDMco01-I5LT4dZjYxsQ,64728
|
|
21
|
+
deriva_ml/dataset/dataset_bag.py,sha256=ori3BuYVqfeHkVCjNSKuZh7oMdC6uufsszicpTPODiw,19944
|
|
22
|
+
deriva_ml/dataset/history.py,sha256=FK5AYYz11p4E4FWMVg4r7UPWOD4eobrq3b3xMjWF59g,3197
|
|
23
|
+
deriva_ml/dataset/upload.py,sha256=7qDcW-ifrUbh6WTx_3TVs6jzZbbwxboz5X8je07jEww,16534
|
|
24
|
+
deriva_ml/execution/__init__.py,sha256=1ngO7avVUqSOS1o09OzS8jFp5mf-rrLxEBHzlIm5R28,706
|
|
25
|
+
deriva_ml/execution/environment.py,sha256=B7nywqxFTRUWgyu8n7rFoKcVC9on422kjeFG2FPQfvg,9302
|
|
26
|
+
deriva_ml/execution/execution.py,sha256=NRu8N-KALUJIhX1YosK3vFijDPF9iwpNzvDU9HokF08,46828
|
|
27
|
+
deriva_ml/execution/execution_configuration.py,sha256=Bxfa_JLbJoEkimRgJ0mDbCKyaKnsSn8j7XON0UbiP4I,5684
|
|
28
|
+
deriva_ml/execution/workflow.py,sha256=moWvtXFzF_z0R44NkMGuBSaiXCqBcnbStU8bc9frkk8,14811
|
|
29
|
+
deriva_ml/model/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
30
|
+
deriva_ml/model/catalog.py,sha256=O6_Ll4Uxg6DyxoBXT9P9CPTt9jx1guVTeX1L3KW1A5c,19645
|
|
31
|
+
deriva_ml/model/database.py,sha256=BG5FSisl9tWTBnf5k9dNnijOIDyCUDeRhN_inkmIqTw,31132
|
|
32
|
+
deriva_ml/protocols/dataset.py,sha256=1TyaT--89Elcs-nCvVyJxUj4cDaLztZOuSOzzj1cBMk,699
|
|
33
|
+
deriva_ml/schema/__init__.py,sha256=yV-MfzCF3FA4OOz7mZwMM2q6-x1vgOJ057kUvikFF6E,130
|
|
34
|
+
deriva_ml/schema/annotations.py,sha256=CMcRqYUlyW8iLCYp6sYJsncaRNtp4kFKoxcg-i-t-50,18302
|
|
35
|
+
deriva_ml/schema/check_schema.py,sha256=6dadLYHPqRex6AYVClmsESI8WhC7-rb-XnGf2G298xw,3609
|
|
36
|
+
deriva_ml/schema/create_schema.py,sha256=jB6ZIlQVBMRTWOEnQN6XO6gxMNPdN3t4Q3VdDs8c6SE,13130
|
|
37
|
+
deriva_ml/schema/deriva-ml-reference.json,sha256=AEOMIgwKO3dNMMWHb0lxaXyamvfAEbUPh8qw0aAtsUQ,242460
|
|
38
|
+
deriva_ml/schema/policy.json,sha256=5ykB8nnZFl-oCHzlAwppCFKJHWJFIkYognUMVEanfY8,1826
|
|
39
|
+
deriva_ml/schema/table_comments_utils.py,sha256=4flCqnZAaqg_uSZ9I18pNUWAZoLfmMCXbmI5uERY5vM,2007
|
|
40
|
+
deriva_ml-1.17.10.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
|
41
|
+
deriva_ml-1.17.10.dist-info/METADATA,sha256=7QHhRlRwy1V5vclVB-ryN11dHlwdbJ941qaOJt1SDB4,1241
|
|
42
|
+
deriva_ml-1.17.10.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
43
|
+
deriva_ml-1.17.10.dist-info/entry_points.txt,sha256=t4H-1_Cr_MTi9Sp_O4Bnq8d7YFTqLlzuHIxDODTwAt4,513
|
|
44
|
+
deriva_ml-1.17.10.dist-info/top_level.txt,sha256=I1Q1dkH96cRghdsFRVqwpa2M7IqJpR2QPUNNc5-Bnpw,10
|
|
45
|
+
deriva_ml-1.17.10.dist-info/RECORD,,
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
[console_scripts]
|
|
2
|
+
bump-version = deriva_ml.bump_version:main
|
|
3
|
+
create-demo-catalog = deriva_ml.demo_catalog:main
|
|
4
|
+
deriva-ml-alter-annotation = deriva_ml.schema_setup.alter_annotation:main
|
|
5
|
+
deriva-ml-check-catalog-schema = deriva_ml.schema.check_schema:main
|
|
6
|
+
deriva-ml-create-schema = deriva_ml.schema_setup.create_schema:main
|
|
7
|
+
deriva-ml-install-kernel = deriva_ml.install_kernel:main
|
|
8
|
+
deriva-ml-run-notebook = deriva_ml.run_notebook:main
|
|
9
|
+
deriva-ml-table-comments-utils = deriva_ml.schema_setup.table_comments_utils:main
|
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright [yyyy] [name of copyright owner]
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
deriva_ml
|