deriva-ml 1.12.1__tar.gz → 1.12.2__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.
Files changed (75) hide show
  1. {deriva_ml-1.12.1/src/deriva_ml.egg-info → deriva_ml-1.12.2}/PKG-INFO +1 -1
  2. deriva_ml-1.12.2/docs/user-guide/file-assets.md +3 -0
  3. {deriva_ml-1.12.1 → deriva_ml-1.12.2}/src/deriva_ml/upload.py +11 -12
  4. {deriva_ml-1.12.1 → deriva_ml-1.12.2/src/deriva_ml.egg-info}/PKG-INFO +1 -1
  5. {deriva_ml-1.12.1 → deriva_ml-1.12.2}/src/deriva_ml.egg-info/SOURCES.txt +1 -0
  6. {deriva_ml-1.12.1 → deriva_ml-1.12.2}/.github/workflows/publish-docs.yml +0 -0
  7. {deriva_ml-1.12.1 → deriva_ml-1.12.2}/.gitignore +0 -0
  8. {deriva_ml-1.12.1 → deriva_ml-1.12.2}/LICENSE +0 -0
  9. {deriva_ml-1.12.1 → deriva_ml-1.12.2}/README.md +0 -0
  10. {deriva_ml-1.12.1 → deriva_ml-1.12.2}/docs/.DS_Store +0 -0
  11. {deriva_ml-1.12.1 → deriva_ml-1.12.2}/docs/Notebooks/DerivaML Create Notes.ipynb +0 -0
  12. {deriva_ml-1.12.1 → deriva_ml-1.12.2}/docs/Notebooks/DerivaML Dataset.ipynb +0 -0
  13. {deriva_ml-1.12.1 → deriva_ml-1.12.2}/docs/Notebooks/DerivaML Execution.ipynb +0 -0
  14. {deriva_ml-1.12.1 → deriva_ml-1.12.2}/docs/Notebooks/DerivaML Features.ipynb +0 -0
  15. {deriva_ml-1.12.1 → deriva_ml-1.12.2}/docs/Notebooks/DerivaML Vocabulary.ipynb +0 -0
  16. {deriva_ml-1.12.1 → deriva_ml-1.12.2}/docs/assets/ERD.png +0 -0
  17. {deriva_ml-1.12.1 → deriva_ml-1.12.2}/docs/assets/Launcher.png +0 -0
  18. {deriva_ml-1.12.1 → deriva_ml-1.12.2}/docs/assets/copy_minid.png +0 -0
  19. {deriva_ml-1.12.1 → deriva_ml-1.12.2}/docs/assets/deriva-logo.png +0 -0
  20. {deriva_ml-1.12.1 → deriva_ml-1.12.2}/docs/assets/deriva-ml.pdf +0 -0
  21. {deriva_ml-1.12.1 → deriva_ml-1.12.2}/docs/assets/sharing-at-home.pdf +0 -0
  22. {deriva_ml-1.12.1 → deriva_ml-1.12.2}/docs/code-docs/dataset.md +0 -0
  23. {deriva_ml-1.12.1 → deriva_ml-1.12.2}/docs/code-docs/dataset_aux_classes.md +0 -0
  24. {deriva_ml-1.12.1 → deriva_ml-1.12.2}/docs/code-docs/dataset_bag.md +0 -0
  25. {deriva_ml-1.12.1 → deriva_ml-1.12.2}/docs/code-docs/deriva_ml_base.md +0 -0
  26. {deriva_ml-1.12.1 → deriva_ml-1.12.2}/docs/code-docs/deriva_model.md +0 -0
  27. {deriva_ml-1.12.1 → deriva_ml-1.12.2}/docs/code-docs/execution.md +0 -0
  28. {deriva_ml-1.12.1 → deriva_ml-1.12.2}/docs/code-docs/execution_configuration.md +0 -0
  29. {deriva_ml-1.12.1 → deriva_ml-1.12.2}/docs/code-docs/feature.md +0 -0
  30. {deriva_ml-1.12.1 → deriva_ml-1.12.2}/docs/code-docs/upload.md +0 -0
  31. {deriva_ml-1.12.1 → deriva_ml-1.12.2}/docs/deriva_ml_structure.md +0 -0
  32. {deriva_ml-1.12.1 → deriva_ml-1.12.2}/docs/index.md +0 -0
  33. {deriva_ml-1.12.1 → deriva_ml-1.12.2}/docs/release-notes.md +0 -0
  34. {deriva_ml-1.12.1 → deriva_ml-1.12.2}/docs/user-guide/datasets.md +0 -0
  35. {deriva_ml-1.12.1 → deriva_ml-1.12.2}/docs/user-guide/execution-configuration.md +0 -0
  36. {deriva_ml-1.12.1 → deriva_ml-1.12.2}/docs/user-guide/identifiers.md +0 -0
  37. {deriva_ml-1.12.1 → deriva_ml-1.12.2}/docs/user-guide/install.md +0 -0
  38. {deriva_ml-1.12.1 → deriva_ml-1.12.2}/docs/user-guide/ml_workflow_instruction.md +0 -0
  39. {deriva_ml-1.12.1 → deriva_ml-1.12.2}/mkdocs.yml +0 -0
  40. {deriva_ml-1.12.1 → deriva_ml-1.12.2}/pyproject.toml +0 -0
  41. {deriva_ml-1.12.1 → deriva_ml-1.12.2}/release.sh +0 -0
  42. {deriva_ml-1.12.1 → deriva_ml-1.12.2}/setup.cfg +0 -0
  43. {deriva_ml-1.12.1 → deriva_ml-1.12.2}/src/deriva_ml/__init__.py +0 -0
  44. {deriva_ml-1.12.1 → deriva_ml-1.12.2}/src/deriva_ml/database_model.py +0 -0
  45. {deriva_ml-1.12.1 → deriva_ml-1.12.2}/src/deriva_ml/dataset.py +0 -0
  46. {deriva_ml-1.12.1 → deriva_ml-1.12.2}/src/deriva_ml/dataset_aux_classes.py +0 -0
  47. {deriva_ml-1.12.1 → deriva_ml-1.12.2}/src/deriva_ml/dataset_bag.py +0 -0
  48. {deriva_ml-1.12.1 → deriva_ml-1.12.2}/src/deriva_ml/demo_catalog.py +0 -0
  49. {deriva_ml-1.12.1 → deriva_ml-1.12.2}/src/deriva_ml/deriva_definitions.py +0 -0
  50. {deriva_ml-1.12.1 → deriva_ml-1.12.2}/src/deriva_ml/deriva_ml_base.py +0 -0
  51. {deriva_ml-1.12.1 → deriva_ml-1.12.2}/src/deriva_ml/deriva_model.py +0 -0
  52. {deriva_ml-1.12.1 → deriva_ml-1.12.2}/src/deriva_ml/execution.py +0 -0
  53. {deriva_ml-1.12.1 → deriva_ml-1.12.2}/src/deriva_ml/execution_configuration.py +0 -0
  54. {deriva_ml-1.12.1 → deriva_ml-1.12.2}/src/deriva_ml/execution_environment.py +0 -0
  55. {deriva_ml-1.12.1 → deriva_ml-1.12.2}/src/deriva_ml/feature.py +0 -0
  56. {deriva_ml-1.12.1 → deriva_ml-1.12.2}/src/deriva_ml/history.py +0 -0
  57. {deriva_ml-1.12.1 → deriva_ml-1.12.2}/src/deriva_ml/schema_setup/__init__.py +0 -0
  58. {deriva_ml-1.12.1 → deriva_ml-1.12.2}/src/deriva_ml/schema_setup/annotations.py +0 -0
  59. {deriva_ml-1.12.1 → deriva_ml-1.12.2}/src/deriva_ml/schema_setup/create_schema.py +0 -0
  60. {deriva_ml-1.12.1 → deriva_ml-1.12.2}/src/deriva_ml/schema_setup/policy.json +0 -0
  61. {deriva_ml-1.12.1 → deriva_ml-1.12.2}/src/deriva_ml/schema_setup/table_comments_utils.py +0 -0
  62. {deriva_ml-1.12.1 → deriva_ml-1.12.2}/src/deriva_ml/test_functions.py +0 -0
  63. {deriva_ml-1.12.1 → deriva_ml-1.12.2}/src/deriva_ml.egg-info/dependency_links.txt +0 -0
  64. {deriva_ml-1.12.1 → deriva_ml-1.12.2}/src/deriva_ml.egg-info/entry_points.txt +0 -0
  65. {deriva_ml-1.12.1 → deriva_ml-1.12.2}/src/deriva_ml.egg-info/requires.txt +0 -0
  66. {deriva_ml-1.12.1 → deriva_ml-1.12.2}/src/deriva_ml.egg-info/top_level.txt +0 -0
  67. {deriva_ml-1.12.1 → deriva_ml-1.12.2}/tests/__init__.py +0 -0
  68. {deriva_ml-1.12.1 → deriva_ml-1.12.2}/tests/derivaml_test.py +0 -0
  69. {deriva_ml-1.12.1 → deriva_ml-1.12.2}/tests/runner.py +0 -0
  70. {deriva_ml-1.12.1 → deriva_ml-1.12.2}/tests/test_basic_tables.py +0 -0
  71. {deriva_ml-1.12.1 → deriva_ml-1.12.2}/tests/test_dataset.py +0 -0
  72. {deriva_ml-1.12.1 → deriva_ml-1.12.2}/tests/test_download.py +0 -0
  73. {deriva_ml-1.12.1 → deriva_ml-1.12.2}/tests/test_execution.py +0 -0
  74. {deriva_ml-1.12.1 → deriva_ml-1.12.2}/tests/test_features.py +0 -0
  75. {deriva_ml-1.12.1 → deriva_ml-1.12.2}/tests/test_upload.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: deriva-ml
3
- Version: 1.12.1
3
+ Version: 1.12.2
4
4
  Summary: Utilities to simplify use of Dervia and Pandas to create reproducable ML pipelines
5
5
  Author-email: ISRD <isrd-dev@isi.edu>
6
6
  Requires-Python: >=3.10
@@ -0,0 +1,3 @@
1
+ # File Assets
2
+
3
+
@@ -74,17 +74,16 @@ feature_table_dir_regex = (
74
74
  + r"/(?P<schema>[-\w]+)/(?P<target_table>[-\w]+)/(?P<feature_name>[-\w]+)"
75
75
  )
76
76
  feature_value_regex = (
77
- feature_table_dir_regex + r"/(?P=feature_name)[.](?P<file_ext>[(csv|json)]*)$"
77
+ feature_table_dir_regex + r"/(?P=feature_name)[.](?P<ext>[(csv|json)]*)$"
78
78
  )
79
79
  feature_asset_dir_regex = feature_table_dir_regex + r"/asset/(?P<asset_table>[-\w]+)"
80
80
  feature_asset_regex = (
81
- feature_asset_dir_regex
82
- + r"/(?P<file_name>[A-Za-z0-9_-]+)[.](?P<file_ext>[a-z0-9]*)$"
81
+ feature_asset_dir_regex + r"/(?P<file>[A-Za-z0-9_-]+)[.](?P<ext>[a-z0-9]*)$"
83
82
  )
84
83
 
85
84
  asset_path_regex = exec_dir_regex + r"/asset/(?P<schema>[-\w]+)/(?P<asset_table>[-\w]*)"
86
85
 
87
- asset_file_regex = r"(?P<file_name>[-\w]+)[.](?P<file_ext>[a-z0-9]*)$"
86
+ asset_file_regex = r"(?P<file>[-\w]+)[.](?P<ext>[a-z0-9]*)$"
88
87
 
89
88
  table_regex = (
90
89
  exec_dir_regex
@@ -211,16 +210,16 @@ def asset_table_upload_spec(model: DerivaModel, asset_table: str | Table):
211
210
  "Filename": "{file_name}",
212
211
  }
213
212
  | {c: f"{{{c}}}" for c in metadata_columns},
214
- "file_pattern": asset_path, # Sets schema, asset_table, file_name, file_ext
213
+ "file_pattern": asset_path, # Sets schema, asset_table, file
215
214
  "asset_type": "file",
216
215
  "target_table": [schema, asset_table.name],
217
216
  "checksum_types": ["sha256", "md5"],
218
217
  "hatrac_options": {"versioned_urls": True},
219
218
  "hatrac_templates": {
220
- "hatrac_uri": f"/hatrac/{asset_table.name}/{{md5}}.{{file_name}}.{{file_ext}}",
221
- "content-disposition": "filename*=UTF-8''{file_name}.{file_ext}",
219
+ "hatrac_uri": f"/hatrac/{asset_table.name}/{{md5}}.{{file_name}}",
220
+ "content-disposition": "filename*=UTF-8''{file_name}",
222
221
  },
223
- "record_query_template": "/entity/{target_table}/MD5={{md5}}&Filename={file_name}.{file_ext}",
222
+ "record_query_template": "/entity/{target_table}/MD5={md5}&Filename={file_name}",
224
223
  }
225
224
 
226
225
 
@@ -249,14 +248,14 @@ def bulk_upload_configuration(model: DerivaModel) -> dict[str, Any]:
249
248
  "target_table": ["{schema}", "{asset_table}"],
250
249
  "file_pattern": asset_path_regex
251
250
  + "/"
252
- + asset_file_regex, # Sets schema, asset_table, file_name, file_ext
251
+ + asset_file_regex, # Sets schema, asset_table, name, ext
253
252
  "checksum_types": ["sha256", "md5"],
254
253
  "hatrac_options": {"versioned_urls": True},
255
254
  "hatrac_templates": {
256
- "hatrac_uri": "/hatrac/{asset_table}/{md5}.{file_name}.{file_ext}",
257
- "content-disposition": "filename*=UTF-8''{file_name}.{file_ext}",
255
+ "hatrac_uri": "/hatrac/{asset_table}/{md5}.{file_name}",
256
+ "content-disposition": "filename*=UTF-8''{file_name}",
258
257
  },
259
- "record_query_template": "/entity/{target_table}/MD5={md5}&Filename={file_name}.{file_ext}",
258
+ "record_query_template": "/entity/{target_table}/MD5={md5}&Filename={file_name}",
260
259
  },
261
260
  # {
262
261
  # Upload the records into a table
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: deriva-ml
3
- Version: 1.12.1
3
+ Version: 1.12.2
4
4
  Summary: Utilities to simplify use of Dervia and Pandas to create reproducable ML pipelines
5
5
  Author-email: ISRD <isrd-dev@isi.edu>
6
6
  Requires-Python: >=3.10
@@ -31,6 +31,7 @@ docs/code-docs/feature.md
31
31
  docs/code-docs/upload.md
32
32
  docs/user-guide/datasets.md
33
33
  docs/user-guide/execution-configuration.md
34
+ docs/user-guide/file-assets.md
34
35
  docs/user-guide/identifiers.md
35
36
  docs/user-guide/install.md
36
37
  docs/user-guide/ml_workflow_instruction.md
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes