bluer-objects 6.377.1__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 (225) hide show
  1. bluer_objects-6.377.1/LICENSE +121 -0
  2. bluer_objects-6.377.1/MANIFEST.in +1 -0
  3. bluer_objects-6.377.1/PKG-INFO +71 -0
  4. bluer_objects-6.377.1/README.md +35 -0
  5. bluer_objects-6.377.1/bluer_objects/.abcli/abcli.sh +15 -0
  6. bluer_objects-6.377.1/bluer_objects/.abcli/actions.sh +11 -0
  7. bluer_objects-6.377.1/bluer_objects/.abcli/aka.sh +3 -0
  8. bluer_objects-6.377.1/bluer_objects/.abcli/alias.sh +47 -0
  9. bluer_objects-6.377.1/bluer_objects/.abcli/assets/cd.sh +20 -0
  10. bluer_objects-6.377.1/bluer_objects/.abcli/assets/mv.sh +34 -0
  11. bluer_objects-6.377.1/bluer_objects/.abcli/assets/publish.sh +37 -0
  12. bluer_objects-6.377.1/bluer_objects/.abcli/assets.sh +15 -0
  13. bluer_objects-6.377.1/bluer_objects/.abcli/bluer_objects.sh +11 -0
  14. bluer_objects-6.377.1/bluer_objects/.abcli/clone.sh +66 -0
  15. bluer_objects-6.377.1/bluer_objects/.abcli/create_test_asset.sh +10 -0
  16. bluer_objects-6.377.1/bluer_objects/.abcli/download.sh +24 -0
  17. bluer_objects-6.377.1/bluer_objects/.abcli/file.sh +19 -0
  18. bluer_objects-6.377.1/bluer_objects/.abcli/gif.sh +45 -0
  19. bluer_objects-6.377.1/bluer_objects/.abcli/host.sh +45 -0
  20. bluer_objects-6.377.1/bluer_objects/.abcli/ls.sh +29 -0
  21. bluer_objects-6.377.1/bluer_objects/.abcli/metadata/download.sh +9 -0
  22. bluer_objects-6.377.1/bluer_objects/.abcli/metadata/edit.sh +15 -0
  23. bluer_objects-6.377.1/bluer_objects/.abcli/metadata/get.sh +24 -0
  24. bluer_objects-6.377.1/bluer_objects/.abcli/metadata/post.sh +22 -0
  25. bluer_objects-6.377.1/bluer_objects/.abcli/metadata/upload.sh +9 -0
  26. bluer_objects-6.377.1/bluer_objects/.abcli/metadata.sh +16 -0
  27. bluer_objects-6.377.1/bluer_objects/.abcli/mlflow/browse.sh +36 -0
  28. bluer_objects-6.377.1/bluer_objects/.abcli/mlflow/cache.sh +31 -0
  29. bluer_objects-6.377.1/bluer_objects/.abcli/mlflow/deploy.sh +40 -0
  30. bluer_objects-6.377.1/bluer_objects/.abcli/mlflow/list_registered_models.sh +9 -0
  31. bluer_objects-6.377.1/bluer_objects/.abcli/mlflow/lock/lock.sh +11 -0
  32. bluer_objects-6.377.1/bluer_objects/.abcli/mlflow/lock/unlock.sh +12 -0
  33. bluer_objects-6.377.1/bluer_objects/.abcli/mlflow/lock.sh +15 -0
  34. bluer_objects-6.377.1/bluer_objects/.abcli/mlflow/log_artifacts.sh +10 -0
  35. bluer_objects-6.377.1/bluer_objects/.abcli/mlflow/log_run.sh +10 -0
  36. bluer_objects-6.377.1/bluer_objects/.abcli/mlflow/run.sh +11 -0
  37. bluer_objects-6.377.1/bluer_objects/.abcli/mlflow/tags/clone.sh +15 -0
  38. bluer_objects-6.377.1/bluer_objects/.abcli/mlflow/tags/get.sh +10 -0
  39. bluer_objects-6.377.1/bluer_objects/.abcli/mlflow/tags/search.sh +12 -0
  40. bluer_objects-6.377.1/bluer_objects/.abcli/mlflow/tags/set.sh +13 -0
  41. bluer_objects-6.377.1/bluer_objects/.abcli/mlflow/tags.sh +16 -0
  42. bluer_objects-6.377.1/bluer_objects/.abcli/mlflow/test.sh +11 -0
  43. bluer_objects-6.377.1/bluer_objects/.abcli/mlflow/transition.sh +20 -0
  44. bluer_objects-6.377.1/bluer_objects/.abcli/mlflow.sh +27 -0
  45. bluer_objects-6.377.1/bluer_objects/.abcli/object.sh +26 -0
  46. bluer_objects-6.377.1/bluer_objects/.abcli/pdf/convert.sh +92 -0
  47. bluer_objects-6.377.1/bluer_objects/.abcli/pdf.sh +15 -0
  48. bluer_objects-6.377.1/bluer_objects/.abcli/select.sh +31 -0
  49. bluer_objects-6.377.1/bluer_objects/.abcli/storage/clear.sh +56 -0
  50. bluer_objects-6.377.1/bluer_objects/.abcli/storage/status.sh +11 -0
  51. bluer_objects-6.377.1/bluer_objects/.abcli/storage.sh +15 -0
  52. bluer_objects-6.377.1/bluer_objects/.abcli/tests/README.sh +8 -0
  53. bluer_objects-6.377.1/bluer_objects/.abcli/tests/clone.sh +18 -0
  54. bluer_objects-6.377.1/bluer_objects/.abcli/tests/create_test_asset.sh +16 -0
  55. bluer_objects-6.377.1/bluer_objects/.abcli/tests/file.sh +64 -0
  56. bluer_objects-6.377.1/bluer_objects/.abcli/tests/gif.sh +20 -0
  57. bluer_objects-6.377.1/bluer_objects/.abcli/tests/help.sh +107 -0
  58. bluer_objects-6.377.1/bluer_objects/.abcli/tests/host.sh +7 -0
  59. bluer_objects-6.377.1/bluer_objects/.abcli/tests/ls.sh +32 -0
  60. bluer_objects-6.377.1/bluer_objects/.abcli/tests/metadata.sh +91 -0
  61. bluer_objects-6.377.1/bluer_objects/.abcli/tests/mlflow_cache.sh +14 -0
  62. bluer_objects-6.377.1/bluer_objects/.abcli/tests/mlflow_lock.sh +30 -0
  63. bluer_objects-6.377.1/bluer_objects/.abcli/tests/mlflow_logging.sh +12 -0
  64. bluer_objects-6.377.1/bluer_objects/.abcli/tests/mlflow_tags.sh +29 -0
  65. bluer_objects-6.377.1/bluer_objects/.abcli/tests/mlflow_test.sh +7 -0
  66. bluer_objects-6.377.1/bluer_objects/.abcli/tests/open.sh +11 -0
  67. bluer_objects-6.377.1/bluer_objects/.abcli/tests/open_gif_open.sh +14 -0
  68. bluer_objects-6.377.1/bluer_objects/.abcli/tests/pdf.sh +31 -0
  69. bluer_objects-6.377.1/bluer_objects/.abcli/tests/storage_clear.sh +11 -0
  70. bluer_objects-6.377.1/bluer_objects/.abcli/tests/storage_public_upload.sh +25 -0
  71. bluer_objects-6.377.1/bluer_objects/.abcli/tests/storage_status.sh +12 -0
  72. bluer_objects-6.377.1/bluer_objects/.abcli/tests/storage_upload_download.sh +75 -0
  73. bluer_objects-6.377.1/bluer_objects/.abcli/tests/version.sh +10 -0
  74. bluer_objects-6.377.1/bluer_objects/.abcli/tests/web_is_accessible.sh +17 -0
  75. bluer_objects-6.377.1/bluer_objects/.abcli/tests/web_where_am_ai.sh +5 -0
  76. bluer_objects-6.377.1/bluer_objects/.abcli/upload.sh +45 -0
  77. bluer_objects-6.377.1/bluer_objects/.abcli/url.sh +15 -0
  78. bluer_objects-6.377.1/bluer_objects/.abcli/web/is_accessible.sh +13 -0
  79. bluer_objects-6.377.1/bluer_objects/.abcli/web/where_am_i.sh +5 -0
  80. bluer_objects-6.377.1/bluer_objects/README/__init__.py +60 -0
  81. bluer_objects-6.377.1/bluer_objects/README/alias.py +56 -0
  82. bluer_objects-6.377.1/bluer_objects/README/consts.py +39 -0
  83. bluer_objects-6.377.1/bluer_objects/README/functions.py +204 -0
  84. bluer_objects-6.377.1/bluer_objects/README/items.py +102 -0
  85. bluer_objects-6.377.1/bluer_objects/README/utils.py +275 -0
  86. bluer_objects-6.377.1/bluer_objects/__init__.py +19 -0
  87. bluer_objects-6.377.1/bluer_objects/__main__.py +16 -0
  88. bluer_objects-6.377.1/bluer_objects/assets/__init__.py +0 -0
  89. bluer_objects-6.377.1/bluer_objects/assets/__main__.py +57 -0
  90. bluer_objects-6.377.1/bluer_objects/assets/functions.py +62 -0
  91. bluer_objects-6.377.1/bluer_objects/config.env +11 -0
  92. bluer_objects-6.377.1/bluer_objects/env.py +65 -0
  93. bluer_objects-6.377.1/bluer_objects/file/__init__.py +41 -0
  94. bluer_objects-6.377.1/bluer_objects/file/__main__.py +101 -0
  95. bluer_objects-6.377.1/bluer_objects/file/classes.py +38 -0
  96. bluer_objects-6.377.1/bluer_objects/file/functions.py +300 -0
  97. bluer_objects-6.377.1/bluer_objects/file/load.py +212 -0
  98. bluer_objects-6.377.1/bluer_objects/file/save.py +273 -0
  99. bluer_objects-6.377.1/bluer_objects/graphics/__init__.py +4 -0
  100. bluer_objects-6.377.1/bluer_objects/graphics/__main__.py +91 -0
  101. bluer_objects-6.377.1/bluer_objects/graphics/frame.py +15 -0
  102. bluer_objects-6.377.1/bluer_objects/graphics/gif.py +90 -0
  103. bluer_objects-6.377.1/bluer_objects/graphics/screen.py +64 -0
  104. bluer_objects-6.377.1/bluer_objects/graphics/signature.py +98 -0
  105. bluer_objects-6.377.1/bluer_objects/graphics/text.py +165 -0
  106. bluer_objects-6.377.1/bluer_objects/help/__init__.py +0 -0
  107. bluer_objects-6.377.1/bluer_objects/help/__main__.py +10 -0
  108. bluer_objects-6.377.1/bluer_objects/help/assets.py +96 -0
  109. bluer_objects-6.377.1/bluer_objects/help/clone.py +28 -0
  110. bluer_objects-6.377.1/bluer_objects/help/create_test_asset.py +22 -0
  111. bluer_objects-6.377.1/bluer_objects/help/download.py +37 -0
  112. bluer_objects-6.377.1/bluer_objects/help/file.py +59 -0
  113. bluer_objects-6.377.1/bluer_objects/help/functions.py +36 -0
  114. bluer_objects-6.377.1/bluer_objects/help/gif.py +53 -0
  115. bluer_objects-6.377.1/bluer_objects/help/host.py +63 -0
  116. bluer_objects-6.377.1/bluer_objects/help/ls.py +63 -0
  117. bluer_objects-6.377.1/bluer_objects/help/metadata.py +203 -0
  118. bluer_objects-6.377.1/bluer_objects/help/mlflow/__init__.py +233 -0
  119. bluer_objects-6.377.1/bluer_objects/help/mlflow/cache.py +42 -0
  120. bluer_objects-6.377.1/bluer_objects/help/mlflow/lock.py +52 -0
  121. bluer_objects-6.377.1/bluer_objects/help/mlflow/tags.py +119 -0
  122. bluer_objects-6.377.1/bluer_objects/help/pdf.py +67 -0
  123. bluer_objects-6.377.1/bluer_objects/help/upload.py +27 -0
  124. bluer_objects-6.377.1/bluer_objects/help/web.py +38 -0
  125. bluer_objects-6.377.1/bluer_objects/host/__init__.py +12 -0
  126. bluer_objects-6.377.1/bluer_objects/host/__main__.py +83 -0
  127. bluer_objects-6.377.1/bluer_objects/host/functions.py +82 -0
  128. bluer_objects-6.377.1/bluer_objects/logger/__init__.py +4 -0
  129. bluer_objects-6.377.1/bluer_objects/logger/confusion_matrix.py +76 -0
  130. bluer_objects-6.377.1/bluer_objects/logger/image.py +110 -0
  131. bluer_objects-6.377.1/bluer_objects/logger/matrix.py +209 -0
  132. bluer_objects-6.377.1/bluer_objects/logger/stitch.py +107 -0
  133. bluer_objects-6.377.1/bluer_objects/markdown.py +45 -0
  134. bluer_objects-6.377.1/bluer_objects/metadata/__init__.py +9 -0
  135. bluer_objects-6.377.1/bluer_objects/metadata/__main__.py +110 -0
  136. bluer_objects-6.377.1/bluer_objects/metadata/enums.py +29 -0
  137. bluer_objects-6.377.1/bluer_objects/metadata/flatten.py +27 -0
  138. bluer_objects-6.377.1/bluer_objects/metadata/get.py +89 -0
  139. bluer_objects-6.377.1/bluer_objects/metadata/post.py +102 -0
  140. bluer_objects-6.377.1/bluer_objects/mlflow/__init__.py +28 -0
  141. bluer_objects-6.377.1/bluer_objects/mlflow/__main__.py +271 -0
  142. bluer_objects-6.377.1/bluer_objects/mlflow/cache.py +13 -0
  143. bluer_objects-6.377.1/bluer_objects/mlflow/lock/__init__.py +1 -0
  144. bluer_objects-6.377.1/bluer_objects/mlflow/lock/__main__.py +58 -0
  145. bluer_objects-6.377.1/bluer_objects/mlflow/lock/functions.py +121 -0
  146. bluer_objects-6.377.1/bluer_objects/mlflow/logging.py +87 -0
  147. bluer_objects-6.377.1/bluer_objects/mlflow/models.py +57 -0
  148. bluer_objects-6.377.1/bluer_objects/mlflow/objects.py +76 -0
  149. bluer_objects-6.377.1/bluer_objects/mlflow/runs.py +100 -0
  150. bluer_objects-6.377.1/bluer_objects/mlflow/tags.py +90 -0
  151. bluer_objects-6.377.1/bluer_objects/mlflow/testing.py +39 -0
  152. bluer_objects-6.377.1/bluer_objects/objects.py +85 -0
  153. bluer_objects-6.377.1/bluer_objects/path.py +194 -0
  154. bluer_objects-6.377.1/bluer_objects/pdf/__init__.py +1 -0
  155. bluer_objects-6.377.1/bluer_objects/pdf/__main__.py +78 -0
  156. bluer_objects-6.377.1/bluer_objects/pdf/convert/__init__.py +0 -0
  157. bluer_objects-6.377.1/bluer_objects/pdf/convert/batch.py +54 -0
  158. bluer_objects-6.377.1/bluer_objects/pdf/convert/combination.py +32 -0
  159. bluer_objects-6.377.1/bluer_objects/pdf/convert/convert.py +111 -0
  160. bluer_objects-6.377.1/bluer_objects/pdf/convert/image.py +53 -0
  161. bluer_objects-6.377.1/bluer_objects/pdf/convert/md.py +97 -0
  162. bluer_objects-6.377.1/bluer_objects/pdf/convert/missing.py +96 -0
  163. bluer_objects-6.377.1/bluer_objects/pdf/convert/pdf.py +37 -0
  164. bluer_objects-6.377.1/bluer_objects/sample.env +9 -0
  165. bluer_objects-6.377.1/bluer_objects/storage/WebDAV.py +126 -0
  166. bluer_objects-6.377.1/bluer_objects/storage/WebDAVrequest.py +360 -0
  167. bluer_objects-6.377.1/bluer_objects/storage/WebDAVzip.py +166 -0
  168. bluer_objects-6.377.1/bluer_objects/storage/__init__.py +86 -0
  169. bluer_objects-6.377.1/bluer_objects/storage/__main__.py +121 -0
  170. bluer_objects-6.377.1/bluer_objects/storage/base.py +131 -0
  171. bluer_objects-6.377.1/bluer_objects/storage/policies.py +7 -0
  172. bluer_objects-6.377.1/bluer_objects/storage/s3.py +367 -0
  173. bluer_objects-6.377.1/bluer_objects/testing/__init__.py +1 -0
  174. bluer_objects-6.377.1/bluer_objects/testing/__main__.py +38 -0
  175. bluer_objects-6.377.1/bluer_objects/testing/functions.py +60 -0
  176. bluer_objects-6.377.1/bluer_objects/tests/__init__.py +0 -0
  177. bluer_objects-6.377.1/bluer_objects/tests/test_README.py +5 -0
  178. bluer_objects-6.377.1/bluer_objects/tests/test_README_consts.py +71 -0
  179. bluer_objects-6.377.1/bluer_objects/tests/test_README_items.py +128 -0
  180. bluer_objects-6.377.1/bluer_objects/tests/test_alias.py +33 -0
  181. bluer_objects-6.377.1/bluer_objects/tests/test_env.py +45 -0
  182. bluer_objects-6.377.1/bluer_objects/tests/test_file_download.py +25 -0
  183. bluer_objects-6.377.1/bluer_objects/tests/test_file_load_save.py +111 -0
  184. bluer_objects-6.377.1/bluer_objects/tests/test_file_load_save_text.py +46 -0
  185. bluer_objects-6.377.1/bluer_objects/tests/test_fullname.py +5 -0
  186. bluer_objects-6.377.1/bluer_objects/tests/test_graphics.py +13 -0
  187. bluer_objects-6.377.1/bluer_objects/tests/test_graphics_frame.py +11 -0
  188. bluer_objects-6.377.1/bluer_objects/tests/test_graphics_gif.py +29 -0
  189. bluer_objects-6.377.1/bluer_objects/tests/test_graphics_screen.py +8 -0
  190. bluer_objects-6.377.1/bluer_objects/tests/test_graphics_signature.py +80 -0
  191. bluer_objects-6.377.1/bluer_objects/tests/test_graphics_text.py +14 -0
  192. bluer_objects-6.377.1/bluer_objects/tests/test_log_image_grid.py +29 -0
  193. bluer_objects-6.377.1/bluer_objects/tests/test_logger.py +5 -0
  194. bluer_objects-6.377.1/bluer_objects/tests/test_logger_confusion_matrix.py +18 -0
  195. bluer_objects-6.377.1/bluer_objects/tests/test_logger_matrix.py +73 -0
  196. bluer_objects-6.377.1/bluer_objects/tests/test_logger_stitch_images.py +47 -0
  197. bluer_objects-6.377.1/bluer_objects/tests/test_markdown.py +10 -0
  198. bluer_objects-6.377.1/bluer_objects/tests/test_metadata.py +210 -0
  199. bluer_objects-6.377.1/bluer_objects/tests/test_metadata_flatten.py +109 -0
  200. bluer_objects-6.377.1/bluer_objects/tests/test_mlflow.py +60 -0
  201. bluer_objects-6.377.1/bluer_objects/tests/test_mlflow_lock.py +26 -0
  202. bluer_objects-6.377.1/bluer_objects/tests/test_objects.py +67 -0
  203. bluer_objects-6.377.1/bluer_objects/tests/test_path.py +7 -0
  204. bluer_objects-6.377.1/bluer_objects/tests/test_shell.py +34 -0
  205. bluer_objects-6.377.1/bluer_objects/tests/test_storage.py +36 -0
  206. bluer_objects-6.377.1/bluer_objects/tests/test_storage_base.py +39 -0
  207. bluer_objects-6.377.1/bluer_objects/tests/test_storage_s3.py +67 -0
  208. bluer_objects-6.377.1/bluer_objects/tests/test_storage_webdav_request.py +75 -0
  209. bluer_objects-6.377.1/bluer_objects/tests/test_storage_webdav_zip.py +42 -0
  210. bluer_objects-6.377.1/bluer_objects/tests/test_testing.py +8 -0
  211. bluer_objects-6.377.1/bluer_objects/tests/test_version.py +5 -0
  212. bluer_objects-6.377.1/bluer_objects/tests/test_web_is_accessible.py +11 -0
  213. bluer_objects-6.377.1/bluer_objects/urls.py +3 -0
  214. bluer_objects-6.377.1/bluer_objects/web/__init__.py +1 -0
  215. bluer_objects-6.377.1/bluer_objects/web/__main__.py +31 -0
  216. bluer_objects-6.377.1/bluer_objects/web/functions.py +9 -0
  217. bluer_objects-6.377.1/bluer_objects.egg-info/PKG-INFO +71 -0
  218. bluer_objects-6.377.1/bluer_objects.egg-info/SOURCES.txt +223 -0
  219. bluer_objects-6.377.1/bluer_objects.egg-info/dependency_links.txt +1 -0
  220. bluer_objects-6.377.1/bluer_objects.egg-info/requires.txt +10 -0
  221. bluer_objects-6.377.1/bluer_objects.egg-info/top_level.txt +1 -0
  222. bluer_objects-6.377.1/pyproject.toml +6 -0
  223. bluer_objects-6.377.1/requirements.txt +8 -0
  224. bluer_objects-6.377.1/setup.cfg +4 -0
  225. bluer_objects-6.377.1/setup.py +41 -0
@@ -0,0 +1,121 @@
1
+ Creative Commons Legal Code
2
+
3
+ CC0 1.0 Universal
4
+
5
+ CREATIVE COMMONS CORPORATION IS NOT A LAW FIRM AND DOES NOT PROVIDE
6
+ LEGAL SERVICES. DISTRIBUTION OF THIS DOCUMENT DOES NOT CREATE AN
7
+ ATTORNEY-CLIENT RELATIONSHIP. CREATIVE COMMONS PROVIDES THIS
8
+ INFORMATION ON AN "AS-IS" BASIS. CREATIVE COMMONS MAKES NO WARRANTIES
9
+ REGARDING THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS
10
+ PROVIDED HEREUNDER, AND DISCLAIMS LIABILITY FOR DAMAGES RESULTING FROM
11
+ THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS PROVIDED
12
+ HEREUNDER.
13
+
14
+ Statement of Purpose
15
+
16
+ The laws of most jurisdictions throughout the world automatically confer
17
+ exclusive Copyright and Related Rights (defined below) upon the creator
18
+ and subsequent owner(s) (each and all, an "owner") of an original work of
19
+ authorship and/or a database (each, a "Work").
20
+
21
+ Certain owners wish to permanently relinquish those rights to a Work for
22
+ the purpose of contributing to a commons of creative, cultural and
23
+ scientific works ("Commons") that the public can reliably and without fear
24
+ of later claims of infringement build upon, modify, incorporate in other
25
+ works, reuse and redistribute as freely as possible in any form whatsoever
26
+ and for any purposes, including without limitation commercial purposes.
27
+ These owners may contribute to the Commons to promote the ideal of a free
28
+ culture and the further production of creative, cultural and scientific
29
+ works, or to gain reputation or greater distribution for their Work in
30
+ part through the use and efforts of others.
31
+
32
+ For these and/or other purposes and motivations, and without any
33
+ expectation of additional consideration or compensation, the person
34
+ associating CC0 with a Work (the "Affirmer"), to the extent that he or she
35
+ is an owner of Copyright and Related Rights in the Work, voluntarily
36
+ elects to apply CC0 to the Work and publicly distribute the Work under its
37
+ terms, with knowledge of his or her Copyright and Related Rights in the
38
+ Work and the meaning and intended legal effect of CC0 on those rights.
39
+
40
+ 1. Copyright and Related Rights. A Work made available under CC0 may be
41
+ protected by copyright and related or neighboring rights ("Copyright and
42
+ Related Rights"). Copyright and Related Rights include, but are not
43
+ limited to, the following:
44
+
45
+ i. the right to reproduce, adapt, distribute, perform, display,
46
+ communicate, and translate a Work;
47
+ ii. moral rights retained by the original author(s) and/or performer(s);
48
+ iii. publicity and privacy rights pertaining to a person's image or
49
+ likeness depicted in a Work;
50
+ iv. rights protecting against unfair competition in regards to a Work,
51
+ subject to the limitations in paragraph 4(a), below;
52
+ v. rights protecting the extraction, dissemination, use and reuse of data
53
+ in a Work;
54
+ vi. database rights (such as those arising under Directive 96/9/EC of the
55
+ European Parliament and of the Council of 11 March 1996 on the legal
56
+ protection of databases, and under any national implementation
57
+ thereof, including any amended or successor version of such
58
+ directive); and
59
+ vii. other similar, equivalent or corresponding rights throughout the
60
+ world based on applicable law or treaty, and any national
61
+ implementations thereof.
62
+
63
+ 2. Waiver. To the greatest extent permitted by, but not in contravention
64
+ of, applicable law, Affirmer hereby overtly, fully, permanently,
65
+ irrevocably and unconditionally waives, abandons, and surrenders all of
66
+ Affirmer's Copyright and Related Rights and associated claims and causes
67
+ of action, whether now known or unknown (including existing as well as
68
+ future claims and causes of action), in the Work (i) in all territories
69
+ worldwide, (ii) for the maximum duration provided by applicable law or
70
+ treaty (including future time extensions), (iii) in any current or future
71
+ medium and for any number of copies, and (iv) for any purpose whatsoever,
72
+ including without limitation commercial, advertising or promotional
73
+ purposes (the "Waiver"). Affirmer makes the Waiver for the benefit of each
74
+ member of the public at large and to the detriment of Affirmer's heirs and
75
+ successors, fully intending that such Waiver shall not be subject to
76
+ revocation, rescission, cancellation, termination, or any other legal or
77
+ equitable action to disrupt the quiet enjoyment of the Work by the public
78
+ as contemplated by Affirmer's express Statement of Purpose.
79
+
80
+ 3. Public License Fallback. Should any part of the Waiver for any reason
81
+ be judged legally invalid or ineffective under applicable law, then the
82
+ Waiver shall be preserved to the maximum extent permitted taking into
83
+ account Affirmer's express Statement of Purpose. In addition, to the
84
+ extent the Waiver is so judged Affirmer hereby grants to each affected
85
+ person a royalty-free, non transferable, non sublicensable, non exclusive,
86
+ irrevocable and unconditional license to exercise Affirmer's Copyright and
87
+ Related Rights in the Work (i) in all territories worldwide, (ii) for the
88
+ maximum duration provided by applicable law or treaty (including future
89
+ time extensions), (iii) in any current or future medium and for any number
90
+ of copies, and (iv) for any purpose whatsoever, including without
91
+ limitation commercial, advertising or promotional purposes (the
92
+ "License"). The License shall be deemed effective as of the date CC0 was
93
+ applied by Affirmer to the Work. Should any part of the License for any
94
+ reason be judged legally invalid or ineffective under applicable law, such
95
+ partial invalidity or ineffectiveness shall not invalidate the remainder
96
+ of the License, and in such case Affirmer hereby affirms that he or she
97
+ will not (i) exercise any of his or her remaining Copyright and Related
98
+ Rights in the Work or (ii) assert any associated claims and causes of
99
+ action with respect to the Work, in either case contrary to Affirmer's
100
+ express Statement of Purpose.
101
+
102
+ 4. Limitations and Disclaimers.
103
+
104
+ a. No trademark or patent rights held by Affirmer are waived, abandoned,
105
+ surrendered, licensed or otherwise affected by this document.
106
+ b. Affirmer offers the Work as-is and makes no representations or
107
+ warranties of any kind concerning the Work, express, implied,
108
+ statutory or otherwise, including without limitation warranties of
109
+ title, merchantability, fitness for a particular purpose, non
110
+ infringement, or the absence of latent or other defects, accuracy, or
111
+ the present or absence of errors, whether or not discoverable, all to
112
+ the greatest extent permissible under applicable law.
113
+ c. Affirmer disclaims responsibility for clearing rights of other persons
114
+ that may apply to the Work or any use thereof, including without
115
+ limitation any person's Copyright and Related Rights in the Work.
116
+ Further, Affirmer disclaims responsibility for obtaining any necessary
117
+ consents, permissions or other rights required for any use of the
118
+ Work.
119
+ d. Affirmer understands and acknowledges that Creative Commons is not a
120
+ party to this document and has no duty or obligation with respect to
121
+ this CC0 or use of the Work.
@@ -0,0 +1 @@
1
+ include requirements.txt
@@ -0,0 +1,71 @@
1
+ Metadata-Version: 2.4
2
+ Name: bluer_objects
3
+ Version: 6.377.1
4
+ Summary: 🌀 Object management in Bash.
5
+ Home-page: https://github.com/kamangir/bluer-objects
6
+ Author: Arash Abadpour (Kamangir)
7
+ Author-email: arash.abadpour@gmail.com
8
+ License: CC0-1.0
9
+ Classifier: Programming Language :: Python :: 3
10
+ Classifier: Programming Language :: Unix Shell
11
+ Classifier: Operating System :: OS Independent
12
+ Description-Content-Type: text/markdown
13
+ License-File: LICENSE
14
+ Requires-Dist: bluer_ai
15
+ Requires-Dist: boto3
16
+ Requires-Dist: webdavclient3
17
+ Requires-Dist: dill
18
+ Requires-Dist: mlflow
19
+ Requires-Dist: pandas
20
+ Requires-Dist: urllib3
21
+ Provides-Extra: opencv
22
+ Requires-Dist: opencv-python; extra == "opencv"
23
+ Dynamic: author
24
+ Dynamic: author-email
25
+ Dynamic: classifier
26
+ Dynamic: description
27
+ Dynamic: description-content-type
28
+ Dynamic: home-page
29
+ Dynamic: license
30
+ Dynamic: license-file
31
+ Dynamic: provides-extra
32
+ Dynamic: requires-dist
33
+ Dynamic: summary
34
+
35
+ # 🌀 bluer-objects
36
+
37
+ 🌀 `bluer-objects` are the inputs and outputs of [AI algo](https://github.com/kamangir/giza). They are maintained in cloud storage (supports [WebDav](https://pypi.org/project/webdavclient3/)) and their metadata is tracked by [MLflow](https://mlflow.org/). Examples are the Sentinel-2 [datacube](https://github.com/kamangir/blue-geo/tree/main/blue_geo/datacube) `datacube-EarthSearch-sentinel_2_l1c-S2A_10UDC_20240731_0_L1C` and 🌐 [`@geo watch` outputs](https://github.com/kamangir/blue-geo/tree/main/blue_geo/watch).
38
+
39
+ Also home to 🌀 [bluer README](https://github.com/kamangir/bluer-objects/blob/main/bluer_objects/README/), and the 🔒 [`Lock`](https://github.com/kamangir/bluer-objects/blob/main/bluer_objects/mlflow/lock/).
40
+
41
+ # installation
42
+
43
+ ```bash
44
+ pip install bluer-objects
45
+ ```
46
+
47
+ # aliases
48
+
49
+ [@assets](https://github.com/kamangir/bluer-objects/blob/main/bluer_objects/docs/aliases/assets.md),
50
+ [@clone](https://github.com/kamangir/bluer-objects/blob/main/bluer_objects/docs/aliases/clone.md),
51
+ [@download](https://github.com/kamangir/bluer-objects/blob/main/bluer_objects/docs/aliases/download.md),
52
+ [@gif](https://github.com/kamangir/bluer-objects/blob/main/bluer_objects/docs/aliases/gif.md),
53
+ [@host](https://github.com/kamangir/bluer-objects/blob/main/bluer_objects/docs/aliases/host.md),
54
+ [@ls](https://github.com/kamangir/bluer-objects/blob/main/bluer_objects/docs/aliases/ls.md),
55
+ [@metadata](https://github.com/kamangir/bluer-objects/blob/main/bluer_objects/docs/aliases/metadata.md),
56
+ [@mlflow](https://github.com/kamangir/bluer-objects/blob/main/bluer_objects/docs/aliases/mlflow.md),
57
+ [@pdf](https://github.com/kamangir/bluer-objects/blob/main/bluer_objects/docs/aliases/pdf.md),
58
+ [@upload](https://github.com/kamangir/bluer-objects/blob/main/bluer_objects/docs/aliases/upload.md).
59
+
60
+ ---
61
+
62
+ > 🌀 [`blue-objects`](https://github.com/kamangir/blue-objects) for the [Global South](https://github.com/kamangir/bluer-south).
63
+
64
+ ---
65
+
66
+
67
+ [![pylint](https://github.com/kamangir/bluer-objects/actions/workflows/pylint.yml/badge.svg)](https://github.com/kamangir/bluer-objects/actions/workflows/pylint.yml) [![pytest](https://github.com/kamangir/bluer-objects/actions/workflows/pytest.yml/badge.svg)](https://github.com/kamangir/bluer-objects/actions/workflows/pytest.yml) [![bashtest](https://github.com/kamangir/bluer-objects/actions/workflows/bashtest.yml/badge.svg)](https://github.com/kamangir/bluer-objects/actions/workflows/bashtest.yml) [![PyPI version](https://img.shields.io/pypi/v/bluer-objects.svg)](https://pypi.org/project/bluer-objects/) [![PyPI - Downloads](https://img.shields.io/pypi/dd/bluer-objects)](https://pypistats.org/packages/bluer-objects)
68
+
69
+ built by 🌀 [`bluer README`](https://github.com/kamangir/bluer-objects/tree/main/bluer_objects/README), based on 🌀 [`bluer_objects-6.377.1`](https://github.com/kamangir/bluer-objects).
70
+
71
+ built by 🌀 [`blueness-3.118.1`](https://github.com/kamangir/blueness).
@@ -0,0 +1,35 @@
1
+ # 🌀 bluer-objects
2
+
3
+ 🌀 `bluer-objects` are the inputs and outputs of [AI algo](https://github.com/kamangir/giza). They are maintained in cloud storage (supports [WebDav](https://pypi.org/project/webdavclient3/)) and their metadata is tracked by [MLflow](https://mlflow.org/). Examples are the Sentinel-2 [datacube](https://github.com/kamangir/blue-geo/tree/main/blue_geo/datacube) `datacube-EarthSearch-sentinel_2_l1c-S2A_10UDC_20240731_0_L1C` and 🌐 [`@geo watch` outputs](https://github.com/kamangir/blue-geo/tree/main/blue_geo/watch).
4
+
5
+ Also home to 🌀 [bluer README](./bluer_objects/README/), and the 🔒 [`Lock`](./bluer_objects/mlflow/lock/).
6
+
7
+ # installation
8
+
9
+ ```bash
10
+ pip install bluer-objects
11
+ ```
12
+
13
+ # aliases
14
+
15
+ [@assets](./bluer_objects/docs/aliases/assets.md),
16
+ [@clone](./bluer_objects/docs/aliases/clone.md),
17
+ [@download](./bluer_objects/docs/aliases/download.md),
18
+ [@gif](./bluer_objects/docs/aliases/gif.md),
19
+ [@host](./bluer_objects/docs/aliases/host.md),
20
+ [@ls](./bluer_objects/docs/aliases/ls.md),
21
+ [@metadata](./bluer_objects/docs/aliases/metadata.md),
22
+ [@mlflow](./bluer_objects/docs/aliases/mlflow.md),
23
+ [@pdf](./bluer_objects/docs/aliases/pdf.md),
24
+ [@upload](./bluer_objects/docs/aliases/upload.md).
25
+
26
+ ---
27
+
28
+ > 🌀 [`blue-objects`](https://github.com/kamangir/blue-objects) for the [Global South](https://github.com/kamangir/bluer-south).
29
+
30
+ ---
31
+
32
+
33
+ [![pylint](https://github.com/kamangir/bluer-objects/actions/workflows/pylint.yml/badge.svg)](https://github.com/kamangir/bluer-objects/actions/workflows/pylint.yml) [![pytest](https://github.com/kamangir/bluer-objects/actions/workflows/pytest.yml/badge.svg)](https://github.com/kamangir/bluer-objects/actions/workflows/pytest.yml) [![bashtest](https://github.com/kamangir/bluer-objects/actions/workflows/bashtest.yml/badge.svg)](https://github.com/kamangir/bluer-objects/actions/workflows/bashtest.yml) [![PyPI version](https://img.shields.io/pypi/v/bluer-objects.svg)](https://pypi.org/project/bluer-objects/) [![PyPI - Downloads](https://img.shields.io/pypi/dd/bluer-objects)](https://pypistats.org/packages/bluer-objects)
34
+
35
+ built by 🌀 [`bluer README`](https://github.com/kamangir/bluer-objects/tree/main/bluer_objects/README), based on 🌀 [`bluer_objects-6.377.1`](https://github.com/kamangir/bluer-objects).
@@ -0,0 +1,15 @@
1
+ #! /usr/bin/env bash
2
+
3
+ bluer_ai_source_caller_suffix_path /tests
4
+
5
+ bluer_ai_env_dot_load \
6
+ caller,plugin=bluer_objects,suffix=/../..
7
+
8
+ if [[ "$MLFLOW_DEPLOYMENT" == "local" ]]; then
9
+ export MLFLOW_TRACKING_URI=$HOME/mlflow
10
+ else
11
+ export MLFLOW_TRACKING_URI=$MLFLOW_DEPLOYMENT
12
+ fi
13
+
14
+ bluer_ai_env_dot_load \
15
+ caller,filename=config.env,suffix=/..
@@ -0,0 +1,11 @@
1
+ #! /usr/bin/env bash
2
+
3
+ function bluer_objects_action_git_before_push() {
4
+ bluer_objects build_README
5
+ [[ $? -ne 0 ]] && return 1
6
+
7
+ [[ "$(bluer_ai_git get_branch)" != "main" ]] &&
8
+ return 0
9
+
10
+ bluer_objects pypi build
11
+ }
@@ -0,0 +1,3 @@
1
+ #! /usr/bin/env bash
2
+
3
+
@@ -0,0 +1,47 @@
1
+ #! /usr/bin/env bash
2
+
3
+ alias @ai=bluer_ai
4
+ alias @i=bluer_ai
5
+
6
+ alias @assets=bluer_objects_assets
7
+
8
+ alias @create_test_asset=bluer_objects_create_test_asset
9
+
10
+ alias @download=bluer_objects_download
11
+
12
+ alias @gif=bluer_objects_gif
13
+
14
+ alias @cache=bluer_objects_mlflow_cache
15
+ alias @ref="bluer_objects_mlflow_cache read"
16
+ alias @tags=bluer_objects_mlflow_tags
17
+
18
+ alias @clone=bluer_objects_clone
19
+ alias @cp=bluer_objects_clone
20
+
21
+ alias @file=bluer_objects_file
22
+
23
+ alias @host=bluer_objects_host
24
+
25
+ alias @ls=bluer_objects_ls
26
+
27
+ alias @lock=bluer_objects_mlflow_lock
28
+
29
+ alias @metadata=bluer_objects_metadata
30
+
31
+ alias @mlflow=bluer_objects_mlflow
32
+
33
+ alias @mysql=abcli_mysql
34
+
35
+ alias @objects=bluer_objects
36
+
37
+ alias @pdf=bluer_objects_pdf
38
+
39
+ alias @random=bluer_ai_string_random
40
+
41
+ alias @select=bluer_ai_select
42
+
43
+ alias @storage=bluer_ai_storage
44
+
45
+ alias @upload=bluer_objects_upload
46
+
47
+ alias @web=bluer_objects_web
@@ -0,0 +1,20 @@
1
+ #! /usr/bin/env bash
2
+
3
+ function bluer_objects_assets_cd() {
4
+ local options=$1
5
+ local do_create=$(bluer_ai_option_int "$options" create 0)
6
+ local volume=$(bluer_ai_option "$options" vol)
7
+
8
+ local path=$2
9
+ path=$abcli_path_git/assets$volume/$path
10
+
11
+ if [[ "$do_create" == 1 ]]; then
12
+ mkdir -pv $path
13
+ [[ $? -ne 0 ]] && return 1
14
+ fi
15
+
16
+ cd $path
17
+ [[ $? -ne 0 ]] && return 1
18
+
19
+ bluer_ai_log "🔗 $path"
20
+ }
@@ -0,0 +1,34 @@
1
+ #! /usr/bin/env bash
2
+
3
+ function bluer_objects_assets_mv() {
4
+ local options=$1
5
+ local do_create=$(bluer_ai_option_int "$options" create 0)
6
+ local extension=$(bluer_ai_option "$options" extension jpg)
7
+ local volume=$(bluer_ai_option "$options" vol)
8
+
9
+ local path=$2
10
+ path=$abcli_path_git/assets$volume/$path
11
+
12
+ if [[ "$do_create" == 1 ]]; then
13
+ mkdir -pv $path
14
+ [[ $? -ne 0 ]] && return 1
15
+ fi
16
+
17
+ bluer_ai_log "Downloads/.$extension -> assets$volume/path"
18
+
19
+ mv -v \
20
+ $HOME/Downloads/*.$extension \
21
+ $path
22
+ [[ $? -ne 0 ]] && return 1
23
+
24
+ local push_options=$3
25
+ local do_push=$(bluer_ai_option_int "$push_options" push 0)
26
+ [[ "$do_push" == 0 ]] &&
27
+ return 0
28
+
29
+ bluer_ai_git \
30
+ assets$volume \
31
+ push \
32
+ "$path += " \
33
+ $push_options
34
+ }
@@ -0,0 +1,37 @@
1
+ #! /usr/bin/env bash
2
+
3
+ function bluer_objects_assets_publish() {
4
+ local options=$1
5
+
6
+ local do_download=$(bluer_ai_option_int "$options" download 0)
7
+ local do_pull=$(bluer_ai_option_int "$options" pull 1)
8
+ local do_push=$(bluer_ai_option_int "$options" push 0)
9
+ local extensions=$(bluer_ai_option "$options" extensions png)
10
+
11
+ [[ "$do_pull" == 1 ]] &&
12
+ bluer_ai_git \
13
+ assets \
14
+ pull \
15
+ ~all
16
+
17
+ local object_name=$(bluer_ai_clarify_object $2 .)
18
+
19
+ [[ "$do_download" == 1 ]] &&
20
+ bluer_objects_download - $object_name
21
+
22
+ bluer_ai_eval dryrun=$do_dryrun \
23
+ python3 -m bluer_objects.assets \
24
+ publish \
25
+ --object_name $object_name \
26
+ --extensions $extensions \
27
+ "${@:3}"
28
+ [[ $? -ne 0 ]] && return 1
29
+
30
+ [[ "$do_push" == 1 ]] &&
31
+ bluer_ai_git \
32
+ assets \
33
+ push \
34
+ "$object_name update."
35
+
36
+ return 0
37
+ }
@@ -0,0 +1,15 @@
1
+ #! /usr/bin/env bash
2
+
3
+ function bluer_objects_assets() {
4
+ local task=$1
5
+
6
+ local function_name=bluer_objects_assets_$task
7
+ if [[ $(type -t $function_name) == "function" ]]; then
8
+ $function_name "${@:2}"
9
+ return
10
+ fi
11
+
12
+ python3 -m bluer_objects.assets "$@"
13
+ }
14
+
15
+ bluer_ai_source_caller_suffix_path /assets
@@ -0,0 +1,11 @@
1
+ #! /usr/bin/env bash
2
+
3
+ function bluer_objects() {
4
+ local task=$1
5
+
6
+ bluer_ai_generic_task \
7
+ plugin=bluer_objects,task=$task \
8
+ "${@:2}"
9
+ }
10
+
11
+ bluer_ai_log $(bluer_objects version --show_icon 1)
@@ -0,0 +1,66 @@
1
+ #! /usr/bin/env bash
2
+
3
+ function bluer_objects_clone() {
4
+ local options=$1
5
+ local do_relate=$(bluer_ai_option_int "$options" relate 1)
6
+ local do_upload=$(bluer_ai_option_int "$options" upload 0)
7
+ local clone_tags=$(bluer_ai_option_int "$options" tags 1)
8
+ local copy_content=$(bluer_ai_option_int "$options" content 1)
9
+ local do_download=$(bluer_ai_option_int "$options" download 1)
10
+ local transfer_mechanism=$(bluer_ai_option_choice "$options" cp,mv mv)
11
+
12
+ local object_1_name=$(bluer_ai_clarify_object $2 ..)
13
+ local object_2_name=$(bluer_ai_clarify_object $3 .)
14
+
15
+ bluer_ai_log "$object_1_name -clone:$transfer_mechanism-> $object_2_name"
16
+
17
+ [[ "$do_download" == 1 ]] &&
18
+ bluer_objects_download - $object_1_name
19
+
20
+ local object_1_path=$ABCLI_OBJECT_ROOT/$object_1_name
21
+ local object_2_path=$ABCLI_OBJECT_ROOT/$object_2_name
22
+
23
+ if [[ "$copy_content" == 1 ]]; then
24
+ bluer_ai_eval - \
25
+ rsync \
26
+ -avv \
27
+ $object_1_path/ \
28
+ $object_2_path
29
+ else
30
+ local extension
31
+ for extension in qgz; do
32
+ cp -v \
33
+ $object_1_path/*.$extension \
34
+ $object_2_path
35
+ done
36
+ fi
37
+
38
+ [[ "$clone_tags" == 1 ]] &&
39
+ bluer_objects_mlflow_tags clone \
40
+ $object_1_name \
41
+ $object_2_name
42
+
43
+ [[ "$do_relate" == 1 ]] &&
44
+ bluer_objects_mlflow_tags set \
45
+ $object_2_name \
46
+ cloned.$object_1_name
47
+
48
+ pushd $object_2_path >/dev/null
49
+ local filename
50
+ for filename in $object_1_name.*; do
51
+ $transfer_mechanism -v \
52
+ $filename \
53
+ $object_2_path/$object_2_name.${filename##*.}
54
+ done
55
+ popd >/dev/null
56
+
57
+ [[ -f "$object_1_path/metadata.yaml" ]] &&
58
+ cp -v \
59
+ $object_1_path/metadata.yaml \
60
+ $object_2_path/metadata-$object_1_name.yaml
61
+
62
+ [[ "$do_upload" == 1 ]] &&
63
+ bluer_objects_upload - $object_2_name
64
+
65
+ return 0
66
+ }
@@ -0,0 +1,10 @@
1
+ #! /usr/bin/env bash
2
+
3
+ function bluer_objects_create_test_asset() {
4
+ local object_name=$(bluer_ai_clarify_object $1 .)
5
+
6
+ python3 -m bluer_objects.testing \
7
+ create_test_asset \
8
+ --object_name $object_name \
9
+ "${@:2}"
10
+ }
@@ -0,0 +1,24 @@
1
+ #! /usr/bin/env bash
2
+
3
+ function bluer_objects_download() {
4
+ local options=$1
5
+ local filename=$(bluer_ai_option "$options" filename)
6
+ local policy=$(bluer_ai_option "$options" policy none)
7
+
8
+ local object_name=$(bluer_ai_clarify_object $2 .)
9
+
10
+ python3 -m bluer_objects.storage \
11
+ download \
12
+ --object_name $object_name \
13
+ --filename "$filename" \
14
+ --policy $policy
15
+ [[ $? -ne 0 ]] && return 1
16
+
17
+ local open_options=$3
18
+ local do_open=$(bluer_ai_option_int "$open_options" open 0)
19
+ [[ "$do_open" == 0 ]] &&
20
+ return 0
21
+
22
+ bluer_ai_open filename=$filename,$open_options \
23
+ $object_name
24
+ }
@@ -0,0 +1,19 @@
1
+ #! /usr/bin/env bash
2
+
3
+ function bluer_objects_file() {
4
+ local options=$1
5
+ local do_sudo=$(bluer_ai_option_int "$options" sudo 0)
6
+
7
+ local task=$2
8
+
9
+ local prefix=""
10
+ [[ "$do_sudo" == 1 ]] &&
11
+ prefix="sudo -E"
12
+
13
+ local filename=$3
14
+
15
+ $prefix $(which python) -m bluer_objects.file \
16
+ "$task" \
17
+ --filename "$filename" \
18
+ "${@:4}"
19
+ }
@@ -0,0 +1,45 @@
1
+ #! /usr/bin/env bash
2
+
3
+ function bluer_objects_gif() {
4
+ local options=$1
5
+ local do_open=$(bluer_ai_option_int "$options" open 0)
6
+ if [[ "$do_open" == 1 ]]; then
7
+ local options=$2
8
+ local do_download=$(bluer_ai_option_int "$options" download 0)
9
+
10
+ local object_name=$(bluer_ai_clarify_object $3 .)
11
+ local filename=$(bluer_ai_option "$options" filename $object_name.gif)
12
+
13
+ [[ "$do_download" == 1 ]] &&
14
+ bluer_objects_download \
15
+ filename=$filename \
16
+ $object_name
17
+
18
+ bluer_ai_browse $ABCLI_OBJECT_ROOT/$object_name/$filename
19
+
20
+ return
21
+ fi
22
+
23
+ local do_dryrun=$(bluer_ai_option_int "$options" dryrun 0)
24
+ local do_download=$(bluer_ai_option_int "$options" download $(bluer_ai_not $do_dryrun))
25
+ local do_upload=$(bluer_ai_option_int "$options" upload $(bluer_ai_not $do_dryrun))
26
+
27
+ local object_name=$(bluer_ai_clarify_object $2 .)
28
+
29
+ [[ "$do_download" == 1 ]] &&
30
+ bluer_objects_download - $object_name
31
+
32
+ bluer_ai_log "generating animated gif: $object_name ..."
33
+
34
+ bluer_ai_eval dryrun=$do_dryrun \
35
+ python3 -m bluer_objects.graphics \
36
+ generate_animated_gif \
37
+ --object_name $object_name \
38
+ "${@:3}"
39
+ local status="$?"
40
+
41
+ [[ "$do_upload" == 1 ]] &&
42
+ bluer_objects_upload - $object_name
43
+
44
+ return $status
45
+ }
@@ -0,0 +1,45 @@
1
+ #! /usr/bin/env bash
2
+
3
+ function bluer_objects_host() {
4
+ local task=$1
5
+ local options=$2
6
+
7
+ if [ $task == "get" ]; then
8
+ python3 -m bluer_options.host \
9
+ get \
10
+ --keyword "$2" \
11
+ "${@:3}"
12
+ return
13
+ fi
14
+
15
+ if [[ "|reboot|shutdown|" == *"|$task|"* ]]; then
16
+ local command_line
17
+ [[ $task == "reboot" ]] &&
18
+ command_line="sudo reboot"
19
+ [[ $task == "shutdown" ]] &&
20
+ command_line="sudo shutdown -h now"
21
+
22
+ local rpi=$(bluer_ai_option_int "$options" rpi 0)
23
+ if [[ "$rpi" == 1 ]]; then
24
+ local machine_name=$3
25
+ if [[ -z "$machine_name" ]]; then
26
+ bluer_ai_log_error "machine_name not found."
27
+ return 1
28
+ fi
29
+
30
+ ssh \
31
+ pi@$machine_name.local \
32
+ $command_line
33
+
34
+ return
35
+ fi
36
+
37
+ bluer_ai_eval ,$options \
38
+ $command_line
39
+
40
+ return
41
+ fi
42
+
43
+ bluer_ai_log_error "@host: $task: command not found."
44
+ return 1
45
+ }