osducli 0.0.48__tar.gz → 0.0.49__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 (255) hide show
  1. {osducli-0.0.48/src/osducli.egg-info → osducli-0.0.49}/PKG-INFO +6 -1
  2. {osducli-0.0.48 → osducli-0.0.49}/README.rst +5 -0
  3. osducli-0.0.49/src/osducli/VERSION +1 -0
  4. {osducli-0.0.48 → osducli-0.0.49}/src/osducli/commands/wbdutil/config_file.py +19 -2
  5. {osducli-0.0.48 → osducli-0.0.49}/src/osducli/commands/wbdutil/download.py +6 -4
  6. {osducli-0.0.48 → osducli-0.0.49}/src/osducli/commands/wbdutil/ingest/data.py +4 -2
  7. {osducli-0.0.48 → osducli-0.0.49}/src/osducli/commands/wbdutil/ingest/wellbore.py +4 -2
  8. {osducli-0.0.48 → osducli-0.0.49}/src/osducli/commands/wbdutil/list/curves.py +1 -1
  9. {osducli-0.0.48 → osducli-0.0.49}/src/osducli/commands/wbdutil/parse/convert.py +4 -2
  10. {osducli-0.0.48 → osducli-0.0.49}/src/osducli/commands/wellbore_ddms/_const.py +9 -0
  11. osducli-0.0.49/src/osducli/commands/wellbore_ddms/log_recognition/__init__.py +13 -0
  12. osducli-0.0.49/src/osducli/commands/wellbore_ddms/log_recognition/family.py +37 -0
  13. osducli-0.0.49/src/osducli/commands/wellbore_ddms/log_recognition/upload_catalog.py +40 -0
  14. osducli-0.0.49/src/osducli/commands/wellbore_ddms/ppfgdataset/__init__.py +13 -0
  15. osducli-0.0.49/src/osducli/commands/wellbore_ddms/ppfgdataset/add.py +42 -0
  16. osducli-0.0.49/src/osducli/commands/wellbore_ddms/ppfgdataset/data/__init__.py +13 -0
  17. osducli-0.0.49/src/osducli/commands/wellbore_ddms/ppfgdataset/data/add.py +40 -0
  18. osducli-0.0.49/src/osducli/commands/wellbore_ddms/ppfgdataset/data/get.py +44 -0
  19. osducli-0.0.49/src/osducli/commands/wellbore_ddms/ppfgdataset/delete.py +35 -0
  20. osducli-0.0.49/src/osducli/commands/wellbore_ddms/ppfgdataset/get.py +35 -0
  21. osducli-0.0.49/src/osducli/commands/wellbore_ddms/ppfgdataset/session/__init__.py +13 -0
  22. osducli-0.0.49/src/osducli/commands/wellbore_ddms/ppfgdataset/session/create.py +35 -0
  23. osducli-0.0.49/src/osducli/commands/wellbore_ddms/ppfgdataset/session/get.py +36 -0
  24. osducli-0.0.49/src/osducli/commands/wellbore_ddms/ppfgdataset/session/list.py +35 -0
  25. osducli-0.0.49/src/osducli/commands/wellbore_ddms/ppfgdataset/session/send.py +41 -0
  26. osducli-0.0.49/src/osducli/commands/wellbore_ddms/ppfgdataset/session/update.py +37 -0
  27. osducli-0.0.49/src/osducli/commands/wellbore_ddms/ppfgdataset/version/__init__.py +13 -0
  28. osducli-0.0.49/src/osducli/commands/wellbore_ddms/ppfgdataset/version/data/__init__.py +13 -0
  29. osducli-0.0.49/src/osducli/commands/wellbore_ddms/ppfgdataset/version/data/get.py +45 -0
  30. osducli-0.0.49/src/osducli/commands/wellbore_ddms/ppfgdataset/version/get.py +36 -0
  31. osducli-0.0.49/src/osducli/commands/wellbore_ddms/ppfgdataset/version/list.py +35 -0
  32. osducli-0.0.49/src/osducli/commands/wellbore_ddms/trajectory/__init__.py +13 -0
  33. osducli-0.0.49/src/osducli/commands/wellbore_ddms/trajectory/add.py +42 -0
  34. osducli-0.0.49/src/osducli/commands/wellbore_ddms/trajectory/data/__init__.py +13 -0
  35. osducli-0.0.49/src/osducli/commands/wellbore_ddms/trajectory/data/add.py +40 -0
  36. osducli-0.0.49/src/osducli/commands/wellbore_ddms/trajectory/data/get.py +44 -0
  37. osducli-0.0.49/src/osducli/commands/wellbore_ddms/trajectory/delete.py +35 -0
  38. osducli-0.0.49/src/osducli/commands/wellbore_ddms/trajectory/get.py +35 -0
  39. osducli-0.0.49/src/osducli/commands/wellbore_ddms/trajectory/session/__init__.py +13 -0
  40. osducli-0.0.49/src/osducli/commands/wellbore_ddms/trajectory/session/create.py +35 -0
  41. osducli-0.0.49/src/osducli/commands/wellbore_ddms/trajectory/session/get.py +36 -0
  42. osducli-0.0.49/src/osducli/commands/wellbore_ddms/trajectory/session/list.py +35 -0
  43. osducli-0.0.49/src/osducli/commands/wellbore_ddms/trajectory/session/send.py +41 -0
  44. osducli-0.0.49/src/osducli/commands/wellbore_ddms/trajectory/session/update.py +37 -0
  45. osducli-0.0.49/src/osducli/commands/wellbore_ddms/trajectory/version/__init__.py +13 -0
  46. osducli-0.0.49/src/osducli/commands/wellbore_ddms/trajectory/version/data/__init__.py +13 -0
  47. osducli-0.0.49/src/osducli/commands/wellbore_ddms/trajectory/version/data/get.py +45 -0
  48. osducli-0.0.49/src/osducli/commands/wellbore_ddms/trajectory/version/get.py +36 -0
  49. osducli-0.0.49/src/osducli/commands/wellbore_ddms/trajectory/version/list.py +35 -0
  50. osducli-0.0.49/src/osducli/commands/wellbore_ddms/well/__init__.py +13 -0
  51. osducli-0.0.49/src/osducli/commands/wellbore_ddms/well/add.py +42 -0
  52. osducli-0.0.49/src/osducli/commands/wellbore_ddms/well/delete.py +35 -0
  53. osducli-0.0.49/src/osducli/commands/wellbore_ddms/well/get.py +35 -0
  54. osducli-0.0.49/src/osducli/commands/wellbore_ddms/well/version/__init__.py +13 -0
  55. osducli-0.0.49/src/osducli/commands/wellbore_ddms/well/version/get.py +36 -0
  56. osducli-0.0.49/src/osducli/commands/wellbore_ddms/well/version/list.py +35 -0
  57. {osducli-0.0.48 → osducli-0.0.49}/src/osducli/commands/wellbore_ddms/well_log/add.py +4 -4
  58. osducli-0.0.49/src/osducli/commands/wellbore_ddms/well_log/data/__init__.py +13 -0
  59. {osducli-0.0.48 → osducli-0.0.49}/src/osducli/commands/wellbore_ddms/well_log/data/add.py +5 -5
  60. {osducli-0.0.48 → osducli-0.0.49}/src/osducli/commands/wellbore_ddms/well_log/data/get.py +5 -5
  61. osducli-0.0.49/src/osducli/commands/wellbore_ddms/well_log/data/statistics.py +36 -0
  62. osducli-0.0.49/src/osducli/commands/wellbore_ddms/well_log/delete.py +35 -0
  63. {osducli-0.0.48 → osducli-0.0.49}/src/osducli/commands/wellbore_ddms/well_log/get.py +5 -5
  64. osducli-0.0.49/src/osducli/commands/wellbore_ddms/well_log/session/__init__.py +13 -0
  65. osducli-0.0.49/src/osducli/commands/wellbore_ddms/well_log/session/create.py +35 -0
  66. osducli-0.0.49/src/osducli/commands/wellbore_ddms/well_log/session/get.py +36 -0
  67. osducli-0.0.49/src/osducli/commands/wellbore_ddms/well_log/session/list.py +35 -0
  68. osducli-0.0.49/src/osducli/commands/wellbore_ddms/well_log/session/send.py +41 -0
  69. osducli-0.0.49/src/osducli/commands/wellbore_ddms/well_log/session/update.py +37 -0
  70. osducli-0.0.49/src/osducli/commands/wellbore_ddms/well_log/version/__init__.py +13 -0
  71. osducli-0.0.49/src/osducli/commands/wellbore_ddms/well_log/version/data/__init__.py +13 -0
  72. osducli-0.0.49/src/osducli/commands/wellbore_ddms/well_log/version/data/get.py +45 -0
  73. osducli-0.0.49/src/osducli/commands/wellbore_ddms/well_log/version/data/statistics.py +37 -0
  74. osducli-0.0.49/src/osducli/commands/wellbore_ddms/well_log/version/data/update_stats.py +36 -0
  75. osducli-0.0.49/src/osducli/commands/wellbore_ddms/well_log/version/get.py +36 -0
  76. osducli-0.0.49/src/osducli/commands/wellbore_ddms/well_log/version/list.py +35 -0
  77. osducli-0.0.49/src/osducli/commands/wellbore_ddms/wellbore/__init__.py +13 -0
  78. osducli-0.0.49/src/osducli/commands/wellbore_ddms/wellbore/add.py +42 -0
  79. osducli-0.0.49/src/osducli/commands/wellbore_ddms/wellbore/delete.py +35 -0
  80. osducli-0.0.49/src/osducli/commands/wellbore_ddms/wellbore/get.py +35 -0
  81. osducli-0.0.49/src/osducli/commands/wellbore_ddms/wellbore/version/__init__.py +13 -0
  82. osducli-0.0.49/src/osducli/commands/wellbore_ddms/wellbore/version/get.py +36 -0
  83. osducli-0.0.49/src/osducli/commands/wellbore_ddms/wellbore/version/list.py +35 -0
  84. osducli-0.0.49/src/osducli/commands/wellbore_ddms/wellbore_intervalset/__init__.py +13 -0
  85. osducli-0.0.49/src/osducli/commands/wellbore_ddms/wellbore_intervalset/add.py +44 -0
  86. osducli-0.0.49/src/osducli/commands/wellbore_ddms/wellbore_intervalset/delete.py +37 -0
  87. osducli-0.0.49/src/osducli/commands/wellbore_ddms/wellbore_intervalset/get.py +37 -0
  88. osducli-0.0.49/src/osducli/commands/wellbore_ddms/wellbore_intervalset/version/__init__.py +13 -0
  89. osducli-0.0.49/src/osducli/commands/wellbore_ddms/wellbore_intervalset/version/get.py +38 -0
  90. osducli-0.0.49/src/osducli/commands/wellbore_ddms/wellbore_intervalset/version/list.py +37 -0
  91. osducli-0.0.49/src/osducli/commands/wellbore_ddms/wellbore_markerset/__init__.py +13 -0
  92. osducli-0.0.49/src/osducli/commands/wellbore_ddms/wellbore_markerset/add.py +42 -0
  93. osducli-0.0.49/src/osducli/commands/wellbore_ddms/wellbore_markerset/delete.py +35 -0
  94. osducli-0.0.49/src/osducli/commands/wellbore_ddms/wellbore_markerset/get.py +35 -0
  95. osducli-0.0.49/src/osducli/commands/wellbore_ddms/wellbore_markerset/version/__init__.py +13 -0
  96. osducli-0.0.49/src/osducli/commands/wellbore_ddms/wellbore_markerset/version/get.py +36 -0
  97. osducli-0.0.49/src/osducli/commands/wellbore_ddms/wellbore_markerset/version/list.py +35 -0
  98. osducli-0.0.49/src/osducli/commands/wellbore_ddms/welllog_acquisition/__init__.py +13 -0
  99. osducli-0.0.49/src/osducli/commands/wellbore_ddms/welllog_acquisition/add.py +42 -0
  100. osducli-0.0.49/src/osducli/commands/wellbore_ddms/welllog_acquisition/delete.py +35 -0
  101. osducli-0.0.49/src/osducli/commands/wellbore_ddms/welllog_acquisition/get.py +35 -0
  102. osducli-0.0.49/src/osducli/commands/wellbore_ddms/welllog_acquisition/version/__init__.py +13 -0
  103. osducli-0.0.49/src/osducli/commands/wellbore_ddms/welllog_acquisition/version/get.py +36 -0
  104. osducli-0.0.49/src/osducli/commands/wellbore_ddms/welllog_acquisition/version/list.py +35 -0
  105. osducli-0.0.49/src/osducli/commands/wellbore_ddms/wellpressure_test_raw_measurement/__init__.py +13 -0
  106. osducli-0.0.49/src/osducli/commands/wellbore_ddms/wellpressure_test_raw_measurement/add.py +44 -0
  107. osducli-0.0.49/src/osducli/commands/wellbore_ddms/wellpressure_test_raw_measurement/data/__init__.py +13 -0
  108. osducli-0.0.49/src/osducli/commands/wellbore_ddms/wellpressure_test_raw_measurement/data/add.py +42 -0
  109. osducli-0.0.49/src/osducli/commands/wellbore_ddms/wellpressure_test_raw_measurement/data/get.py +46 -0
  110. osducli-0.0.49/src/osducli/commands/wellbore_ddms/wellpressure_test_raw_measurement/delete.py +37 -0
  111. osducli-0.0.49/src/osducli/commands/wellbore_ddms/wellpressure_test_raw_measurement/get.py +37 -0
  112. osducli-0.0.49/src/osducli/commands/wellbore_ddms/wellpressure_test_raw_measurement/session/__init__.py +13 -0
  113. osducli-0.0.49/src/osducli/commands/wellbore_ddms/wellpressure_test_raw_measurement/session/create.py +37 -0
  114. osducli-0.0.49/src/osducli/commands/wellbore_ddms/wellpressure_test_raw_measurement/session/get.py +38 -0
  115. osducli-0.0.49/src/osducli/commands/wellbore_ddms/wellpressure_test_raw_measurement/session/list.py +37 -0
  116. osducli-0.0.49/src/osducli/commands/wellbore_ddms/wellpressure_test_raw_measurement/session/send.py +43 -0
  117. osducli-0.0.49/src/osducli/commands/wellbore_ddms/wellpressure_test_raw_measurement/session/update.py +39 -0
  118. osducli-0.0.49/src/osducli/commands/wellbore_ddms/wellpressure_test_raw_measurement/version/__init__.py +13 -0
  119. osducli-0.0.49/src/osducli/commands/wellbore_ddms/wellpressure_test_raw_measurement/version/data/__init__.py +13 -0
  120. osducli-0.0.49/src/osducli/commands/wellbore_ddms/wellpressure_test_raw_measurement/version/data/get.py +47 -0
  121. osducli-0.0.49/src/osducli/commands/wellbore_ddms/wellpressure_test_raw_measurement/version/get.py +38 -0
  122. osducli-0.0.49/src/osducli/commands/wellbore_ddms/wellpressure_test_raw_measurement/version/list.py +37 -0
  123. osducli-0.0.49/src/osducli/wbddms_client.py +191 -0
  124. {osducli-0.0.48 → osducli-0.0.49/src/osducli.egg-info}/PKG-INFO +6 -1
  125. osducli-0.0.49/src/osducli.egg-info/SOURCES.txt +249 -0
  126. osducli-0.0.48/src/osducli/VERSION +0 -1
  127. osducli-0.0.48/src/osducli/commands/wellbore_ddms/well_log/data/__init__.py +0 -13
  128. osducli-0.0.48/src/osducli/wbddms_client.py +0 -58
  129. osducli-0.0.48/src/osducli.egg-info/SOURCES.txt +0 -142
  130. {osducli-0.0.48 → osducli-0.0.49}/LICENSE.md +0 -0
  131. {osducli-0.0.48 → osducli-0.0.49}/MANIFEST.in +0 -0
  132. {osducli-0.0.48 → osducli-0.0.49}/pyproject.toml +0 -0
  133. {osducli-0.0.48 → osducli-0.0.49}/setup.cfg +0 -0
  134. {osducli-0.0.48 → osducli-0.0.49}/src/osducli/__init__.py +0 -0
  135. {osducli-0.0.48 → osducli-0.0.49}/src/osducli/__main__.py +0 -0
  136. {osducli-0.0.48 → osducli-0.0.49}/src/osducli/auth/__init__.py +0 -0
  137. {osducli-0.0.48 → osducli-0.0.49}/src/osducli/auth/aws_token_credential.py +0 -0
  138. {osducli-0.0.48 → osducli-0.0.49}/src/osducli/auth/credentials.py +0 -0
  139. {osducli-0.0.48 → osducli-0.0.49}/src/osducli/auth/msal_interactive.py +0 -0
  140. {osducli-0.0.48 → osducli-0.0.49}/src/osducli/auth/msal_non_interactive.py +0 -0
  141. {osducli-0.0.48 → osducli-0.0.49}/src/osducli/auth/token_credential.py +0 -0
  142. {osducli-0.0.48 → osducli-0.0.49}/src/osducli/click_cli.py +0 -0
  143. {osducli-0.0.48 → osducli-0.0.49}/src/osducli/cliclient.py +0 -0
  144. {osducli-0.0.48 → osducli-0.0.49}/src/osducli/commands/__init__.py +0 -0
  145. {osducli-0.0.48 → osducli-0.0.49}/src/osducli/commands/config/__init__.py +0 -0
  146. {osducli-0.0.48 → osducli-0.0.49}/src/osducli/commands/config/consts.py +0 -0
  147. {osducli-0.0.48 → osducli-0.0.49}/src/osducli/commands/config/default.py +0 -0
  148. {osducli-0.0.48 → osducli-0.0.49}/src/osducli/commands/config/info.py +0 -0
  149. {osducli-0.0.48 → osducli-0.0.49}/src/osducli/commands/config/list.py +0 -0
  150. {osducli-0.0.48 → osducli-0.0.49}/src/osducli/commands/config/update.py +0 -0
  151. {osducli-0.0.48 → osducli-0.0.49}/src/osducli/commands/crs/__init__.py +0 -0
  152. {osducli-0.0.48 → osducli-0.0.49}/src/osducli/commands/crs/_const.py +0 -0
  153. {osducli-0.0.48 → osducli-0.0.49}/src/osducli/commands/crs/areas.py +0 -0
  154. {osducli-0.0.48 → osducli-0.0.49}/src/osducli/commands/crs/info.py +0 -0
  155. {osducli-0.0.48 → osducli-0.0.49}/src/osducli/commands/crs/list.py +0 -0
  156. {osducli-0.0.48 → osducli-0.0.49}/src/osducli/commands/crs/summary.py +0 -0
  157. {osducli-0.0.48 → osducli-0.0.49}/src/osducli/commands/crs/transforms.py +0 -0
  158. {osducli-0.0.48 → osducli-0.0.49}/src/osducli/commands/dataload/__init__.py +0 -0
  159. {osducli-0.0.48 → osducli-0.0.49}/src/osducli/commands/dataload/checkrefs.py +0 -0
  160. {osducli-0.0.48 → osducli-0.0.49}/src/osducli/commands/dataload/ingest.py +0 -0
  161. {osducli-0.0.48 → osducli-0.0.49}/src/osducli/commands/dataload/status.py +0 -0
  162. {osducli-0.0.48 → osducli-0.0.49}/src/osducli/commands/dataload/verify.py +0 -0
  163. {osducli-0.0.48 → osducli-0.0.49}/src/osducli/commands/entitlements/__init__.py +0 -0
  164. {osducli-0.0.48 → osducli-0.0.49}/src/osducli/commands/entitlements/_const.py +0 -0
  165. {osducli-0.0.48 → osducli-0.0.49}/src/osducli/commands/entitlements/groups/__init__.py +0 -0
  166. {osducli-0.0.48 → osducli-0.0.49}/src/osducli/commands/entitlements/groups/add.py +0 -0
  167. {osducli-0.0.48 → osducli-0.0.49}/src/osducli/commands/entitlements/groups/delete.py +0 -0
  168. {osducli-0.0.48 → osducli-0.0.49}/src/osducli/commands/entitlements/groups/members.py +0 -0
  169. {osducli-0.0.48 → osducli-0.0.49}/src/osducli/commands/entitlements/info.py +0 -0
  170. {osducli-0.0.48 → osducli-0.0.49}/src/osducli/commands/entitlements/members/__init__.py +0 -0
  171. {osducli-0.0.48 → osducli-0.0.49}/src/osducli/commands/entitlements/members/add.py +0 -0
  172. {osducli-0.0.48 → osducli-0.0.49}/src/osducli/commands/entitlements/members/groups.py +0 -0
  173. {osducli-0.0.48 → osducli-0.0.49}/src/osducli/commands/entitlements/members/list.py +0 -0
  174. {osducli-0.0.48 → osducli-0.0.49}/src/osducli/commands/entitlements/members/remove.py +0 -0
  175. {osducli-0.0.48 → osducli-0.0.49}/src/osducli/commands/entitlements/mygroups.py +0 -0
  176. {osducli-0.0.48 → osducli-0.0.49}/src/osducli/commands/file/__init__.py +0 -0
  177. {osducli-0.0.48 → osducli-0.0.49}/src/osducli/commands/file/_const.py +0 -0
  178. {osducli-0.0.48 → osducli-0.0.49}/src/osducli/commands/file/download.py +0 -0
  179. {osducli-0.0.48 → osducli-0.0.49}/src/osducli/commands/file/info.py +0 -0
  180. {osducli-0.0.48 → osducli-0.0.49}/src/osducli/commands/file/metadata.py +0 -0
  181. {osducli-0.0.48 → osducli-0.0.49}/src/osducli/commands/legal/__init__.py +0 -0
  182. {osducli-0.0.48 → osducli-0.0.49}/src/osducli/commands/legal/_const.py +0 -0
  183. {osducli-0.0.48 → osducli-0.0.49}/src/osducli/commands/legal/add.py +0 -0
  184. {osducli-0.0.48 → osducli-0.0.49}/src/osducli/commands/legal/delete.py +0 -0
  185. {osducli-0.0.48 → osducli-0.0.49}/src/osducli/commands/legal/info.py +0 -0
  186. {osducli-0.0.48 → osducli-0.0.49}/src/osducli/commands/legal/listtags.py +0 -0
  187. {osducli-0.0.48 → osducli-0.0.49}/src/osducli/commands/list/__init__.py +0 -0
  188. {osducli-0.0.48 → osducli-0.0.49}/src/osducli/commands/list/records.py +0 -0
  189. {osducli-0.0.48 → osducli-0.0.49}/src/osducli/commands/schema/__init__.py +0 -0
  190. {osducli-0.0.48 → osducli-0.0.49}/src/osducli/commands/schema/_const.py +0 -0
  191. {osducli-0.0.48 → osducli-0.0.49}/src/osducli/commands/schema/add.py +0 -0
  192. {osducli-0.0.48 → osducli-0.0.49}/src/osducli/commands/schema/get.py +0 -0
  193. {osducli-0.0.48 → osducli-0.0.49}/src/osducli/commands/schema/info.py +0 -0
  194. {osducli-0.0.48 → osducli-0.0.49}/src/osducli/commands/schema/list.py +0 -0
  195. {osducli-0.0.48 → osducli-0.0.49}/src/osducli/commands/search/__init__.py +0 -0
  196. {osducli-0.0.48 → osducli-0.0.49}/src/osducli/commands/search/_const.py +0 -0
  197. {osducli-0.0.48 → osducli-0.0.49}/src/osducli/commands/search/id.py +0 -0
  198. {osducli-0.0.48 → osducli-0.0.49}/src/osducli/commands/search/info.py +0 -0
  199. {osducli-0.0.48 → osducli-0.0.49}/src/osducli/commands/search/kind.py +0 -0
  200. {osducli-0.0.48 → osducli-0.0.49}/src/osducli/commands/search/query.py +0 -0
  201. {osducli-0.0.48 → osducli-0.0.49}/src/osducli/commands/status/__init__.py +0 -0
  202. {osducli-0.0.48 → osducli-0.0.49}/src/osducli/commands/status/status.py +0 -0
  203. {osducli-0.0.48 → osducli-0.0.49}/src/osducli/commands/storage/__init__.py +0 -0
  204. {osducli-0.0.48 → osducli-0.0.49}/src/osducli/commands/storage/_const.py +0 -0
  205. {osducli-0.0.48 → osducli-0.0.49}/src/osducli/commands/storage/add.py +0 -0
  206. {osducli-0.0.48 → osducli-0.0.49}/src/osducli/commands/storage/delete.py +0 -0
  207. {osducli-0.0.48 → osducli-0.0.49}/src/osducli/commands/storage/get.py +0 -0
  208. {osducli-0.0.48 → osducli-0.0.49}/src/osducli/commands/storage/info.py +0 -0
  209. {osducli-0.0.48 → osducli-0.0.49}/src/osducli/commands/storage/list.py +0 -0
  210. {osducli-0.0.48 → osducli-0.0.49}/src/osducli/commands/storage/versions.py +0 -0
  211. {osducli-0.0.48 → osducli-0.0.49}/src/osducli/commands/unit/__init__.py +0 -0
  212. {osducli-0.0.48 → osducli-0.0.49}/src/osducli/commands/unit/_const.py +0 -0
  213. {osducli-0.0.48 → osducli-0.0.49}/src/osducli/commands/unit/info.py +0 -0
  214. {osducli-0.0.48 → osducli-0.0.49}/src/osducli/commands/unit/list.py +0 -0
  215. {osducli-0.0.48 → osducli-0.0.49}/src/osducli/commands/version/__init__.py +0 -0
  216. {osducli-0.0.48 → osducli-0.0.49}/src/osducli/commands/version/version.py +0 -0
  217. {osducli-0.0.48 → osducli-0.0.49}/src/osducli/commands/wbdutil/__init__.py +0 -0
  218. {osducli-0.0.48 → osducli-0.0.49}/src/osducli/commands/wbdutil/_const.py +0 -0
  219. {osducli-0.0.48 → osducli-0.0.49}/src/osducli/commands/wbdutil/ingest/__init__.py +0 -0
  220. {osducli-0.0.48 → osducli-0.0.49}/src/osducli/commands/wbdutil/list/__init__.py +0 -0
  221. {osducli-0.0.48 → osducli-0.0.49}/src/osducli/commands/wbdutil/list/wellbore.py +0 -0
  222. {osducli-0.0.48 → osducli-0.0.49}/src/osducli/commands/wbdutil/list/welllog.py +0 -0
  223. {osducli-0.0.48 → osducli-0.0.49}/src/osducli/commands/wbdutil/parse/__init__.py +0 -0
  224. {osducli-0.0.48 → osducli-0.0.49}/src/osducli/commands/wbdutil/parse/print.py +0 -0
  225. {osducli-0.0.48 → osducli-0.0.49}/src/osducli/commands/wbdutil/search.py +0 -0
  226. {osducli-0.0.48 → osducli-0.0.49}/src/osducli/commands/wbdutil/update.py +0 -0
  227. {osducli-0.0.48 → osducli-0.0.49}/src/osducli/commands/wellbore_ddms/__init__.py +0 -0
  228. {osducli-0.0.48 → osducli-0.0.49}/src/osducli/commands/wellbore_ddms/info.py +0 -0
  229. {osducli-0.0.48 → osducli-0.0.49}/src/osducli/commands/wellbore_ddms/well_log/__init__.py +0 -0
  230. {osducli-0.0.48 → osducli-0.0.49}/src/osducli/commands/workflow/__init__.py +0 -0
  231. {osducli-0.0.48 → osducli-0.0.49}/src/osducli/commands/workflow/_const.py +0 -0
  232. {osducli-0.0.48 → osducli-0.0.49}/src/osducli/commands/workflow/get.py +0 -0
  233. {osducli-0.0.48 → osducli-0.0.49}/src/osducli/commands/workflow/info.py +0 -0
  234. {osducli-0.0.48 → osducli-0.0.49}/src/osducli/commands/workflow/list.py +0 -0
  235. {osducli-0.0.48 → osducli-0.0.49}/src/osducli/commands/workflow/register.py +0 -0
  236. {osducli-0.0.48 → osducli-0.0.49}/src/osducli/commands/workflow/runs.py +0 -0
  237. {osducli-0.0.48 → osducli-0.0.49}/src/osducli/commands/workflow/status.py +0 -0
  238. {osducli-0.0.48 → osducli-0.0.49}/src/osducli/commands/workflow/unregister.py +0 -0
  239. {osducli-0.0.48 → osducli-0.0.49}/src/osducli/config.py +0 -0
  240. {osducli-0.0.48 → osducli-0.0.49}/src/osducli/log.py +0 -0
  241. {osducli-0.0.48 → osducli-0.0.49}/src/osducli/state.py +0 -0
  242. {osducli-0.0.48 → osducli-0.0.49}/src/osducli/util/__init__.py +0 -0
  243. {osducli-0.0.48 → osducli-0.0.49}/src/osducli/util/exceptions.py +0 -0
  244. {osducli-0.0.48 → osducli-0.0.49}/src/osducli/util/file.py +0 -0
  245. {osducli-0.0.48 → osducli-0.0.49}/src/osducli/util/prompt.py +0 -0
  246. {osducli-0.0.48 → osducli-0.0.49}/src/osducli/util/pypi.py +0 -0
  247. {osducli-0.0.48 → osducli-0.0.49}/src/osducli/util/service_info.py +0 -0
  248. {osducli-0.0.48 → osducli-0.0.49}/src/osducli/version.py +0 -0
  249. {osducli-0.0.48 → osducli-0.0.49}/src/osducli.egg-info/dependency_links.txt +0 -0
  250. {osducli-0.0.48 → osducli-0.0.49}/src/osducli.egg-info/entry_points.txt +0 -0
  251. {osducli-0.0.48 → osducli-0.0.49}/src/osducli.egg-info/requires.txt +0 -0
  252. {osducli-0.0.48 → osducli-0.0.49}/src/osducli.egg-info/top_level.txt +0 -0
  253. {osducli-0.0.48 → osducli-0.0.49}/tests/test_click_cli_state.py +0 -0
  254. {osducli-0.0.48 → osducli-0.0.49}/tests/test_cliclient.py +0 -0
  255. {osducli-0.0.48 → osducli-0.0.49}/tests/test_help_text.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: osducli
3
- Version: 0.0.48
3
+ Version: 0.0.49
4
4
  Summary: OSDU command line
5
5
  Author-email: Equinor ASA <mhew@equinor.com>
6
6
  License-Expression: Apache-2.0
@@ -75,6 +75,11 @@ For more information, specify the `-h` flag:
75
75
  Change Log
76
76
  ==========
77
77
 
78
+ 0.0.49
79
+ ------
80
+ - Added commands for Wellbore DDMS API
81
+ - Custom mappings for wbdutil commands
82
+
78
83
  0.0.48
79
84
  ------
80
85
  - Added commands for wbdutil (Wellbore DDMS Data Loader)
@@ -28,6 +28,11 @@ For more information, specify the `-h` flag:
28
28
  Change Log
29
29
  ==========
30
30
 
31
+ 0.0.49
32
+ ------
33
+ - Added commands for Wellbore DDMS API
34
+ - Custom mappings for wbdutil commands
35
+
31
36
  0.0.48
32
37
  ------
33
38
  - Added commands for wbdutil (Wellbore DDMS Data Loader)
@@ -0,0 +1 @@
1
+ 0.0.49
@@ -10,12 +10,16 @@
10
10
  # See the License for the specific language governing permissions and
11
11
  # limitations under the License.
12
12
  import json
13
+ import os
13
14
  import tempfile
14
15
 
15
16
  from osducli.config import CLIConfig
16
17
 
17
18
 
18
- def get_config_path(config: CLIConfig):
19
+ def get_config_path(config: CLIConfig,
20
+ wellbore_mapping_file: str = None,
21
+ welllog_mapping_file: str = None,
22
+ las_mapping_file: str = None) -> str:
19
23
  """
20
24
  Takes a config object and writes a mapped config to a temporary JSON file.
21
25
  Returns the path to the temp file.
@@ -33,8 +37,21 @@ def get_config_path(config: CLIConfig):
33
37
  "viewers": [config.get('core', 'acl_viewer')],
34
38
  "owners": [config.get('core', 'acl_owner')]
35
39
  }
36
- }
40
+ },
41
+ "wellbore_mapping": { get_mapping(wellbore_mapping_file) },
42
+ "welllog_mapping": { get_mapping(welllog_mapping_file) },
43
+ "las_file_mapping": { get_mapping(las_mapping_file) }
37
44
  }
38
45
  with tempfile.NamedTemporaryFile('w', delete=False, suffix='.json') as tmp:
39
46
  json.dump(output, tmp, indent=4)
40
47
  return tmp.name
48
+
49
+
50
+ def get_mapping(mapping_file: str | None) -> dict:
51
+ if mapping_file:
52
+ if os.path.isfile(mapping_file):
53
+ with open(mapping_file) as f:
54
+ return json.load(f)
55
+ else:
56
+ raise FileNotFoundError(f"Mapping file {mapping_file} not found")
57
+ return {}
@@ -23,16 +23,18 @@ from osducli.commands.wbdutil.config_file import get_config_path
23
23
  # click entry point
24
24
  @click.command(cls=CustomClickCommand, help="Download WellLog data to LAS file")
25
25
  @click.option("-id", "--id", "_id", help="WellLog id to retrieve", required=True)
26
- @click.option("-o", "--out", "_file", help="The output file path", required=True)
27
- @click.option("-c", "--curves", "_curves", help="List of curves to retrieve, or none to get all curves", required=False)
26
+ @click.option("-out", "--out", "_file", help="The output file path", required=True)
27
+ @click.option("-cu", "--curves", "_curves", help="List of curves to retrieve, or none to get all curves", required=False)
28
+ @click.option("-m", "--mapping", "_map", help="File with custom LAS mapping", required=False)
28
29
  @handle_cli_exceptions
29
30
  @command_with_output(None)
30
- def _click_command(state: State, _id: str, _file: str, _curves: list[str]):
31
+ def _click_command(state: State, _id: str, _file: str, _curves: list[str], _map: str = None):
31
32
  client = CliOsduClient(state.config)
32
33
  client.token_refresher.authorize()
33
34
  token = client.token_refresher.access_token
34
- config_path = get_config_path(state.config)
35
+ config_path = get_config_path(state.config, las_mapping_file=_map)
35
36
  try:
36
37
  download_las(_id, _file, token, config_path, _curves)
37
38
  finally:
38
39
  os.remove(config_path)
40
+
@@ -24,13 +24,15 @@ from osducli.commands.wbdutil.config_file import get_config_path
24
24
  @click.command(cls=CustomClickCommand, help="Write data from a LAS file to an existing WellLog")
25
25
  @click.option("-id", "--id", "_id", help="WellLog id to update", required=True)
26
26
  @click.option("-p", "--path", "_path", help=" Path to a file or folder containing one or more LAS file(s)", required=True)
27
+ @click.option("-bm", "--wellbore_mapping", "_bmap", help="File with custom wellbore mapping", required=False)
28
+ @click.option("-lm", "--welllog_mapping", "_lmap", help="File with custom wellLog mapping", required=False)
27
29
  @handle_cli_exceptions
28
30
  @command_with_output(None)
29
- def _click_command(state: State, _id: str, _path: str):
31
+ def _click_command(state: State, _id: str, _path: str, _bmap: str = None, _lmap: str = None):
30
32
  client = CliOsduClient(state.config)
31
33
  client.token_refresher.authorize()
32
34
  token = client.token_refresher.access_token
33
- config_path = get_config_path(state.config)
35
+ config_path = get_config_path(state.config, wellbore_mapping_file=_bmap, welllog_mapping_file=_lmap)
34
36
  try:
35
37
  welllog_data(_id, _path, token, config_path)
36
38
  finally:
@@ -24,13 +24,15 @@ from osducli.commands.wbdutil.config_file import get_config_path
24
24
  @click.command(cls=CustomClickCommand, help="Ingest LAS file(s) into OSDU")
25
25
  @click.option("-p", "--path", "_path", help="Path and filename of a LAS file OR path to directory containing LAS and config files", required=True)
26
26
  @click.option("--norecognize", "_no_recognize", help="If specified the application won't attempt to recognize the curve families.", is_flag=True, required=False)
27
+ @click.option("-bm", "--wellbore_mapping", "_bmap", help="File with custom wellbore mapping", required=False)
28
+ @click.option("-lm", "--welllog_mapping", "_lmap", help="File with custom wellLog mapping", required=False)
27
29
  @handle_cli_exceptions
28
30
  @command_with_output(None)
29
- def _click_command(state: State, _path: str, _no_recognize: bool = False):
31
+ def _click_command(state: State, _path: str, _no_recognize: bool = False, _bmap: str = None, _lmap: str = None):
30
32
  client = CliOsduClient(state.config)
31
33
  client.token_refresher.authorize()
32
34
  token = client.token_refresher.access_token
33
- config_path = get_config_path(state.config)
35
+ config_path = get_config_path(state.config, wellbore_mapping_file=_bmap, welllog_mapping_file=_lmap)
34
36
  try:
35
37
  wellbore(_path, token, config_path, _no_recognize)
36
38
  finally:
@@ -24,7 +24,7 @@ from osducli.commands.wbdutil.config_file import get_config_path
24
24
  # click entry point
25
25
  @click.command(cls=CustomClickCommand, help="Retrieve and print WellLog curve data")
26
26
  @click.option("-id", "--id", "_id", help="WellLog id to retrieve", required=True)
27
- @click.option("-c", "--curves", "_curves", help="List of curves to retrieve, or none to get all curves", required=False)
27
+ @click.option("-cu", "--curves", "_curves", help="List of curves to retrieve, or none to get all curves", required=False)
28
28
  @handle_cli_exceptions
29
29
  @command_with_output(None)
30
30
  def _click_command(state: State, _id: str, _curves: list[str]):
@@ -25,10 +25,12 @@ from osducli.commands.wbdutil.config_file import get_config_path
25
25
  @click.command(cls=CustomClickCommand, help="Convert a LAS file to Wellbore and WellLog and write to JSON files")
26
26
  @click.option("-id", "--id", "_id", help="Record id to retrieve", required=True)
27
27
  @click.option("-i", "--input", "_file", help="Path to a file or folder containing one or more LAS file(s)", required=True)
28
+ @click.option("-bm", "--wellbore_mapping", "_bmap", help="File with custom wellbore mapping", required=False)
29
+ @click.option("-lm", "--welllog_mapping", "_lmap", help="File with custom wellLog mapping", required=False)
28
30
  @handle_cli_exceptions
29
31
  @command_with_output(None)
30
- def _click_command(state: State, _id: str, _file: str):
31
- config_path = get_config_path(state.config)
32
+ def _click_command(state: State, _id: str, _file: str, _bmap: str = None, _lmap: str = None):
33
+ config_path = get_config_path(state.config, wellbore_mapping_file=_bmap, welllog_mapping_file=_lmap)
32
34
  try:
33
35
  return convert(_file, _id, config_path)
34
36
  finally:
@@ -17,3 +17,12 @@ WELLBORE_DDMS_STATUS_PATH = "/about"
17
17
  WELLBORE_DDMS_SWAGGER_PATH = "https://community.opengroup.org/osdu/platform/domain-data-mgmt-services/wellbore/wellbore-domain-services/-/blob/master/spec/generated/openapi.json" # noqa: E501
18
18
  WELLBORE_DDMS_DOCUMENTATION = "https://community.opengroup.org/osdu/platform/domain-data-mgmt-services/wellbore/wellbore-domain-services/-/tree/master" # noqa: E501
19
19
  WELLBORE_DDMS_WELL_LOG_PATH = "/ddms/v3/welllogs"
20
+ WELLBORE_DDMS_PPFGDATASET_PATH = "/ddms/v3/ppfgdataset"
21
+ WELLBORE_DDMS_WELLBORE_INTERVAL_SET_PATH = "/ddms/v3/wellboreintervallsets"
22
+ WELLBORE_DDMS_WELLBORE_MARKER_SET_PATH = "/ddms/v3/wellboremarkersets"
23
+ WELLBORE_DDMS_WELLBORE_PATH = "/ddms/v3/wellbores"
24
+ WELLBORE_DDMS_TRAJECTORY_PATH = "/ddms/v3/wellboretrajectories"
25
+ WELLBORE_DDMS_WELLLOG_ACQUISITION_PATH = "/ddms/v3/welllogacquisition"
26
+ WELLBORE_DDMS_WELLPRESSURE_TEST_RAW_MEASUREMENT_PATH = "/ddms/v3/wellpressuretestrawmeasurement"
27
+ WELLBORE_DDMS_WELL_PATH = "/ddms/v3/wells"
28
+ WELLBORE_DDMS_LOG_RECOGNITION_PATH = "/log-recognition"
@@ -0,0 +1,13 @@
1
+ # Licensed under the Apache License, Version 2.0 (the "License");
2
+ # you may not use this file except in compliance with the License.
3
+ # You may obtain a copy of the License at
4
+ #
5
+ # http://www.apache.org/licenses/LICENSE-2.0
6
+ #
7
+ # Unless required by applicable law or agreed to in writing, software
8
+ # distributed under the License is distributed on an "AS IS" BASIS,
9
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
10
+ # See the License for the specific language governing permissions and
11
+ # limitations under the License.
12
+
13
+ """Wellbore DDMS Log recognition commands"""
@@ -0,0 +1,37 @@
1
+ # Licensed under the Apache License, Version 2.0 (the "License");
2
+ # you may not use this file except in compliance with the License.
3
+ # You may obtain a copy of the License at
4
+ #
5
+ # http://www.apache.org/licenses/LICENSE-2.0
6
+ #
7
+ # Unless required by applicable law or agreed to in writing, software
8
+ # distributed under the License is distributed on an "AS IS" BASIS,
9
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
10
+ # See the License for the specific language governing permissions and
11
+ # limitations under the License.
12
+ """Find the most probable family and unit using family assignment rule based catalogs.
13
+ User defined catalog will have the priority."""
14
+
15
+ import click
16
+
17
+ from osducli.click_cli import CustomClickCommand, State, command_with_output
18
+ from osducli.cliclient import CliOsduClient, handle_cli_exceptions
19
+ from osducli.commands.wellbore_ddms._const import WELLBORE_DDMS_LOG_RECOGNITION_PATH
20
+
21
+
22
+ # click entry point
23
+ @click.command(cls=CustomClickCommand, help="Find the most probable family and unit using family assignment rule based catalogs.")
24
+ @click.option("-d", "--data", "_data", help="Lookup data", required=True)
25
+ @handle_cli_exceptions
26
+ @command_with_output()
27
+ def _click_command(state: State, _data: str):
28
+ return get_family(state, _data)
29
+
30
+
31
+ def get_family(state: State, data: str):
32
+ """Find the most probable family and unit using family assignment rule based catalogs."""
33
+ client = CliOsduClient(state.config)
34
+ wellbore_client = client.get_wellbore_ddms_client(url_extra_path=WELLBORE_DDMS_LOG_RECOGNITION_PATH)
35
+ response = wellbore_client.get_log_recognition_family(data)
36
+ client.check_status_code(response)
37
+ return response.json()
@@ -0,0 +1,40 @@
1
+ # Licensed under the Apache License, Version 2.0 (the "License");
2
+ # you may not use this file except in compliance with the License.
3
+ # You may obtain a copy of the License at
4
+ #
5
+ # http://www.apache.org/licenses/LICENSE-2.0
6
+ #
7
+ # Unless required by applicable law or agreed to in writing, software
8
+ # distributed under the License is distributed on an "AS IS" BASIS,
9
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
10
+ # See the License for the specific language governing permissions and
11
+ # limitations under the License.
12
+ """Upload user-defined catalog with family assignment rules for specific partition ID.
13
+ If there is an existing catalog, it will be replaced. It takes maximum of 5 mins to replace
14
+ the existing catalog. Hence, any call to retrieve the family should be made after 5 mins
15
+ of uploading the catalog.
16
+ Required roles: 'users.datalake.editors' or 'users.datalake.admins"""
17
+
18
+ import click
19
+
20
+ from osducli.click_cli import CustomClickCommand, State, command_with_output
21
+ from osducli.cliclient import CliOsduClient, handle_cli_exceptions
22
+ from osducli.commands.wellbore_ddms._const import WELLBORE_DDMS_LOG_RECOGNITION_PATH
23
+
24
+
25
+ # click entry point
26
+ @click.command(cls=CustomClickCommand, help="Upload user-defined catalog with family assignment rules.")
27
+ @click.option("-d", "--data", "_data", help="Catalog data", required=True)
28
+ @handle_cli_exceptions
29
+ @command_with_output()
30
+ def _click_command(state: State, _data: str):
31
+ return upload_catalog(state, _data)
32
+
33
+
34
+ def upload_catalog(state: State, data: str):
35
+ """Upload user-defined catalog with family assignment rules."""
36
+ client = CliOsduClient(state.config)
37
+ wellbore_client = client.get_wellbore_ddms_client(url_extra_path=WELLBORE_DDMS_LOG_RECOGNITION_PATH)
38
+ response = wellbore_client.upload_log_recognition_catalog(data)
39
+ client.check_status_code(response)
40
+ return response.json()
@@ -0,0 +1,13 @@
1
+ # Licensed under the Apache License, Version 2.0 (the "License");
2
+ # you may not use this file except in compliance with the License.
3
+ # You may obtain a copy of the License at
4
+ #
5
+ # http://www.apache.org/licenses/LICENSE-2.0
6
+ #
7
+ # Unless required by applicable law or agreed to in writing, software
8
+ # distributed under the License is distributed on an "AS IS" BASIS,
9
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
10
+ # See the License for the specific language governing permissions and
11
+ # limitations under the License.
12
+
13
+ """Wellbore DDMS PPFG Dataset commands"""
@@ -0,0 +1,42 @@
1
+ # Licensed under the Apache License, Version 2.0 (the "License");
2
+ # you may not use this file except in compliance with the License.
3
+ # You may obtain a copy of the License at
4
+ #
5
+ # http://www.apache.org/licenses/LICENSE-2.0
6
+ #
7
+ # Unless required by applicable law or agreed to in writing, software
8
+ # distributed under the License is distributed on an "AS IS" BASIS,
9
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
10
+ # See the License for the specific language governing permissions and
11
+ # limitations under the License.
12
+ """PPFG Dataset add record command"""
13
+ import json
14
+
15
+ import click
16
+
17
+ from osducli.click_cli import CustomClickCommand, State, command_with_output
18
+ from osducli.cliclient import CliOsduClient, handle_cli_exceptions
19
+ from osducli.commands.wellbore_ddms._const import WELLBORE_DDMS_PPFGDATASET_PATH
20
+
21
+
22
+ # click entry point
23
+ @click.command(cls=CustomClickCommand, help="Add PPFG Dataset record")
24
+ @click.option("-f", "--file", "_file", help="PPFG Dataset record file to add", required=True)
25
+ @handle_cli_exceptions
26
+ @command_with_output("recordIds")
27
+ def _click_command(state: State, _file: str):
28
+ return add_record(state, _file)
29
+
30
+
31
+ def add_record(state: State, record_file: str):
32
+ """Add PPFG Dataset record"""
33
+ client = CliOsduClient(state.config)
34
+ wellbore_client = client.get_wellbore_ddms_client(url_extra_path=WELLBORE_DDMS_PPFGDATASET_PATH)
35
+
36
+ with open(record_file) as file:
37
+ record_data = json.load(file)
38
+
39
+ record_data_list = "[" + json.dumps(record_data) + "]"
40
+ response = wellbore_client.create_wbddms_record(record_data_list)
41
+ client.check_status_code(response)
42
+ return response.json()
@@ -0,0 +1,13 @@
1
+ # Licensed under the Apache License, Version 2.0 (the "License");
2
+ # you may not use this file except in compliance with the License.
3
+ # You may obtain a copy of the License at
4
+ #
5
+ # http://www.apache.org/licenses/LICENSE-2.0
6
+ #
7
+ # Unless required by applicable law or agreed to in writing, software
8
+ # distributed under the License is distributed on an "AS IS" BASIS,
9
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
10
+ # See the License for the specific language governing permissions and
11
+ # limitations under the License.
12
+
13
+ """Wellbore DDMS PPFG Dataset data commands"""
@@ -0,0 +1,40 @@
1
+ # Licensed under the Apache License, Version 2.0 (the "License");
2
+ # you may not use this file except in compliance with the License.
3
+ # You may obtain a copy of the License at
4
+ #
5
+ # http://www.apache.org/licenses/LICENSE-2.0
6
+ #
7
+ # Unless required by applicable law or agreed to in writing, software
8
+ # distributed under the License is distributed on an "AS IS" BASIS,
9
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
10
+ # See the License for the specific language governing permissions and
11
+ # limitations under the License.
12
+ """PPFG Dataset add data command"""
13
+ import click
14
+
15
+ from osducli.click_cli import CustomClickCommand, State, command_with_output
16
+ from osducli.cliclient import CliOsduClient, handle_cli_exceptions
17
+ from osducli.commands.wellbore_ddms._const import WELLBORE_DDMS_PPFGDATASET_PATH
18
+
19
+
20
+ # click entry point
21
+ @click.command(cls=CustomClickCommand, help="Add PPFG Dataset data")
22
+ @click.option("-id", "--id", "_id", help="PPFG Dataset id to add data to", required=True)
23
+ @click.option("-f", "--file", "_file", help="PPFG Dataset data file to add", required=True)
24
+ @handle_cli_exceptions
25
+ @command_with_output("recordIds")
26
+ def _click_command(state: State, _id: str, _file: str):
27
+ return add_data(state, _id, _file)
28
+
29
+
30
+ def add_data(state: State, record_id: str, data_file: str):
31
+ """PPFG Dataset add data"""
32
+ client = CliOsduClient(state.config)
33
+ wellbore_client = client.get_wellbore_ddms_client(url_extra_path=WELLBORE_DDMS_PPFGDATASET_PATH)
34
+
35
+ with open(data_file, 'rb') as file:
36
+ file_data = file.read()
37
+
38
+ response = wellbore_client.create_wbddms_data(record_id, file_data)
39
+ client.check_status_code(response)
40
+ return response.json()
@@ -0,0 +1,44 @@
1
+ # Licensed under the Apache License, Version 2.0 (the "License");
2
+ # you may not use this file except in compliance with the License.
3
+ # You may obtain a copy of the License at
4
+ #
5
+ # http://www.apache.org/licenses/LICENSE-2.0
6
+ #
7
+ # Unless required by applicable law or agreed to in writing, software
8
+ # distributed under the License is distributed on an "AS IS" BASIS,
9
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
10
+ # See the License for the specific language governing permissions and
11
+ # limitations under the License.
12
+ """PPFG Dataset get data command"""
13
+ import os
14
+
15
+ import click
16
+
17
+ from osducli.click_cli import CustomClickCommand, State, command_with_output
18
+ from osducli.cliclient import CliOsduClient, handle_cli_exceptions
19
+ from osducli.commands.wellbore_ddms._const import WELLBORE_DDMS_PPFGDATASET_PATH
20
+
21
+
22
+ # click entry point
23
+ @click.command(cls=CustomClickCommand, help="Get PPFG Dataset data by id")
24
+ @click.option("-id", "--id", "_id", help="PPFG Dataset id to search for", required=True)
25
+ @click.option("-f", "--file", "_file", help="File to save PPFG Dataset data", required=True)
26
+ @handle_cli_exceptions
27
+ @command_with_output()
28
+ def _click_command(state: State, _id: str, _file: str):
29
+ return get_data(state, _id, _file)
30
+
31
+
32
+ def get_data(state: State, record_id: str, out_file: str):
33
+ """Get PPFG Dataset data by id"""
34
+ client = CliOsduClient(state.config)
35
+ wellbore_client = client.get_wellbore_ddms_client(url_extra_path=WELLBORE_DDMS_PPFGDATASET_PATH)
36
+ response = wellbore_client.get_wbddms_data(record_id)
37
+ client.check_status_code(response)
38
+
39
+ with open(out_file, 'wb') as file:
40
+ file.write(response.content)
41
+
42
+ filename = os.path.abspath(file.name)
43
+ print("File created: ", filename)
44
+ return filename
@@ -0,0 +1,35 @@
1
+ # Licensed under the Apache License, Version 2.0 (the "License");
2
+ # you may not use this file except in compliance with the License.
3
+ # You may obtain a copy of the License at
4
+ #
5
+ # http://www.apache.org/licenses/LICENSE-2.0
6
+ #
7
+ # Unless required by applicable law or agreed to in writing, software
8
+ # distributed under the License is distributed on an "AS IS" BASIS,
9
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
10
+ # See the License for the specific language governing permissions and
11
+ # limitations under the License.
12
+ """PPFG Dataset delete record command"""
13
+ import click
14
+
15
+ from osducli.click_cli import CustomClickCommand, State, command_with_output
16
+ from osducli.cliclient import CliOsduClient, handle_cli_exceptions
17
+ from osducli.commands.wellbore_ddms._const import WELLBORE_DDMS_PPFGDATASET_PATH
18
+
19
+
20
+ # click entry point
21
+ @click.command(cls=CustomClickCommand, help="Delete record from wellbore ddms by id. The API performs a soft delete.")
22
+ @click.option("-id", "--id", "_id", help="PPFG Dataset id to delete", required=True)
23
+ @handle_cli_exceptions
24
+ @command_with_output()
25
+ def _click_command(state: State, _id: str):
26
+ return delete_record(state, _id)
27
+
28
+
29
+ def delete_record(state: State, record_id: str):
30
+ """Delete record from wellbore ddms by id. The API performs a soft delete."""
31
+ client = CliOsduClient(state.config)
32
+ wellbore_client = client.get_wellbore_ddms_client(url_extra_path=WELLBORE_DDMS_PPFGDATASET_PATH)
33
+ response = wellbore_client.delete_wbddms_record(record_id)
34
+ client.check_status_code(response)
35
+ return response.json()
@@ -0,0 +1,35 @@
1
+ # Licensed under the Apache License, Version 2.0 (the "License");
2
+ # you may not use this file except in compliance with the License.
3
+ # You may obtain a copy of the License at
4
+ #
5
+ # http://www.apache.org/licenses/LICENSE-2.0
6
+ #
7
+ # Unless required by applicable law or agreed to in writing, software
8
+ # distributed under the License is distributed on an "AS IS" BASIS,
9
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
10
+ # See the License for the specific language governing permissions and
11
+ # limitations under the License.
12
+ """PPFG Dataset get record command"""
13
+ import click
14
+
15
+ from osducli.click_cli import CustomClickCommand, State, command_with_output
16
+ from osducli.cliclient import CliOsduClient, handle_cli_exceptions
17
+ from osducli.commands.wellbore_ddms._const import WELLBORE_DDMS_PPFGDATASET_PATH
18
+
19
+
20
+ # click entry point
21
+ @click.command(cls=CustomClickCommand, help="Get PPFG Dataset record by id")
22
+ @click.option("-id", "--id", "_id", help="PPFG Dataset id to search for", required=True)
23
+ @handle_cli_exceptions
24
+ @command_with_output()
25
+ def _click_command(state: State, _id: str):
26
+ return get_record(state, _id)
27
+
28
+
29
+ def get_record(state: State, record_id: str):
30
+ """Get PPFG Dataset record by id"""
31
+ client = CliOsduClient(state.config)
32
+ wellbore_client = client.get_wellbore_ddms_client(url_extra_path=WELLBORE_DDMS_PPFGDATASET_PATH)
33
+ response = wellbore_client.get_wbddms_record(record_id)
34
+ client.check_status_code(response)
35
+ return response.json()
@@ -0,0 +1,13 @@
1
+ # Licensed under the Apache License, Version 2.0 (the "License");
2
+ # you may not use this file except in compliance with the License.
3
+ # You may obtain a copy of the License at
4
+ #
5
+ # http://www.apache.org/licenses/LICENSE-2.0
6
+ #
7
+ # Unless required by applicable law or agreed to in writing, software
8
+ # distributed under the License is distributed on an "AS IS" BASIS,
9
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
10
+ # See the License for the specific language governing permissions and
11
+ # limitations under the License.
12
+
13
+ """Wellbore DDMS PPFG Dataset session commands"""
@@ -0,0 +1,35 @@
1
+ # Licensed under the Apache License, Version 2.0 (the "License");
2
+ # you may not use this file except in compliance with the License.
3
+ # You may obtain a copy of the License at
4
+ #
5
+ # http://www.apache.org/licenses/LICENSE-2.0
6
+ #
7
+ # Unless required by applicable law or agreed to in writing, software
8
+ # distributed under the License is distributed on an "AS IS" BASIS,
9
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
10
+ # See the License for the specific language governing permissions and
11
+ # limitations under the License.
12
+ """PPFG Dataset create session command"""
13
+ import click
14
+
15
+ from osducli.click_cli import CustomClickCommand, State, command_with_output
16
+ from osducli.cliclient import CliOsduClient, handle_cli_exceptions
17
+ from osducli.commands.wellbore_ddms._const import WELLBORE_DDMS_PPFGDATASET_PATH
18
+
19
+
20
+ # click entry point
21
+ @click.command(cls=CustomClickCommand, help="Create a new session on the given PPFG Dataset")
22
+ @click.option("-id", "--id", "_id", help="PPFG Dataset id to search for", required=True)
23
+ @handle_cli_exceptions
24
+ @command_with_output()
25
+ def _click_command(state: State, _id: str):
26
+ return create_session(state, _id)
27
+
28
+
29
+ def create_session(state: State, record_id: str):
30
+ """Create a new session on the given PPFG Dataset"""
31
+ client = CliOsduClient(state.config)
32
+ wellbore_client = client.get_wellbore_ddms_client(url_extra_path=WELLBORE_DDMS_PPFGDATASET_PATH)
33
+ response = wellbore_client.create_wbddms_session(record_id)
34
+ client.check_status_code(response)
35
+ return response.json()
@@ -0,0 +1,36 @@
1
+ # Licensed under the Apache License, Version 2.0 (the "License");
2
+ # you may not use this file except in compliance with the License.
3
+ # You may obtain a copy of the License at
4
+ #
5
+ # http://www.apache.org/licenses/LICENSE-2.0
6
+ #
7
+ # Unless required by applicable law or agreed to in writing, software
8
+ # distributed under the License is distributed on an "AS IS" BASIS,
9
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
10
+ # See the License for the specific language governing permissions and
11
+ # limitations under the License.
12
+ """PPFG Dataset get session command"""
13
+ import click
14
+
15
+ from osducli.click_cli import CustomClickCommand, State, command_with_output
16
+ from osducli.cliclient import CliOsduClient, handle_cli_exceptions
17
+ from osducli.commands.wellbore_ddms._const import WELLBORE_DDMS_PPFGDATASET_PATH
18
+
19
+
20
+ # click entry point
21
+ @click.command(cls=CustomClickCommand, help="Get PPFG Dataset session")
22
+ @click.option("-id", "--id", "_id", help="PPFG Dataset id to search for", required=True)
23
+ @click.option("-s", "--session", "_ses", help="PPFG Dataset session id to search for", required=True)
24
+ @handle_cli_exceptions
25
+ @command_with_output()
26
+ def _click_command(state: State, _id: str, _ses: str):
27
+ return get_session(state, _id, _ses)
28
+
29
+
30
+ def get_session(state: State, record_id: str, session_id: str):
31
+ """Get PPFG Dataset session"""
32
+ client = CliOsduClient(state.config)
33
+ wellbore_client = client.get_wellbore_ddms_client(url_extra_path=WELLBORE_DDMS_PPFGDATASET_PATH)
34
+ response = wellbore_client.get_wbddms_session(record_id, session_id)
35
+ client.check_status_code(response)
36
+ return response.json()
@@ -0,0 +1,35 @@
1
+ # Licensed under the Apache License, Version 2.0 (the "License");
2
+ # you may not use this file except in compliance with the License.
3
+ # You may obtain a copy of the License at
4
+ #
5
+ # http://www.apache.org/licenses/LICENSE-2.0
6
+ #
7
+ # Unless required by applicable law or agreed to in writing, software
8
+ # distributed under the License is distributed on an "AS IS" BASIS,
9
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
10
+ # See the License for the specific language governing permissions and
11
+ # limitations under the License.
12
+ """PPFG Dataset list session command"""
13
+ import click
14
+
15
+ from osducli.click_cli import CustomClickCommand, State, command_with_output
16
+ from osducli.cliclient import CliOsduClient, handle_cli_exceptions
17
+ from osducli.commands.wellbore_ddms._const import WELLBORE_DDMS_PPFGDATASET_PATH
18
+
19
+
20
+ # click entry point
21
+ @click.command(cls=CustomClickCommand, help="List session of the given PPFG Dataset")
22
+ @click.option("-id", "--id", "_id", help="PPFG Dataset id to search for", required=True)
23
+ @handle_cli_exceptions
24
+ @command_with_output()
25
+ def _click_command(state: State, _id: str):
26
+ return get_versions(state, _id)
27
+
28
+
29
+ def get_versions(state: State, record_id: str):
30
+ """List session of the given PPFG Dataset"""
31
+ client = CliOsduClient(state.config)
32
+ wellbore_client = client.get_wellbore_ddms_client(url_extra_path=WELLBORE_DDMS_PPFGDATASET_PATH)
33
+ response = wellbore_client.list_wbddms_session(record_id)
34
+ client.check_status_code(response)
35
+ return response.json()