cognitedata / cognite-sdk-python

Cognite Python SDK
https://cognite-sdk-python.readthedocs-hosted.com/
Apache License 2.0
77 stars 27 forks source link

Typed nodes and edges #1820

Closed doctrino closed 3 months ago

doctrino commented 4 months ago

Description

Please describe the change you have made.

Checklist:

erlendvollset commented 4 months ago

Would be great with an example in the docs aswell!

codecov[bot] commented 3 months ago

Codecov Report

Attention: Patch coverage is 90.93750% with 29 lines in your changes missing coverage. Please review.

Project coverage is 92.75%. Comparing base (0ab6dd0) to head (ffe90fc).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #1820 +/- ## ========================================== + Coverage 92.68% 92.75% +0.06% ========================================== Files 121 122 +1 Lines 17950 18188 +238 ========================================== + Hits 16637 16870 +233 - Misses 1313 1318 +5 ``` | [Files](https://app.codecov.io/gh/cognitedata/cognite-sdk-python/pull/1820?dropdown=coverage&src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=cognitedata) | Coverage Δ | | |---|---|---| | [cognite/client/\_version.py](https://app.codecov.io/gh/cognitedata/cognite-sdk-python/pull/1820?src=pr&el=tree&filepath=cognite%2Fclient%2F_version.py&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=cognitedata#diff-Y29nbml0ZS9jbGllbnQvX3ZlcnNpb24ucHk=) | `100.00% <100.00%> (ø)` | | | [...nite/client/data\_classes/data\_modeling/\_\_init\_\_.py](https://app.codecov.io/gh/cognitedata/cognite-sdk-python/pull/1820?src=pr&el=tree&filepath=cognite%2Fclient%2Fdata_classes%2Fdata_modeling%2F__init__.py&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=cognitedata#diff-Y29nbml0ZS9jbGllbnQvZGF0YV9jbGFzc2VzL2RhdGFfbW9kZWxpbmcvX19pbml0X18ucHk=) | `100.00% <100.00%> (ø)` | | | [cognite/client/data\_classes/data\_modeling/core.py](https://app.codecov.io/gh/cognitedata/cognite-sdk-python/pull/1820?src=pr&el=tree&filepath=cognite%2Fclient%2Fdata_classes%2Fdata_modeling%2Fcore.py&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=cognitedata#diff-Y29nbml0ZS9jbGllbnQvZGF0YV9jbGFzc2VzL2RhdGFfbW9kZWxpbmcvY29yZS5weQ==) | `78.78% <100.00%> (+10.55%)` | :arrow_up: | | [...te/client/data\_classes/data\_modeling/data\_types.py](https://app.codecov.io/gh/cognitedata/cognite-sdk-python/pull/1820?src=pr&el=tree&filepath=cognite%2Fclient%2Fdata_classes%2Fdata_modeling%2Fdata_types.py&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=cognitedata#diff-Y29nbml0ZS9jbGllbnQvZGF0YV9jbGFzc2VzL2RhdGFfbW9kZWxpbmcvZGF0YV90eXBlcy5weQ==) | `96.89% <100.00%> (+0.03%)` | :arrow_up: | | [...ite/client/data\_classes/data\_modeling/instances.py](https://app.codecov.io/gh/cognitedata/cognite-sdk-python/pull/1820?src=pr&el=tree&filepath=cognite%2Fclient%2Fdata_classes%2Fdata_modeling%2Finstances.py&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=cognitedata#diff-Y29nbml0ZS9jbGllbnQvZGF0YV9jbGFzc2VzL2RhdGFfbW9kZWxpbmcvaW5zdGFuY2VzLnB5) | `92.93% <96.72%> (-0.09%)` | :arrow_down: | | [...ient/data\_classes/data\_modeling/typed\_instances.py](https://app.codecov.io/gh/cognitedata/cognite-sdk-python/pull/1820?src=pr&el=tree&filepath=cognite%2Fclient%2Fdata_classes%2Fdata_modeling%2Ftyped_instances.py&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=cognitedata#diff-Y29nbml0ZS9jbGllbnQvZGF0YV9jbGFzc2VzL2RhdGFfbW9kZWxpbmcvdHlwZWRfaW5zdGFuY2VzLnB5) | `91.92% <91.92%> (ø)` | | | [cognite/client/\_api/data\_modeling/instances.py](https://app.codecov.io/gh/cognitedata/cognite-sdk-python/pull/1820?src=pr&el=tree&filepath=cognite%2Fclient%2F_api%2Fdata_modeling%2Finstances.py&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=cognitedata#diff-Y29nbml0ZS9jbGllbnQvX2FwaS9kYXRhX21vZGVsaW5nL2luc3RhbmNlcy5weQ==) | `87.76% <84.78%> (+0.83%)` | :arrow_up: | ... and [3 files with indirect coverage changes](https://app.codecov.io/gh/cognitedata/cognite-sdk-python/pull/1820/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=cognitedata)