hafnia 0.1.18__py3-none-any.whl → 0.1.23__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.
@@ -17,6 +17,7 @@ def get_dataset_id(dataset_name: str, endpoint: str, api_key: str) -> Optional[s
17
17
 
18
18
  def create_recipe(source_dir: Path, endpoint: str, api_key: str, organization_id: str) -> Optional[str]:
19
19
  headers = {"X-APIKEY": api_key, "accept": "application/json"}
20
+ source_dir = source_dir.resolve() # Ensure the path is absolute to handle '.' paths are given an appropriate name.
20
21
  path_recipe = get_recipe_path(recipe_name=source_dir.name)
21
22
  zip_path = archive_dir(source_dir, output_path=path_recipe)
22
23
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: hafnia
3
- Version: 0.1.18
3
+ Version: 0.1.23
4
4
  Summary: Python tools for communication with Hafnia platform.
5
5
  Author-email: Ivan Sahumbaiev <ivsa@milestone.dk>
6
6
  License-File: LICENSE
@@ -87,7 +87,7 @@ and explore the dataset sample with a python script:
87
87
  ```python
88
88
  from hafnia.data import load_dataset
89
89
 
90
- dataset_splits = load_dataset("midwest-vehicle-detection")
90
+ dataset_splits = load_dataset("mnist")
91
91
  print(dataset_splits)
92
92
  print(dataset_splits["train"])
93
93
  ```
@@ -20,9 +20,9 @@ hafnia/platform/api.py,sha256=aJvlQGjzqm-D3WYb2xTEYX60YoJoWN_kyYdlkvqt_MI,382
20
20
  hafnia/platform/builder.py,sha256=VqcbOPxC7HqGAqFMb6ewThBZYLEV5RBgQrVuMd2dbLY,6622
21
21
  hafnia/platform/download.py,sha256=AWnlSYj9FD7GvZ_-9Sw5jrcxi3RyBSSUVph8U9T9ZbQ,4711
22
22
  hafnia/platform/executor.py,sha256=HA8IF2ZTZ6ZiRWNjVdIdWKiUa5i8Yoz06mIUBDwzVDk,3759
23
- hafnia/platform/experiment.py,sha256=JDVsRkMvXO0_hvJSUHaElpnBpmHNCBmIJ4r_cw5LYiA,2185
24
- hafnia-0.1.18.dist-info/METADATA,sha256=SFZSoqqRpHevg-fYI-R6tgMpV7Rq0kq1mDZxgetiOAA,8144
25
- hafnia-0.1.18.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
26
- hafnia-0.1.18.dist-info/entry_points.txt,sha256=FCJVIQ8GP2VE9I3eeGVF5eLxVDNW_01pOJCpG_CGnMM,45
27
- hafnia-0.1.18.dist-info/licenses/LICENSE,sha256=DqQ3NOAy7Efwppv0IAVXEm3Za2SI_1OuDfG20ab8eQw,1078
28
- hafnia-0.1.18.dist-info/RECORD,,
23
+ hafnia/platform/experiment.py,sha256=951ppXdrp075pW2xGFOM0oiGYGE1I53tP9azQjjIUe8,2305
24
+ hafnia-0.1.23.dist-info/METADATA,sha256=yIlBuHSwuU5BRuG_XmvzxhgXXVsOwqsxGQfsWpwf9bY,8124
25
+ hafnia-0.1.23.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
26
+ hafnia-0.1.23.dist-info/entry_points.txt,sha256=FCJVIQ8GP2VE9I3eeGVF5eLxVDNW_01pOJCpG_CGnMM,45
27
+ hafnia-0.1.23.dist-info/licenses/LICENSE,sha256=DqQ3NOAy7Efwppv0IAVXEm3Za2SI_1OuDfG20ab8eQw,1078
28
+ hafnia-0.1.23.dist-info/RECORD,,