osdu-api 1.0.3__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.
- osdu_api-1.0.3/LICENSE +202 -0
- osdu_api-1.0.3/MANIFEST.in +1 -0
- osdu_api-1.0.3/PKG-INFO +184 -0
- osdu_api-1.0.3/README.md +141 -0
- osdu_api-1.0.3/VERSION +1 -0
- osdu_api-1.0.3/pyproject.toml +79 -0
- osdu_api-1.0.3/setup.cfg +4 -0
- osdu_api-1.0.3/src/osdu_api/__init__.py +15 -0
- osdu_api-1.0.3/src/osdu_api/auth/__init__.py +15 -0
- osdu_api-1.0.3/src/osdu_api/auth/authorization.py +174 -0
- osdu_api-1.0.3/src/osdu_api/auth/refresh_token.py +62 -0
- osdu_api-1.0.3/src/osdu_api/clients/__init__.py +15 -0
- osdu_api-1.0.3/src/osdu_api/clients/base_client.py +389 -0
- osdu_api-1.0.3/src/osdu_api/clients/crs_catalog/__init__.py +13 -0
- osdu_api-1.0.3/src/osdu_api/clients/crs_catalog/crs_catalog_client.py +78 -0
- osdu_api-1.0.3/src/osdu_api/clients/crs_conversion/__init__.py +13 -0
- osdu_api-1.0.3/src/osdu_api/clients/crs_conversion/crs_conversion_client.py +82 -0
- osdu_api-1.0.3/src/osdu_api/clients/data_workflow/__init__.py +15 -0
- osdu_api-1.0.3/src/osdu_api/clients/data_workflow/data_workflow_client.py +53 -0
- osdu_api-1.0.3/src/osdu_api/clients/data_workflow/data_workflow_scheduling_client.py +58 -0
- osdu_api-1.0.3/src/osdu_api/clients/dataset/__init__.py +15 -0
- osdu_api-1.0.3/src/osdu_api/clients/dataset/dataset_dms_client.py +90 -0
- osdu_api-1.0.3/src/osdu_api/clients/dataset/dataset_registry_client.py +57 -0
- osdu_api-1.0.3/src/osdu_api/clients/entitlements/__init__.py +15 -0
- osdu_api-1.0.3/src/osdu_api/clients/entitlements/entitlements_client.py +84 -0
- osdu_api-1.0.3/src/osdu_api/clients/ingestion_workflow/__init__.py +0 -0
- osdu_api-1.0.3/src/osdu_api/clients/ingestion_workflow/ingestion_workflow_client.py +79 -0
- osdu_api-1.0.3/src/osdu_api/clients/legal/__init__.py +15 -0
- osdu_api-1.0.3/src/osdu_api/clients/legal/legal_client.py +73 -0
- osdu_api-1.0.3/src/osdu_api/clients/partition/__init__.py +12 -0
- osdu_api-1.0.3/src/osdu_api/clients/partition/partition_client.py +96 -0
- osdu_api-1.0.3/src/osdu_api/clients/schema/__init__.py +15 -0
- osdu_api-1.0.3/src/osdu_api/clients/schema/schema_client.py +49 -0
- osdu_api-1.0.3/src/osdu_api/clients/search/__init__.py +15 -0
- osdu_api-1.0.3/src/osdu_api/clients/search/search_client.py +66 -0
- osdu_api-1.0.3/src/osdu_api/clients/storage/__init__.py +15 -0
- osdu_api-1.0.3/src/osdu_api/clients/storage/record_client.py +228 -0
- osdu_api-1.0.3/src/osdu_api/clients/storage/schema_client.py +48 -0
- osdu_api-1.0.3/src/osdu_api/clients/unit/__init__.py +13 -0
- osdu_api-1.0.3/src/osdu_api/clients/unit/unit_client.py +264 -0
- osdu_api-1.0.3/src/osdu_api/configuration/__init__.py +14 -0
- osdu_api-1.0.3/src/osdu_api/configuration/base_config_manager.py +82 -0
- osdu_api-1.0.3/src/osdu_api/configuration/config_manager.py +164 -0
- osdu_api-1.0.3/src/osdu_api/constants.py +20 -0
- osdu_api-1.0.3/src/osdu_api/examples/create_and_search_example.py +69 -0
- osdu_api-1.0.3/src/osdu_api/examples/data_workflow_examples.py +99 -0
- osdu_api-1.0.3/src/osdu_api/examples/dataset_example.py +8 -0
- osdu_api-1.0.3/src/osdu_api/examples/ingestion_workflow_examples.py +41 -0
- osdu_api-1.0.3/src/osdu_api/examples/legal_examples.py +31 -0
- osdu_api-1.0.3/src/osdu_api/examples/search_with_cursor_example.py +11 -0
- osdu_api-1.0.3/src/osdu_api/exceptions/__init__.py +14 -0
- osdu_api-1.0.3/src/osdu_api/exceptions/exceptions.py +28 -0
- osdu_api-1.0.3/src/osdu_api/model/__init__.py +15 -0
- osdu_api-1.0.3/src/osdu_api/model/acl.py +23 -0
- osdu_api-1.0.3/src/osdu_api/model/base.py +34 -0
- osdu_api-1.0.3/src/osdu_api/model/crs_catalog/__init__.py +13 -0
- osdu_api-1.0.3/src/osdu_api/model/crs_catalog/base_crs.py +20 -0
- osdu_api-1.0.3/src/osdu_api/model/crs_catalog/datum.py +21 -0
- osdu_api-1.0.3/src/osdu_api/model/crs_catalog/extent.py +19 -0
- osdu_api-1.0.3/src/osdu_api/model/crs_catalog/post_crs_catalog_coordinate_reference_system.py +63 -0
- osdu_api-1.0.3/src/osdu_api/model/crs_catalog/post_crs_catalog_coordinate_transformation.py +48 -0
- osdu_api-1.0.3/src/osdu_api/model/crs_conversion/__init__.py +13 -0
- osdu_api-1.0.3/src/osdu_api/model/crs_conversion/abcd_bin_grid_spatial_location.py +21 -0
- osdu_api-1.0.3/src/osdu_api/model/crs_conversion/as_ingested_coordinates.py +30 -0
- osdu_api-1.0.3/src/osdu_api/model/crs_conversion/convert_base.py +20 -0
- osdu_api-1.0.3/src/osdu_api/model/crs_conversion/convert_bin_grid.py +22 -0
- osdu_api-1.0.3/src/osdu_api/model/crs_conversion/convert_geo_json.py +25 -0
- osdu_api-1.0.3/src/osdu_api/model/crs_conversion/convert_points.py +25 -0
- osdu_api-1.0.3/src/osdu_api/model/crs_conversion/convert_trajectory.py +44 -0
- osdu_api-1.0.3/src/osdu_api/model/crs_conversion/feature.py +24 -0
- osdu_api-1.0.3/src/osdu_api/model/crs_conversion/feature_collection.py +39 -0
- osdu_api-1.0.3/src/osdu_api/model/crs_conversion/geometry.py +20 -0
- osdu_api-1.0.3/src/osdu_api/model/crs_conversion/in_bin_grid.py +36 -0
- osdu_api-1.0.3/src/osdu_api/model/crs_conversion/point.py +22 -0
- osdu_api-1.0.3/src/osdu_api/model/crs_conversion/station.py +21 -0
- osdu_api-1.0.3/src/osdu_api/model/data_workflow/__init__.py +13 -0
- osdu_api-1.0.3/src/osdu_api/model/data_workflow/get_workflow_schedules_request.py +23 -0
- osdu_api-1.0.3/src/osdu_api/model/data_workflow/start_workflow.py +25 -0
- osdu_api-1.0.3/src/osdu_api/model/data_workflow/update_status_request.py +20 -0
- osdu_api-1.0.3/src/osdu_api/model/data_workflow/workflow_schedule.py +27 -0
- osdu_api-1.0.3/src/osdu_api/model/dataset/__init__.py +13 -0
- osdu_api-1.0.3/src/osdu_api/model/dataset/create_dataset_registries_request.py +27 -0
- osdu_api-1.0.3/src/osdu_api/model/dataset/get_dataset_registry_request.py +22 -0
- osdu_api-1.0.3/src/osdu_api/model/entitlements/__init__.py +13 -0
- osdu_api-1.0.3/src/osdu_api/model/entitlements/group.py +24 -0
- osdu_api-1.0.3/src/osdu_api/model/entitlements/group_member.py +24 -0
- osdu_api-1.0.3/src/osdu_api/model/http_method.py +24 -0
- osdu_api-1.0.3/src/osdu_api/model/ingestion_workflow/__init__.py +0 -0
- osdu_api-1.0.3/src/osdu_api/model/ingestion_workflow/create_workflow_request.py +24 -0
- osdu_api-1.0.3/src/osdu_api/model/ingestion_workflow/trigger_workflow_request.py +22 -0
- osdu_api-1.0.3/src/osdu_api/model/ingestion_workflow/update_workflow_run_request.py +22 -0
- osdu_api-1.0.3/src/osdu_api/model/legal/__init__.py +13 -0
- osdu_api-1.0.3/src/osdu_api/model/legal/legal.py +40 -0
- osdu_api-1.0.3/src/osdu_api/model/legal/legal_compliance.py +28 -0
- osdu_api-1.0.3/src/osdu_api/model/legal/legal_tag.py +22 -0
- osdu_api-1.0.3/src/osdu_api/model/legal/legal_tag_names.py +21 -0
- osdu_api-1.0.3/src/osdu_api/model/legal/legal_tag_properties.py +29 -0
- osdu_api-1.0.3/src/osdu_api/model/legal/update_legal_tag.py +22 -0
- osdu_api-1.0.3/src/osdu_api/model/record.py +72 -0
- osdu_api-1.0.3/src/osdu_api/model/record_ancestry.py +22 -0
- osdu_api-1.0.3/src/osdu_api/model/search/__init__.py +15 -0
- osdu_api-1.0.3/src/osdu_api/model/search/aggregation_response.py +19 -0
- osdu_api-1.0.3/src/osdu_api/model/search/by_bounding_box.py +22 -0
- osdu_api-1.0.3/src/osdu_api/model/search/by_distance.py +22 -0
- osdu_api-1.0.3/src/osdu_api/model/search/by_geo_polygon.py +18 -0
- osdu_api-1.0.3/src/osdu_api/model/search/coordinate.py +20 -0
- osdu_api-1.0.3/src/osdu_api/model/search/query_request.py +61 -0
- osdu_api-1.0.3/src/osdu_api/model/search/query_response.py +21 -0
- osdu_api-1.0.3/src/osdu_api/model/search/sort_order.py +20 -0
- osdu_api-1.0.3/src/osdu_api/model/search/sort_query.py +22 -0
- osdu_api-1.0.3/src/osdu_api/model/search/spatial_filter.py +25 -0
- osdu_api-1.0.3/src/osdu_api/model/storage/__init__.py +13 -0
- osdu_api-1.0.3/src/osdu_api/model/storage/acl.py +23 -0
- osdu_api-1.0.3/src/osdu_api/model/storage/legal.py +36 -0
- osdu_api-1.0.3/src/osdu_api/model/storage/query_records_request.py +24 -0
- osdu_api-1.0.3/src/osdu_api/model/storage/record.py +84 -0
- osdu_api-1.0.3/src/osdu_api/model/storage/record_ancestry.py +22 -0
- osdu_api-1.0.3/src/osdu_api/model/storage/schema/__init__.py +13 -0
- osdu_api-1.0.3/src/osdu_api/model/storage/schema/schema.py +25 -0
- osdu_api-1.0.3/src/osdu_api/model/storage/schema/schema_attribute.py +23 -0
- osdu_api-1.0.3/src/osdu_api/model/unit/__init__.py +13 -0
- osdu_api-1.0.3/src/osdu_api/model/unit/abcd.py +30 -0
- osdu_api-1.0.3/src/osdu_api/model/unit/catalog.py +54 -0
- osdu_api-1.0.3/src/osdu_api/model/unit/catalog_last_modified.py +24 -0
- osdu_api-1.0.3/src/osdu_api/model/unit/connected_outer_service.py +26 -0
- osdu_api-1.0.3/src/osdu_api/model/unit/conversion_abcd_request.py +31 -0
- osdu_api-1.0.3/src/osdu_api/model/unit/conversion_result.py +33 -0
- osdu_api-1.0.3/src/osdu_api/model/unit/conversion_scale_offset_request.py +31 -0
- osdu_api-1.0.3/src/osdu_api/model/unit/map_state.py +28 -0
- osdu_api-1.0.3/src/osdu_api/model/unit/measurement.py +58 -0
- osdu_api-1.0.3/src/osdu_api/model/unit/measurement_deprecation_info.py +28 -0
- osdu_api-1.0.3/src/osdu_api/model/unit/measurement_essence.py +26 -0
- osdu_api-1.0.3/src/osdu_api/model/unit/measurement_map.py +31 -0
- osdu_api-1.0.3/src/osdu_api/model/unit/measurement_map_item.py +35 -0
- osdu_api-1.0.3/src/osdu_api/model/unit/measurement_request.py +27 -0
- osdu_api-1.0.3/src/osdu_api/model/unit/query_result.py +43 -0
- osdu_api-1.0.3/src/osdu_api/model/unit/response_entity.py +29 -0
- osdu_api-1.0.3/src/osdu_api/model/unit/scale_offset.py +26 -0
- osdu_api-1.0.3/src/osdu_api/model/unit/search_request.py +24 -0
- osdu_api-1.0.3/src/osdu_api/model/unit/status_code.py +88 -0
- osdu_api-1.0.3/src/osdu_api/model/unit/unit.py +42 -0
- osdu_api-1.0.3/src/osdu_api/model/unit/unit_assignment.py +30 -0
- osdu_api-1.0.3/src/osdu_api/model/unit/unit_deprecation_info.py +28 -0
- osdu_api-1.0.3/src/osdu_api/model/unit/unit_essence.py +35 -0
- osdu_api-1.0.3/src/osdu_api/model/unit/unit_map.py +31 -0
- osdu_api-1.0.3/src/osdu_api/model/unit/unit_map_item.py +35 -0
- osdu_api-1.0.3/src/osdu_api/model/unit/unit_request.py +27 -0
- osdu_api-1.0.3/src/osdu_api/model/unit/unit_system.py +47 -0
- osdu_api-1.0.3/src/osdu_api/model/unit/unit_system_essence.py +24 -0
- osdu_api-1.0.3/src/osdu_api/model/unit/unit_system_info.py +30 -0
- osdu_api-1.0.3/src/osdu_api/model/unit/unit_system_info_response.py +31 -0
- osdu_api-1.0.3/src/osdu_api/model/unit/unit_system_request.py +27 -0
- osdu_api-1.0.3/src/osdu_api/model/unit/version_info.py +39 -0
- osdu_api-1.0.3/src/osdu_api/providers/__init__.py +14 -0
- osdu_api-1.0.3/src/osdu_api/providers/aws/__init__.py +13 -0
- osdu_api-1.0.3/src/osdu_api/providers/aws/aws_blob_storage_client.py +113 -0
- osdu_api-1.0.3/src/osdu_api/providers/aws/aws_credentials.py +42 -0
- osdu_api-1.0.3/src/osdu_api/providers/aws/boto_client_factory.py +35 -0
- osdu_api-1.0.3/src/osdu_api/providers/aws/entitlements_client.py +47 -0
- osdu_api-1.0.3/src/osdu_api/providers/aws/partition_converter_aws.py +41 -0
- osdu_api-1.0.3/src/osdu_api/providers/aws/partition_info_aws.py +6 -0
- osdu_api-1.0.3/src/osdu_api/providers/aws/service_principal_util.py +94 -0
- osdu_api-1.0.3/src/osdu_api/providers/azure/__init__.py +13 -0
- osdu_api-1.0.3/src/osdu_api/providers/azure/azure_auth_enums.py +13 -0
- osdu_api-1.0.3/src/osdu_api/providers/azure/azure_blob_storage_client.py +130 -0
- osdu_api-1.0.3/src/osdu_api/providers/azure/azure_credentials.py +213 -0
- osdu_api-1.0.3/src/osdu_api/providers/baremetal/__init__.py +14 -0
- osdu_api-1.0.3/src/osdu_api/providers/baremetal/baremetal_blob_storage_client.py +197 -0
- osdu_api-1.0.3/src/osdu_api/providers/baremetal/baremetal_credentials.py +101 -0
- osdu_api-1.0.3/src/osdu_api/providers/baremetal/partition_converter_baremetal.py +50 -0
- osdu_api-1.0.3/src/osdu_api/providers/baremetal/partition_info_baremetal.py +21 -0
- osdu_api-1.0.3/src/osdu_api/providers/blob_storage.py +59 -0
- osdu_api-1.0.3/src/osdu_api/providers/constants.py +23 -0
- osdu_api-1.0.3/src/osdu_api/providers/credentials.py +55 -0
- osdu_api-1.0.3/src/osdu_api/providers/exceptions.py +35 -0
- osdu_api-1.0.3/src/osdu_api/providers/factory.py +85 -0
- osdu_api-1.0.3/src/osdu_api/providers/gc/__init__.py +14 -0
- osdu_api-1.0.3/src/osdu_api/providers/gc/gc_blob_storage_client.py +181 -0
- osdu_api-1.0.3/src/osdu_api/providers/gc/gc_credentials.py +188 -0
- osdu_api-1.0.3/src/osdu_api/providers/ibm/__init__.py +14 -0
- osdu_api-1.0.3/src/osdu_api/providers/ibm/ibm_blob_storage_client.py +155 -0
- osdu_api-1.0.3/src/osdu_api/providers/ibm/ibm_credentials.py +87 -0
- osdu_api-1.0.3/src/osdu_api/providers/types.py +96 -0
- osdu_api-1.0.3/src/osdu_api/utils/__init__.py +14 -0
- osdu_api-1.0.3/src/osdu_api/utils/env.py +50 -0
- osdu_api-1.0.3/src/osdu_api/utils/request.py +63 -0
- osdu_api-1.0.3/src/osdu_api/version.py +24 -0
- osdu_api-1.0.3/src/osdu_api.egg-info/PKG-INFO +184 -0
- osdu_api-1.0.3/src/osdu_api.egg-info/SOURCES.txt +199 -0
- osdu_api-1.0.3/src/osdu_api.egg-info/dependency_links.txt +1 -0
- osdu_api-1.0.3/src/osdu_api.egg-info/requires.txt +34 -0
- osdu_api-1.0.3/src/osdu_api.egg-info/top_level.txt +1 -0
- osdu_api-1.0.3/tests/test_base_client.py +201 -0
- osdu_api-1.0.3/tests/test_data_workflow_client.py +42 -0
- osdu_api-1.0.3/tests/test_dataset_registry_client.py +56 -0
- osdu_api-1.0.3/tests/test_entitlements_client.py +41 -0
- osdu_api-1.0.3/tests/test_ingestion_workflow_client.py +43 -0
- osdu_api-1.0.3/tests/test_legal_client.py +39 -0
- osdu_api-1.0.3/tests/test_record_client.py +195 -0
- osdu_api-1.0.3/tests/test_refresh_token.py +42 -0
- osdu_api-1.0.3/tests/test_search_client.py +53 -0
osdu_api-1.0.3/LICENSE
ADDED
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "{}"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright 2020 Google LLC
|
|
190
|
+
Copyright © 2020 Amazon Web Services
|
|
191
|
+
|
|
192
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
193
|
+
you may not use this file except in compliance with the License.
|
|
194
|
+
You may obtain a copy of the License at
|
|
195
|
+
|
|
196
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
197
|
+
|
|
198
|
+
Unless required by applicable law or agreed to in writing, software
|
|
199
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
200
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
201
|
+
See the License for the specific language governing permissions and
|
|
202
|
+
limitations under the License.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
include VERSION
|
osdu_api-1.0.3/PKG-INFO
ADDED
|
@@ -0,0 +1,184 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: osdu_api
|
|
3
|
+
Version: 1.0.3
|
|
4
|
+
Summary: A package to interface with OSDU microservices
|
|
5
|
+
Author: OSDU team
|
|
6
|
+
License-Expression: Apache-2.0
|
|
7
|
+
Project-URL: Homepage, https://community.opengroup.org/osdu/platform/system/sdks/common-python-sdk
|
|
8
|
+
Classifier: Programming Language :: Python :: 3
|
|
9
|
+
Classifier: Operating System :: OS Independent
|
|
10
|
+
Requires-Python: >=3.11
|
|
11
|
+
Description-Content-Type: text/markdown
|
|
12
|
+
License-File: LICENSE
|
|
13
|
+
Requires-Dist: requests>=2.32.3
|
|
14
|
+
Requires-Dist: tenacity>=9.1.2
|
|
15
|
+
Requires-Dist: httpx>=0.28.1
|
|
16
|
+
Provides-Extra: dev
|
|
17
|
+
Requires-Dist: mock==5.2.0; extra == "dev"
|
|
18
|
+
Requires-Dist: pytest==8.3.5; extra == "dev"
|
|
19
|
+
Requires-Dist: pytest-mock==3.14.0; extra == "dev"
|
|
20
|
+
Requires-Dist: responses==0.25.7; extra == "dev"
|
|
21
|
+
Requires-Dist: twine==6.1.0; extra == "dev"
|
|
22
|
+
Requires-Dist: jsonschema==4.23.0; extra == "dev"
|
|
23
|
+
Requires-Dist: toposort==1.10; extra == "dev"
|
|
24
|
+
Provides-Extra: azure
|
|
25
|
+
Requires-Dist: azure-identity==1.22.0; extra == "azure"
|
|
26
|
+
Requires-Dist: azure-keyvault==4.2.0; extra == "azure"
|
|
27
|
+
Requires-Dist: azure-storage-blob==12.25.0; extra == "azure"
|
|
28
|
+
Provides-Extra: gc
|
|
29
|
+
Requires-Dist: google-auth==2.40.1; extra == "gc"
|
|
30
|
+
Requires-Dist: google-cloud-storage==3.1.0; extra == "gc"
|
|
31
|
+
Provides-Extra: ibm
|
|
32
|
+
Requires-Dist: boto3==1.38.13; extra == "ibm"
|
|
33
|
+
Requires-Dist: keycloak-client==0.15.4; extra == "ibm"
|
|
34
|
+
Provides-Extra: common
|
|
35
|
+
Requires-Dist: azure-identity==1.22.0; extra == "common"
|
|
36
|
+
Requires-Dist: azure-keyvault==4.2.0; extra == "common"
|
|
37
|
+
Requires-Dist: azure-storage-blob==12.25.0; extra == "common"
|
|
38
|
+
Requires-Dist: google-auth==2.40.1; extra == "common"
|
|
39
|
+
Requires-Dist: google-cloud-storage==3.1.0; extra == "common"
|
|
40
|
+
Requires-Dist: boto3==1.38.12; extra == "common"
|
|
41
|
+
Requires-Dist: keycloak-client==0.15.4; extra == "common"
|
|
42
|
+
Dynamic: license-file
|
|
43
|
+
|
|
44
|
+
# OSDU Python SDK
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
## Contents
|
|
48
|
+
|
|
49
|
+
- [OSDU Python SDK](#osdu-python-sdk)
|
|
50
|
+
- [Contents](#contents)
|
|
51
|
+
- [Introduction](#introduction)
|
|
52
|
+
- [Getting Started](#getting-started)
|
|
53
|
+
- [Installation from source](#installation-from-source)
|
|
54
|
+
- [Installation from Package Registry](#installation-from-package-registry)
|
|
55
|
+
- [Impersonation](#impersonation)
|
|
56
|
+
- [Testing](#testing)
|
|
57
|
+
- [Running E2E Tests](#running-e2e-tests)
|
|
58
|
+
- [Running CSP tests](#running-csp-tests)
|
|
59
|
+
- [Release Notes](#release-notes)
|
|
60
|
+
- [0.28](#028)
|
|
61
|
+
- [0.17](#017)
|
|
62
|
+
- [Licence](#licence)
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
# Introduction
|
|
66
|
+
The Python SDK is a package to interface with OSDU microservices.
|
|
67
|
+
|
|
68
|
+
Interactions with OSDU services are cloud platform-agnostic by design. However, there are specific implementation requirements by cloud
|
|
69
|
+
platforms, and the OSDU R3 Prototype provides a dedicated Python SDK to make sure that interactions are independent from the
|
|
70
|
+
cloud platforms.
|
|
71
|
+
|
|
72
|
+
The Python SDK must be installed on the machine that uses OSDU services.
|
|
73
|
+
|
|
74
|
+
In OSDU R3 Prototype, the SDK encapsulates calls to the ODES Storage and Search services.
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
Also, in `osdu_api.providers` folder the SDK provides common interfaces for writing cloud-specific implementations for authorization and accessing
|
|
78
|
+
cloud storages. In this `osdu_api.providers` folder CSP code is stored.
|
|
79
|
+
|
|
80
|
+
# Getting Started
|
|
81
|
+
|
|
82
|
+
## Installation from source
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
1. Pull the latest Python SDK's changes from https://community.opengroup.org/osdu/platform/system/sdks/common-python-sdk
|
|
86
|
+
|
|
87
|
+
2. Use Python 3.13. Also, it is highly recommended using an isolated virtual environment for development purposes
|
|
88
|
+
(Creation of virtual environments: https://docs.python.org/3.11/library/venv.html)
|
|
89
|
+
|
|
90
|
+
3. Make sure you have setuptools and wheel installed
|
|
91
|
+
```sh
|
|
92
|
+
pip install --upgrade setuptools wheel
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
4. Change directory to the root of PythonSDK project
|
|
96
|
+
|
|
97
|
+
```sh
|
|
98
|
+
cd path/to/python-sdk
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
5. Make sure osdu-api isn't already installed
|
|
102
|
+
```sh
|
|
103
|
+
pip uninstall osdu-api
|
|
104
|
+
````
|
|
105
|
+
|
|
106
|
+
6. Install Python SDK
|
|
107
|
+
|
|
108
|
+
```sh
|
|
109
|
+
pip install '.[common]'
|
|
110
|
+
```
|
|
111
|
+
|
|
112
|
+
Example import after installing:
|
|
113
|
+
`from osdu_api.clients.storage.record_client import RecordClient`
|
|
114
|
+
|
|
115
|
+
|
|
116
|
+
## Installation from Package Registry
|
|
117
|
+
|
|
118
|
+
```sh
|
|
119
|
+
pip install 'osdu-api' --extra-index-url=https://community.opengroup.org/api/v4/projects/148/packages/pypi/simple
|
|
120
|
+
```
|
|
121
|
+
|
|
122
|
+
## Impersonation
|
|
123
|
+
|
|
124
|
+
If client objects are initialized with `client_id` argument then either `x-on-behalf-of` or `on-behalf-of` headers are set. The former header is used by default. The latter is used when the `ENTITLEMENTS_IMPERSONATION` environment variable is "True" or "true"
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
## Testing
|
|
128
|
+
### Running E2E Tests
|
|
129
|
+
Specify of end-services URLs into `tests/osdu_api.yaml` and run
|
|
130
|
+
|
|
131
|
+
```sh
|
|
132
|
+
pip install '.[dev, common]'
|
|
133
|
+
pytest
|
|
134
|
+
```
|
|
135
|
+
|
|
136
|
+
### Running CSP tests
|
|
137
|
+
|
|
138
|
+
```shell
|
|
139
|
+
export CLOUD_PROVIDER=<cloud_provider>
|
|
140
|
+
pip install '.[dev, common]'
|
|
141
|
+
pytest
|
|
142
|
+
```
|
|
143
|
+
|
|
144
|
+
For Google Cloud, you can select the type of token to use: ID token or Access token.
|
|
145
|
+
|
|
146
|
+
You can configure this via the `GC_ID_TOKEN` environment variable. Here's how to set it:
|
|
147
|
+
|
|
148
|
+
- for enabling ID token: 'y', 'yes', 'on', 'true' (case-insensitive)
|
|
149
|
+
- for using Access token: any other value, or don't set the variable at all
|
|
150
|
+
|
|
151
|
+
## Release Notes
|
|
152
|
+
|
|
153
|
+
### 0.29
|
|
154
|
+
|
|
155
|
+
Updated project structure and added support for Python 3.13. Dual publishing to PyPi and OpenGroup package registry.
|
|
156
|
+
|
|
157
|
+
### 0.28
|
|
158
|
+
|
|
159
|
+
From this release verification of SSL certificates is enabled by default. If your environment is using self-signed certificates or a private CA this can be disabled by setting the environment variable
|
|
160
|
+
`OSDU_API_DISABLE_SSL_VERIFICAITON` to **iknowthemaninthemiddle**.
|
|
161
|
+
|
|
162
|
+
### 0.17
|
|
163
|
+
|
|
164
|
+
Starting from this release each particular client class has 2 more optional parameters: `provider` and the corresponding client service URL. This was done in order to make using `osdu_api.ini` file optional. If you are not using **named arguments** in initializing your clients it can break your code since the order of parameters was changed.
|
|
165
|
+
|
|
166
|
+
|
|
167
|
+
## Licence
|
|
168
|
+
Copyright © Amazon Web Services
|
|
169
|
+
Copyright © Google LLC
|
|
170
|
+
Copyright © EPAM Systems
|
|
171
|
+
|
|
172
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
173
|
+
you may not use this file except in compliance with the License.
|
|
174
|
+
You may obtain a copy of the License at
|
|
175
|
+
|
|
176
|
+
[http://www.apache.org/licenses/LICENSE-2.0](http://www.apache.org/licenses/LICENSE-2.0)
|
|
177
|
+
|
|
178
|
+
Unless required by applicable law or agreed to in writing, software
|
|
179
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
180
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
181
|
+
See the License for the specific language governing permissions and
|
|
182
|
+
limitations under the License.
|
|
183
|
+
A package to interface with OSDU microservices
|
|
184
|
+
|
osdu_api-1.0.3/README.md
ADDED
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
# OSDU Python SDK
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Contents
|
|
5
|
+
|
|
6
|
+
- [OSDU Python SDK](#osdu-python-sdk)
|
|
7
|
+
- [Contents](#contents)
|
|
8
|
+
- [Introduction](#introduction)
|
|
9
|
+
- [Getting Started](#getting-started)
|
|
10
|
+
- [Installation from source](#installation-from-source)
|
|
11
|
+
- [Installation from Package Registry](#installation-from-package-registry)
|
|
12
|
+
- [Impersonation](#impersonation)
|
|
13
|
+
- [Testing](#testing)
|
|
14
|
+
- [Running E2E Tests](#running-e2e-tests)
|
|
15
|
+
- [Running CSP tests](#running-csp-tests)
|
|
16
|
+
- [Release Notes](#release-notes)
|
|
17
|
+
- [0.28](#028)
|
|
18
|
+
- [0.17](#017)
|
|
19
|
+
- [Licence](#licence)
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
# Introduction
|
|
23
|
+
The Python SDK is a package to interface with OSDU microservices.
|
|
24
|
+
|
|
25
|
+
Interactions with OSDU services are cloud platform-agnostic by design. However, there are specific implementation requirements by cloud
|
|
26
|
+
platforms, and the OSDU R3 Prototype provides a dedicated Python SDK to make sure that interactions are independent from the
|
|
27
|
+
cloud platforms.
|
|
28
|
+
|
|
29
|
+
The Python SDK must be installed on the machine that uses OSDU services.
|
|
30
|
+
|
|
31
|
+
In OSDU R3 Prototype, the SDK encapsulates calls to the ODES Storage and Search services.
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
Also, in `osdu_api.providers` folder the SDK provides common interfaces for writing cloud-specific implementations for authorization and accessing
|
|
35
|
+
cloud storages. In this `osdu_api.providers` folder CSP code is stored.
|
|
36
|
+
|
|
37
|
+
# Getting Started
|
|
38
|
+
|
|
39
|
+
## Installation from source
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
1. Pull the latest Python SDK's changes from https://community.opengroup.org/osdu/platform/system/sdks/common-python-sdk
|
|
43
|
+
|
|
44
|
+
2. Use Python 3.13. Also, it is highly recommended using an isolated virtual environment for development purposes
|
|
45
|
+
(Creation of virtual environments: https://docs.python.org/3.11/library/venv.html)
|
|
46
|
+
|
|
47
|
+
3. Make sure you have setuptools and wheel installed
|
|
48
|
+
```sh
|
|
49
|
+
pip install --upgrade setuptools wheel
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
4. Change directory to the root of PythonSDK project
|
|
53
|
+
|
|
54
|
+
```sh
|
|
55
|
+
cd path/to/python-sdk
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
5. Make sure osdu-api isn't already installed
|
|
59
|
+
```sh
|
|
60
|
+
pip uninstall osdu-api
|
|
61
|
+
````
|
|
62
|
+
|
|
63
|
+
6. Install Python SDK
|
|
64
|
+
|
|
65
|
+
```sh
|
|
66
|
+
pip install '.[common]'
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
Example import after installing:
|
|
70
|
+
`from osdu_api.clients.storage.record_client import RecordClient`
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
## Installation from Package Registry
|
|
74
|
+
|
|
75
|
+
```sh
|
|
76
|
+
pip install 'osdu-api' --extra-index-url=https://community.opengroup.org/api/v4/projects/148/packages/pypi/simple
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
## Impersonation
|
|
80
|
+
|
|
81
|
+
If client objects are initialized with `client_id` argument then either `x-on-behalf-of` or `on-behalf-of` headers are set. The former header is used by default. The latter is used when the `ENTITLEMENTS_IMPERSONATION` environment variable is "True" or "true"
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
## Testing
|
|
85
|
+
### Running E2E Tests
|
|
86
|
+
Specify of end-services URLs into `tests/osdu_api.yaml` and run
|
|
87
|
+
|
|
88
|
+
```sh
|
|
89
|
+
pip install '.[dev, common]'
|
|
90
|
+
pytest
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
### Running CSP tests
|
|
94
|
+
|
|
95
|
+
```shell
|
|
96
|
+
export CLOUD_PROVIDER=<cloud_provider>
|
|
97
|
+
pip install '.[dev, common]'
|
|
98
|
+
pytest
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
For Google Cloud, you can select the type of token to use: ID token or Access token.
|
|
102
|
+
|
|
103
|
+
You can configure this via the `GC_ID_TOKEN` environment variable. Here's how to set it:
|
|
104
|
+
|
|
105
|
+
- for enabling ID token: 'y', 'yes', 'on', 'true' (case-insensitive)
|
|
106
|
+
- for using Access token: any other value, or don't set the variable at all
|
|
107
|
+
|
|
108
|
+
## Release Notes
|
|
109
|
+
|
|
110
|
+
### 0.29
|
|
111
|
+
|
|
112
|
+
Updated project structure and added support for Python 3.13. Dual publishing to PyPi and OpenGroup package registry.
|
|
113
|
+
|
|
114
|
+
### 0.28
|
|
115
|
+
|
|
116
|
+
From this release verification of SSL certificates is enabled by default. If your environment is using self-signed certificates or a private CA this can be disabled by setting the environment variable
|
|
117
|
+
`OSDU_API_DISABLE_SSL_VERIFICAITON` to **iknowthemaninthemiddle**.
|
|
118
|
+
|
|
119
|
+
### 0.17
|
|
120
|
+
|
|
121
|
+
Starting from this release each particular client class has 2 more optional parameters: `provider` and the corresponding client service URL. This was done in order to make using `osdu_api.ini` file optional. If you are not using **named arguments** in initializing your clients it can break your code since the order of parameters was changed.
|
|
122
|
+
|
|
123
|
+
|
|
124
|
+
## Licence
|
|
125
|
+
Copyright © Amazon Web Services
|
|
126
|
+
Copyright © Google LLC
|
|
127
|
+
Copyright © EPAM Systems
|
|
128
|
+
|
|
129
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
130
|
+
you may not use this file except in compliance with the License.
|
|
131
|
+
You may obtain a copy of the License at
|
|
132
|
+
|
|
133
|
+
[http://www.apache.org/licenses/LICENSE-2.0](http://www.apache.org/licenses/LICENSE-2.0)
|
|
134
|
+
|
|
135
|
+
Unless required by applicable law or agreed to in writing, software
|
|
136
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
137
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
138
|
+
See the License for the specific language governing permissions and
|
|
139
|
+
limitations under the License.
|
|
140
|
+
A package to interface with OSDU microservices
|
|
141
|
+
|
osdu_api-1.0.3/VERSION
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
1.0.3
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["setuptools>=80.4.0", "wheel"]
|
|
3
|
+
build-backend = "setuptools.build_meta"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "osdu_api"
|
|
7
|
+
dynamic = ["version"]
|
|
8
|
+
description = "A package to interface with OSDU microservices"
|
|
9
|
+
readme = "README.md"
|
|
10
|
+
requires-python = ">=3.11"
|
|
11
|
+
license = "Apache-2.0"
|
|
12
|
+
authors = [
|
|
13
|
+
{name = "OSDU team"}
|
|
14
|
+
]
|
|
15
|
+
classifiers = [
|
|
16
|
+
"Programming Language :: Python :: 3",
|
|
17
|
+
"Operating System :: OS Independent"
|
|
18
|
+
]
|
|
19
|
+
|
|
20
|
+
dependencies = [
|
|
21
|
+
"requests>=2.32.3",
|
|
22
|
+
"tenacity>=9.1.2",
|
|
23
|
+
"httpx>=0.28.1",
|
|
24
|
+
]
|
|
25
|
+
|
|
26
|
+
[project.urls]
|
|
27
|
+
Homepage = "https://community.opengroup.org/osdu/platform/system/sdks/common-python-sdk"
|
|
28
|
+
|
|
29
|
+
[project.optional-dependencies]
|
|
30
|
+
dev = [
|
|
31
|
+
"mock==5.2.0",
|
|
32
|
+
"pytest==8.3.5",
|
|
33
|
+
"pytest-mock==3.14.0",
|
|
34
|
+
"responses==0.25.7",
|
|
35
|
+
"twine==6.1.0",
|
|
36
|
+
"jsonschema==4.23.0",
|
|
37
|
+
"toposort==1.10",
|
|
38
|
+
]
|
|
39
|
+
azure = [
|
|
40
|
+
"azure-identity==1.22.0",
|
|
41
|
+
"azure-keyvault==4.2.0",
|
|
42
|
+
"azure-storage-blob==12.25.0",
|
|
43
|
+
]
|
|
44
|
+
gc = [
|
|
45
|
+
"google-auth==2.40.1",
|
|
46
|
+
"google-cloud-storage==3.1.0",
|
|
47
|
+
]
|
|
48
|
+
ibm = [
|
|
49
|
+
"boto3==1.38.13",
|
|
50
|
+
"keycloak-client==0.15.4",
|
|
51
|
+
]
|
|
52
|
+
common = [
|
|
53
|
+
"azure-identity==1.22.0",
|
|
54
|
+
"azure-keyvault==4.2.0",
|
|
55
|
+
"azure-storage-blob==12.25.0",
|
|
56
|
+
"google-auth==2.40.1",
|
|
57
|
+
"google-cloud-storage==3.1.0",
|
|
58
|
+
"boto3==1.38.12",
|
|
59
|
+
"keycloak-client==0.15.4",
|
|
60
|
+
]
|
|
61
|
+
|
|
62
|
+
[tool.setuptools.dynamic]
|
|
63
|
+
version = {attr = "osdu_api.version.prepare_version"}
|
|
64
|
+
|
|
65
|
+
[tool.pylint."messages control"]
|
|
66
|
+
disable = [
|
|
67
|
+
"missing-docstring",
|
|
68
|
+
"line-too-long",
|
|
69
|
+
"too-few-public-methods",
|
|
70
|
+
"fixme",
|
|
71
|
+
]
|
|
72
|
+
|
|
73
|
+
[tool.ruff]
|
|
74
|
+
target-version = "py313"
|
|
75
|
+
src = ["osdu_api"]
|
|
76
|
+
|
|
77
|
+
[tool.ruff.lint]
|
|
78
|
+
select = ["E", "F", "W", "I", "B", "UP"]
|
|
79
|
+
ignore = ["E501"]
|
osdu_api-1.0.3/setup.cfg
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# Copyright 2020 Google LLC
|
|
2
|
+
# Copyright © 2020 Amazon Web Services
|
|
3
|
+
#
|
|
4
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
# you may not use this file except in compliance with the License.
|
|
6
|
+
# You may obtain a copy of the License at
|
|
7
|
+
#
|
|
8
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
#
|
|
10
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
# See the License for the specific language governing permissions and
|
|
14
|
+
# limitations under the License.
|
|
15
|
+
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# Copyright 2020 Google LLC
|
|
2
|
+
# Copyright 2020 EPAM Systems
|
|
3
|
+
#
|
|
4
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
# you may not use this file except in compliance with the License.
|
|
6
|
+
# You may obtain a copy of the License at
|
|
7
|
+
#
|
|
8
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
#
|
|
10
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
# See the License for the specific language governing permissions and
|
|
14
|
+
# limitations under the License.
|
|
15
|
+
|