osducli 0.0.48__tar.gz → 0.0.50__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.
- {osducli-0.0.48/src/osducli.egg-info → osducli-0.0.50}/PKG-INFO +10 -1
- {osducli-0.0.48 → osducli-0.0.50}/README.rst +9 -0
- osducli-0.0.50/src/osducli/VERSION +1 -0
- {osducli-0.0.48 → osducli-0.0.50}/src/osducli/commands/wbdutil/config_file.py +19 -2
- {osducli-0.0.48 → osducli-0.0.50}/src/osducli/commands/wbdutil/download.py +6 -4
- {osducli-0.0.48 → osducli-0.0.50}/src/osducli/commands/wbdutil/ingest/data.py +4 -2
- {osducli-0.0.48 → osducli-0.0.50}/src/osducli/commands/wbdutil/ingest/wellbore.py +4 -2
- {osducli-0.0.48 → osducli-0.0.50}/src/osducli/commands/wbdutil/list/curves.py +1 -1
- {osducli-0.0.48 → osducli-0.0.50}/src/osducli/commands/wbdutil/parse/convert.py +4 -2
- {osducli-0.0.48 → osducli-0.0.50}/src/osducli/commands/wellbore_ddms/_const.py +9 -0
- osducli-0.0.50/src/osducli/commands/wellbore_ddms/log_recognition/__init__.py +13 -0
- osducli-0.0.50/src/osducli/commands/wellbore_ddms/log_recognition/family.py +37 -0
- osducli-0.0.50/src/osducli/commands/wellbore_ddms/log_recognition/upload_catalog.py +40 -0
- osducli-0.0.50/src/osducli/commands/wellbore_ddms/ppfgdataset/__init__.py +13 -0
- osducli-0.0.50/src/osducli/commands/wellbore_ddms/ppfgdataset/add.py +42 -0
- osducli-0.0.50/src/osducli/commands/wellbore_ddms/ppfgdataset/data/__init__.py +13 -0
- osducli-0.0.50/src/osducli/commands/wellbore_ddms/ppfgdataset/data/add.py +40 -0
- osducli-0.0.50/src/osducli/commands/wellbore_ddms/ppfgdataset/data/get.py +44 -0
- osducli-0.0.50/src/osducli/commands/wellbore_ddms/ppfgdataset/delete.py +35 -0
- osducli-0.0.50/src/osducli/commands/wellbore_ddms/ppfgdataset/get.py +35 -0
- osducli-0.0.50/src/osducli/commands/wellbore_ddms/ppfgdataset/session/__init__.py +13 -0
- osducli-0.0.50/src/osducli/commands/wellbore_ddms/ppfgdataset/session/create.py +35 -0
- osducli-0.0.50/src/osducli/commands/wellbore_ddms/ppfgdataset/session/get.py +36 -0
- osducli-0.0.50/src/osducli/commands/wellbore_ddms/ppfgdataset/session/list.py +35 -0
- osducli-0.0.50/src/osducli/commands/wellbore_ddms/ppfgdataset/session/send.py +41 -0
- osducli-0.0.50/src/osducli/commands/wellbore_ddms/ppfgdataset/session/update.py +37 -0
- osducli-0.0.50/src/osducli/commands/wellbore_ddms/ppfgdataset/version/__init__.py +13 -0
- osducli-0.0.50/src/osducli/commands/wellbore_ddms/ppfgdataset/version/data/__init__.py +13 -0
- osducli-0.0.50/src/osducli/commands/wellbore_ddms/ppfgdataset/version/data/get.py +45 -0
- osducli-0.0.50/src/osducli/commands/wellbore_ddms/ppfgdataset/version/get.py +36 -0
- osducli-0.0.50/src/osducli/commands/wellbore_ddms/ppfgdataset/version/list.py +35 -0
- osducli-0.0.50/src/osducli/commands/wellbore_ddms/trajectory/__init__.py +13 -0
- osducli-0.0.50/src/osducli/commands/wellbore_ddms/trajectory/add.py +42 -0
- osducli-0.0.50/src/osducli/commands/wellbore_ddms/trajectory/data/__init__.py +13 -0
- osducli-0.0.50/src/osducli/commands/wellbore_ddms/trajectory/data/add.py +40 -0
- osducli-0.0.50/src/osducli/commands/wellbore_ddms/trajectory/data/get.py +44 -0
- osducli-0.0.50/src/osducli/commands/wellbore_ddms/trajectory/delete.py +35 -0
- osducli-0.0.50/src/osducli/commands/wellbore_ddms/trajectory/get.py +35 -0
- osducli-0.0.50/src/osducli/commands/wellbore_ddms/trajectory/session/__init__.py +13 -0
- osducli-0.0.50/src/osducli/commands/wellbore_ddms/trajectory/session/create.py +35 -0
- osducli-0.0.50/src/osducli/commands/wellbore_ddms/trajectory/session/get.py +36 -0
- osducli-0.0.50/src/osducli/commands/wellbore_ddms/trajectory/session/list.py +35 -0
- osducli-0.0.50/src/osducli/commands/wellbore_ddms/trajectory/session/send.py +41 -0
- osducli-0.0.50/src/osducli/commands/wellbore_ddms/trajectory/session/update.py +37 -0
- osducli-0.0.50/src/osducli/commands/wellbore_ddms/trajectory/version/__init__.py +13 -0
- osducli-0.0.50/src/osducli/commands/wellbore_ddms/trajectory/version/data/__init__.py +13 -0
- osducli-0.0.50/src/osducli/commands/wellbore_ddms/trajectory/version/data/get.py +45 -0
- osducli-0.0.50/src/osducli/commands/wellbore_ddms/trajectory/version/get.py +36 -0
- osducli-0.0.50/src/osducli/commands/wellbore_ddms/trajectory/version/list.py +35 -0
- osducli-0.0.50/src/osducli/commands/wellbore_ddms/well/__init__.py +13 -0
- osducli-0.0.50/src/osducli/commands/wellbore_ddms/well/add.py +42 -0
- osducli-0.0.50/src/osducli/commands/wellbore_ddms/well/delete.py +35 -0
- osducli-0.0.50/src/osducli/commands/wellbore_ddms/well/get.py +35 -0
- osducli-0.0.50/src/osducli/commands/wellbore_ddms/well/version/__init__.py +13 -0
- osducli-0.0.50/src/osducli/commands/wellbore_ddms/well/version/get.py +36 -0
- osducli-0.0.50/src/osducli/commands/wellbore_ddms/well/version/list.py +35 -0
- {osducli-0.0.48 → osducli-0.0.50}/src/osducli/commands/wellbore_ddms/well_log/add.py +4 -4
- osducli-0.0.50/src/osducli/commands/wellbore_ddms/well_log/data/__init__.py +13 -0
- {osducli-0.0.48 → osducli-0.0.50}/src/osducli/commands/wellbore_ddms/well_log/data/add.py +5 -5
- {osducli-0.0.48 → osducli-0.0.50}/src/osducli/commands/wellbore_ddms/well_log/data/get.py +5 -5
- osducli-0.0.50/src/osducli/commands/wellbore_ddms/well_log/data/statistics.py +36 -0
- osducli-0.0.50/src/osducli/commands/wellbore_ddms/well_log/delete.py +35 -0
- {osducli-0.0.48 → osducli-0.0.50}/src/osducli/commands/wellbore_ddms/well_log/get.py +5 -5
- osducli-0.0.50/src/osducli/commands/wellbore_ddms/well_log/session/__init__.py +13 -0
- osducli-0.0.50/src/osducli/commands/wellbore_ddms/well_log/session/create.py +35 -0
- osducli-0.0.50/src/osducli/commands/wellbore_ddms/well_log/session/get.py +36 -0
- osducli-0.0.50/src/osducli/commands/wellbore_ddms/well_log/session/list.py +35 -0
- osducli-0.0.50/src/osducli/commands/wellbore_ddms/well_log/session/send.py +41 -0
- osducli-0.0.50/src/osducli/commands/wellbore_ddms/well_log/session/update.py +37 -0
- osducli-0.0.50/src/osducli/commands/wellbore_ddms/well_log/version/__init__.py +13 -0
- osducli-0.0.50/src/osducli/commands/wellbore_ddms/well_log/version/data/__init__.py +13 -0
- osducli-0.0.50/src/osducli/commands/wellbore_ddms/well_log/version/data/get.py +45 -0
- osducli-0.0.50/src/osducli/commands/wellbore_ddms/well_log/version/data/statistics.py +37 -0
- osducli-0.0.50/src/osducli/commands/wellbore_ddms/well_log/version/data/update_stats.py +36 -0
- osducli-0.0.50/src/osducli/commands/wellbore_ddms/well_log/version/get.py +36 -0
- osducli-0.0.50/src/osducli/commands/wellbore_ddms/well_log/version/list.py +35 -0
- osducli-0.0.50/src/osducli/commands/wellbore_ddms/wellbore/__init__.py +13 -0
- osducli-0.0.50/src/osducli/commands/wellbore_ddms/wellbore/add.py +42 -0
- osducli-0.0.50/src/osducli/commands/wellbore_ddms/wellbore/delete.py +35 -0
- osducli-0.0.50/src/osducli/commands/wellbore_ddms/wellbore/get.py +35 -0
- osducli-0.0.50/src/osducli/commands/wellbore_ddms/wellbore/version/__init__.py +13 -0
- osducli-0.0.50/src/osducli/commands/wellbore_ddms/wellbore/version/get.py +36 -0
- osducli-0.0.50/src/osducli/commands/wellbore_ddms/wellbore/version/list.py +35 -0
- osducli-0.0.50/src/osducli/commands/wellbore_ddms/wellbore_intervalset/__init__.py +13 -0
- osducli-0.0.50/src/osducli/commands/wellbore_ddms/wellbore_intervalset/add.py +44 -0
- osducli-0.0.50/src/osducli/commands/wellbore_ddms/wellbore_intervalset/delete.py +37 -0
- osducli-0.0.50/src/osducli/commands/wellbore_ddms/wellbore_intervalset/get.py +37 -0
- osducli-0.0.50/src/osducli/commands/wellbore_ddms/wellbore_intervalset/version/__init__.py +13 -0
- osducli-0.0.50/src/osducli/commands/wellbore_ddms/wellbore_intervalset/version/get.py +38 -0
- osducli-0.0.50/src/osducli/commands/wellbore_ddms/wellbore_intervalset/version/list.py +37 -0
- osducli-0.0.50/src/osducli/commands/wellbore_ddms/wellbore_markerset/__init__.py +13 -0
- osducli-0.0.50/src/osducli/commands/wellbore_ddms/wellbore_markerset/add.py +42 -0
- osducli-0.0.50/src/osducli/commands/wellbore_ddms/wellbore_markerset/delete.py +35 -0
- osducli-0.0.50/src/osducli/commands/wellbore_ddms/wellbore_markerset/get.py +35 -0
- osducli-0.0.50/src/osducli/commands/wellbore_ddms/wellbore_markerset/version/__init__.py +13 -0
- osducli-0.0.50/src/osducli/commands/wellbore_ddms/wellbore_markerset/version/get.py +36 -0
- osducli-0.0.50/src/osducli/commands/wellbore_ddms/wellbore_markerset/version/list.py +35 -0
- osducli-0.0.50/src/osducli/commands/wellbore_ddms/welllog_acquisition/__init__.py +13 -0
- osducli-0.0.50/src/osducli/commands/wellbore_ddms/welllog_acquisition/add.py +42 -0
- osducli-0.0.50/src/osducli/commands/wellbore_ddms/welllog_acquisition/delete.py +35 -0
- osducli-0.0.50/src/osducli/commands/wellbore_ddms/welllog_acquisition/get.py +35 -0
- osducli-0.0.50/src/osducli/commands/wellbore_ddms/welllog_acquisition/version/__init__.py +13 -0
- osducli-0.0.50/src/osducli/commands/wellbore_ddms/welllog_acquisition/version/get.py +36 -0
- osducli-0.0.50/src/osducli/commands/wellbore_ddms/welllog_acquisition/version/list.py +35 -0
- osducli-0.0.50/src/osducli/commands/wellbore_ddms/wellpressure_test_raw_measurement/__init__.py +13 -0
- osducli-0.0.50/src/osducli/commands/wellbore_ddms/wellpressure_test_raw_measurement/add.py +44 -0
- osducli-0.0.50/src/osducli/commands/wellbore_ddms/wellpressure_test_raw_measurement/data/__init__.py +13 -0
- osducli-0.0.50/src/osducli/commands/wellbore_ddms/wellpressure_test_raw_measurement/data/add.py +42 -0
- osducli-0.0.50/src/osducli/commands/wellbore_ddms/wellpressure_test_raw_measurement/data/get.py +46 -0
- osducli-0.0.50/src/osducli/commands/wellbore_ddms/wellpressure_test_raw_measurement/delete.py +37 -0
- osducli-0.0.50/src/osducli/commands/wellbore_ddms/wellpressure_test_raw_measurement/get.py +37 -0
- osducli-0.0.50/src/osducli/commands/wellbore_ddms/wellpressure_test_raw_measurement/session/__init__.py +13 -0
- osducli-0.0.50/src/osducli/commands/wellbore_ddms/wellpressure_test_raw_measurement/session/create.py +37 -0
- osducli-0.0.50/src/osducli/commands/wellbore_ddms/wellpressure_test_raw_measurement/session/get.py +38 -0
- osducli-0.0.50/src/osducli/commands/wellbore_ddms/wellpressure_test_raw_measurement/session/list.py +37 -0
- osducli-0.0.50/src/osducli/commands/wellbore_ddms/wellpressure_test_raw_measurement/session/send.py +43 -0
- osducli-0.0.50/src/osducli/commands/wellbore_ddms/wellpressure_test_raw_measurement/session/update.py +39 -0
- osducli-0.0.50/src/osducli/commands/wellbore_ddms/wellpressure_test_raw_measurement/version/__init__.py +13 -0
- osducli-0.0.50/src/osducli/commands/wellbore_ddms/wellpressure_test_raw_measurement/version/data/__init__.py +13 -0
- osducli-0.0.50/src/osducli/commands/wellbore_ddms/wellpressure_test_raw_measurement/version/data/get.py +47 -0
- osducli-0.0.50/src/osducli/commands/wellbore_ddms/wellpressure_test_raw_measurement/version/get.py +38 -0
- osducli-0.0.50/src/osducli/commands/wellbore_ddms/wellpressure_test_raw_measurement/version/list.py +37 -0
- osducli-0.0.50/src/osducli/wbddms_client.py +191 -0
- {osducli-0.0.48 → osducli-0.0.50/src/osducli.egg-info}/PKG-INFO +10 -1
- osducli-0.0.50/src/osducli.egg-info/SOURCES.txt +249 -0
- osducli-0.0.48/src/osducli/VERSION +0 -1
- osducli-0.0.48/src/osducli/commands/wellbore_ddms/well_log/data/__init__.py +0 -13
- osducli-0.0.48/src/osducli/wbddms_client.py +0 -58
- osducli-0.0.48/src/osducli.egg-info/SOURCES.txt +0 -142
- {osducli-0.0.48 → osducli-0.0.50}/LICENSE.md +0 -0
- {osducli-0.0.48 → osducli-0.0.50}/MANIFEST.in +0 -0
- {osducli-0.0.48 → osducli-0.0.50}/pyproject.toml +0 -0
- {osducli-0.0.48 → osducli-0.0.50}/setup.cfg +0 -0
- {osducli-0.0.48 → osducli-0.0.50}/src/osducli/__init__.py +0 -0
- {osducli-0.0.48 → osducli-0.0.50}/src/osducli/__main__.py +0 -0
- {osducli-0.0.48 → osducli-0.0.50}/src/osducli/auth/__init__.py +0 -0
- {osducli-0.0.48 → osducli-0.0.50}/src/osducli/auth/aws_token_credential.py +0 -0
- {osducli-0.0.48 → osducli-0.0.50}/src/osducli/auth/credentials.py +0 -0
- {osducli-0.0.48 → osducli-0.0.50}/src/osducli/auth/msal_interactive.py +0 -0
- {osducli-0.0.48 → osducli-0.0.50}/src/osducli/auth/msal_non_interactive.py +0 -0
- {osducli-0.0.48 → osducli-0.0.50}/src/osducli/auth/token_credential.py +0 -0
- {osducli-0.0.48 → osducli-0.0.50}/src/osducli/click_cli.py +0 -0
- {osducli-0.0.48 → osducli-0.0.50}/src/osducli/cliclient.py +0 -0
- {osducli-0.0.48 → osducli-0.0.50}/src/osducli/commands/__init__.py +0 -0
- {osducli-0.0.48 → osducli-0.0.50}/src/osducli/commands/config/__init__.py +0 -0
- {osducli-0.0.48 → osducli-0.0.50}/src/osducli/commands/config/consts.py +0 -0
- {osducli-0.0.48 → osducli-0.0.50}/src/osducli/commands/config/default.py +0 -0
- {osducli-0.0.48 → osducli-0.0.50}/src/osducli/commands/config/info.py +0 -0
- {osducli-0.0.48 → osducli-0.0.50}/src/osducli/commands/config/list.py +0 -0
- {osducli-0.0.48 → osducli-0.0.50}/src/osducli/commands/config/update.py +0 -0
- {osducli-0.0.48 → osducli-0.0.50}/src/osducli/commands/crs/__init__.py +0 -0
- {osducli-0.0.48 → osducli-0.0.50}/src/osducli/commands/crs/_const.py +0 -0
- {osducli-0.0.48 → osducli-0.0.50}/src/osducli/commands/crs/areas.py +0 -0
- {osducli-0.0.48 → osducli-0.0.50}/src/osducli/commands/crs/info.py +0 -0
- {osducli-0.0.48 → osducli-0.0.50}/src/osducli/commands/crs/list.py +0 -0
- {osducli-0.0.48 → osducli-0.0.50}/src/osducli/commands/crs/summary.py +0 -0
- {osducli-0.0.48 → osducli-0.0.50}/src/osducli/commands/crs/transforms.py +0 -0
- {osducli-0.0.48 → osducli-0.0.50}/src/osducli/commands/dataload/__init__.py +0 -0
- {osducli-0.0.48 → osducli-0.0.50}/src/osducli/commands/dataload/checkrefs.py +0 -0
- {osducli-0.0.48 → osducli-0.0.50}/src/osducli/commands/dataload/ingest.py +0 -0
- {osducli-0.0.48 → osducli-0.0.50}/src/osducli/commands/dataload/status.py +0 -0
- {osducli-0.0.48 → osducli-0.0.50}/src/osducli/commands/dataload/verify.py +0 -0
- {osducli-0.0.48 → osducli-0.0.50}/src/osducli/commands/entitlements/__init__.py +0 -0
- {osducli-0.0.48 → osducli-0.0.50}/src/osducli/commands/entitlements/_const.py +0 -0
- {osducli-0.0.48 → osducli-0.0.50}/src/osducli/commands/entitlements/groups/__init__.py +0 -0
- {osducli-0.0.48 → osducli-0.0.50}/src/osducli/commands/entitlements/groups/add.py +0 -0
- {osducli-0.0.48 → osducli-0.0.50}/src/osducli/commands/entitlements/groups/delete.py +0 -0
- {osducli-0.0.48 → osducli-0.0.50}/src/osducli/commands/entitlements/groups/members.py +0 -0
- {osducli-0.0.48 → osducli-0.0.50}/src/osducli/commands/entitlements/info.py +0 -0
- {osducli-0.0.48 → osducli-0.0.50}/src/osducli/commands/entitlements/members/__init__.py +0 -0
- {osducli-0.0.48 → osducli-0.0.50}/src/osducli/commands/entitlements/members/add.py +0 -0
- {osducli-0.0.48 → osducli-0.0.50}/src/osducli/commands/entitlements/members/groups.py +0 -0
- {osducli-0.0.48 → osducli-0.0.50}/src/osducli/commands/entitlements/members/list.py +0 -0
- {osducli-0.0.48 → osducli-0.0.50}/src/osducli/commands/entitlements/members/remove.py +0 -0
- {osducli-0.0.48 → osducli-0.0.50}/src/osducli/commands/entitlements/mygroups.py +0 -0
- {osducli-0.0.48 → osducli-0.0.50}/src/osducli/commands/file/__init__.py +0 -0
- {osducli-0.0.48 → osducli-0.0.50}/src/osducli/commands/file/_const.py +0 -0
- {osducli-0.0.48 → osducli-0.0.50}/src/osducli/commands/file/download.py +0 -0
- {osducli-0.0.48 → osducli-0.0.50}/src/osducli/commands/file/info.py +0 -0
- {osducli-0.0.48 → osducli-0.0.50}/src/osducli/commands/file/metadata.py +0 -0
- {osducli-0.0.48 → osducli-0.0.50}/src/osducli/commands/legal/__init__.py +0 -0
- {osducli-0.0.48 → osducli-0.0.50}/src/osducli/commands/legal/_const.py +0 -0
- {osducli-0.0.48 → osducli-0.0.50}/src/osducli/commands/legal/add.py +0 -0
- {osducli-0.0.48 → osducli-0.0.50}/src/osducli/commands/legal/delete.py +0 -0
- {osducli-0.0.48 → osducli-0.0.50}/src/osducli/commands/legal/info.py +0 -0
- {osducli-0.0.48 → osducli-0.0.50}/src/osducli/commands/legal/listtags.py +0 -0
- {osducli-0.0.48 → osducli-0.0.50}/src/osducli/commands/list/__init__.py +0 -0
- {osducli-0.0.48 → osducli-0.0.50}/src/osducli/commands/list/records.py +0 -0
- {osducli-0.0.48 → osducli-0.0.50}/src/osducli/commands/schema/__init__.py +0 -0
- {osducli-0.0.48 → osducli-0.0.50}/src/osducli/commands/schema/_const.py +0 -0
- {osducli-0.0.48 → osducli-0.0.50}/src/osducli/commands/schema/add.py +0 -0
- {osducli-0.0.48 → osducli-0.0.50}/src/osducli/commands/schema/get.py +0 -0
- {osducli-0.0.48 → osducli-0.0.50}/src/osducli/commands/schema/info.py +0 -0
- {osducli-0.0.48 → osducli-0.0.50}/src/osducli/commands/schema/list.py +0 -0
- {osducli-0.0.48 → osducli-0.0.50}/src/osducli/commands/search/__init__.py +0 -0
- {osducli-0.0.48 → osducli-0.0.50}/src/osducli/commands/search/_const.py +0 -0
- {osducli-0.0.48 → osducli-0.0.50}/src/osducli/commands/search/id.py +0 -0
- {osducli-0.0.48 → osducli-0.0.50}/src/osducli/commands/search/info.py +0 -0
- {osducli-0.0.48 → osducli-0.0.50}/src/osducli/commands/search/kind.py +0 -0
- {osducli-0.0.48 → osducli-0.0.50}/src/osducli/commands/search/query.py +0 -0
- {osducli-0.0.48 → osducli-0.0.50}/src/osducli/commands/status/__init__.py +0 -0
- {osducli-0.0.48 → osducli-0.0.50}/src/osducli/commands/status/status.py +0 -0
- {osducli-0.0.48 → osducli-0.0.50}/src/osducli/commands/storage/__init__.py +0 -0
- {osducli-0.0.48 → osducli-0.0.50}/src/osducli/commands/storage/_const.py +0 -0
- {osducli-0.0.48 → osducli-0.0.50}/src/osducli/commands/storage/add.py +0 -0
- {osducli-0.0.48 → osducli-0.0.50}/src/osducli/commands/storage/delete.py +0 -0
- {osducli-0.0.48 → osducli-0.0.50}/src/osducli/commands/storage/get.py +0 -0
- {osducli-0.0.48 → osducli-0.0.50}/src/osducli/commands/storage/info.py +0 -0
- {osducli-0.0.48 → osducli-0.0.50}/src/osducli/commands/storage/list.py +0 -0
- {osducli-0.0.48 → osducli-0.0.50}/src/osducli/commands/storage/versions.py +0 -0
- {osducli-0.0.48 → osducli-0.0.50}/src/osducli/commands/unit/__init__.py +0 -0
- {osducli-0.0.48 → osducli-0.0.50}/src/osducli/commands/unit/_const.py +0 -0
- {osducli-0.0.48 → osducli-0.0.50}/src/osducli/commands/unit/info.py +0 -0
- {osducli-0.0.48 → osducli-0.0.50}/src/osducli/commands/unit/list.py +0 -0
- {osducli-0.0.48 → osducli-0.0.50}/src/osducli/commands/version/__init__.py +0 -0
- {osducli-0.0.48 → osducli-0.0.50}/src/osducli/commands/version/version.py +0 -0
- {osducli-0.0.48 → osducli-0.0.50}/src/osducli/commands/wbdutil/__init__.py +0 -0
- {osducli-0.0.48 → osducli-0.0.50}/src/osducli/commands/wbdutil/_const.py +0 -0
- {osducli-0.0.48 → osducli-0.0.50}/src/osducli/commands/wbdutil/ingest/__init__.py +0 -0
- {osducli-0.0.48 → osducli-0.0.50}/src/osducli/commands/wbdutil/list/__init__.py +0 -0
- {osducli-0.0.48 → osducli-0.0.50}/src/osducli/commands/wbdutil/list/wellbore.py +0 -0
- {osducli-0.0.48 → osducli-0.0.50}/src/osducli/commands/wbdutil/list/welllog.py +0 -0
- {osducli-0.0.48 → osducli-0.0.50}/src/osducli/commands/wbdutil/parse/__init__.py +0 -0
- {osducli-0.0.48 → osducli-0.0.50}/src/osducli/commands/wbdutil/parse/print.py +0 -0
- {osducli-0.0.48 → osducli-0.0.50}/src/osducli/commands/wbdutil/search.py +0 -0
- {osducli-0.0.48 → osducli-0.0.50}/src/osducli/commands/wbdutil/update.py +0 -0
- {osducli-0.0.48 → osducli-0.0.50}/src/osducli/commands/wellbore_ddms/__init__.py +0 -0
- {osducli-0.0.48 → osducli-0.0.50}/src/osducli/commands/wellbore_ddms/info.py +0 -0
- {osducli-0.0.48 → osducli-0.0.50}/src/osducli/commands/wellbore_ddms/well_log/__init__.py +0 -0
- {osducli-0.0.48 → osducli-0.0.50}/src/osducli/commands/workflow/__init__.py +0 -0
- {osducli-0.0.48 → osducli-0.0.50}/src/osducli/commands/workflow/_const.py +0 -0
- {osducli-0.0.48 → osducli-0.0.50}/src/osducli/commands/workflow/get.py +0 -0
- {osducli-0.0.48 → osducli-0.0.50}/src/osducli/commands/workflow/info.py +0 -0
- {osducli-0.0.48 → osducli-0.0.50}/src/osducli/commands/workflow/list.py +0 -0
- {osducli-0.0.48 → osducli-0.0.50}/src/osducli/commands/workflow/register.py +0 -0
- {osducli-0.0.48 → osducli-0.0.50}/src/osducli/commands/workflow/runs.py +0 -0
- {osducli-0.0.48 → osducli-0.0.50}/src/osducli/commands/workflow/status.py +0 -0
- {osducli-0.0.48 → osducli-0.0.50}/src/osducli/commands/workflow/unregister.py +0 -0
- {osducli-0.0.48 → osducli-0.0.50}/src/osducli/config.py +0 -0
- {osducli-0.0.48 → osducli-0.0.50}/src/osducli/log.py +0 -0
- {osducli-0.0.48 → osducli-0.0.50}/src/osducli/state.py +0 -0
- {osducli-0.0.48 → osducli-0.0.50}/src/osducli/util/__init__.py +0 -0
- {osducli-0.0.48 → osducli-0.0.50}/src/osducli/util/exceptions.py +0 -0
- {osducli-0.0.48 → osducli-0.0.50}/src/osducli/util/file.py +0 -0
- {osducli-0.0.48 → osducli-0.0.50}/src/osducli/util/prompt.py +0 -0
- {osducli-0.0.48 → osducli-0.0.50}/src/osducli/util/pypi.py +0 -0
- {osducli-0.0.48 → osducli-0.0.50}/src/osducli/util/service_info.py +0 -0
- {osducli-0.0.48 → osducli-0.0.50}/src/osducli/version.py +0 -0
- {osducli-0.0.48 → osducli-0.0.50}/src/osducli.egg-info/dependency_links.txt +0 -0
- {osducli-0.0.48 → osducli-0.0.50}/src/osducli.egg-info/entry_points.txt +0 -0
- {osducli-0.0.48 → osducli-0.0.50}/src/osducli.egg-info/requires.txt +0 -0
- {osducli-0.0.48 → osducli-0.0.50}/src/osducli.egg-info/top_level.txt +0 -0
- {osducli-0.0.48 → osducli-0.0.50}/tests/test_click_cli_state.py +0 -0
- {osducli-0.0.48 → osducli-0.0.50}/tests/test_cliclient.py +0 -0
- {osducli-0.0.48 → osducli-0.0.50}/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.
|
|
3
|
+
Version: 0.0.50
|
|
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,15 @@ For more information, specify the `-h` flag:
|
|
|
75
75
|
Change Log
|
|
76
76
|
==========
|
|
77
77
|
|
|
78
|
+
0.0.50
|
|
79
|
+
------
|
|
80
|
+
- Maintenance release
|
|
81
|
+
|
|
82
|
+
0.0.49
|
|
83
|
+
------
|
|
84
|
+
- Added commands for Wellbore DDMS API
|
|
85
|
+
- Custom mappings for wbdutil commands
|
|
86
|
+
|
|
78
87
|
0.0.48
|
|
79
88
|
------
|
|
80
89
|
- Added commands for wbdutil (Wellbore DDMS Data Loader)
|
|
@@ -28,6 +28,15 @@ For more information, specify the `-h` flag:
|
|
|
28
28
|
Change Log
|
|
29
29
|
==========
|
|
30
30
|
|
|
31
|
+
0.0.50
|
|
32
|
+
------
|
|
33
|
+
- Maintenance release
|
|
34
|
+
|
|
35
|
+
0.0.49
|
|
36
|
+
------
|
|
37
|
+
- Added commands for Wellbore DDMS API
|
|
38
|
+
- Custom mappings for wbdutil commands
|
|
39
|
+
|
|
31
40
|
0.0.48
|
|
32
41
|
------
|
|
33
42
|
- Added commands for wbdutil (Wellbore DDMS Data Loader)
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
0.0.50
|
|
@@ -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("-
|
|
27
|
-
@click.option("-
|
|
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("-
|
|
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()
|