Skip to content

feat(streams): Streams API#2534

Open
andersfylling wants to merge 7 commits intomasterfrom
andersfylling/cognite-sdk/streams-api
Open

feat(streams): Streams API#2534
andersfylling wants to merge 7 commits intomasterfrom
andersfylling/cognite-sdk/streams-api

Conversation

@andersfylling
Copy link
Copy Markdown
Contributor

@andersfylling andersfylling commented Mar 25, 2026

Summary

Add streams api to sdk.

Example

from cognite.client import CogniteClient
from cognite.client.data_classes.data_modeling.streams import StreamDeleteItem, StreamWrite

client = CogniteClient(...)  # your usual ClientConfig / credentials

external_id = "my_stream"
client.data_modeling.streams.create([StreamWrite(external_id, {"template": {"name": "ImmutableTestStream"}})])
client.data_modeling.streams.list()
client.data_modeling.streams.retrieve(external_id)
client.data_modeling.streams.delete([StreamDeleteItem(external_id)])

This PR does not add the Records API (#2535).

@codecov
Copy link
Copy Markdown

codecov bot commented Mar 26, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 93.48%. Comparing base (ef5ac04) to head (02d53d4).

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2534      +/-   ##
==========================================
+ Coverage   93.43%   93.48%   +0.05%     
==========================================
  Files         478      484       +6     
  Lines       48230    48488     +258     
==========================================
+ Hits        45062    45331     +269     
+ Misses       3168     3157      -11     
Files with missing lines Coverage Δ
cognite/client/_api/streams/__init__.py 100.00% <100.00%> (ø)
cognite/client/_cognite_client.py 92.72% <100.00%> (+0.13%) ⬆️
cognite/client/_sync_api/streams/__init__.py 100.00% <100.00%> (ø)
cognite/client/_sync_cognite_client.py 91.42% <100.00%> (+0.16%) ⬆️
cognite/client/data_classes/__init__.py 100.00% <100.00%> (ø)
cognite/client/data_classes/streams/__init__.py 100.00% <100.00%> (ø)
cognite/client/data_classes/streams/stream.py 100.00% <100.00%> (ø)
cognite/client/testing.py 100.00% <100.00%> (ø)
cognite/client/utils/_url.py 100.00% <ø> (ø)
tests/tests_unit/test_api/test_streams.py 100.00% <100.00%> (ø)
... and 2 more

... and 5 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@andersfylling andersfylling marked this pull request as ready for review March 26, 2026 14:56
@andersfylling andersfylling requested review from a team as code owners March 26, 2026 14:57
@gemini-code-assist

This comment was marked as outdated.

gemini-code-assist[bot]

This comment was marked as outdated.

@andersfylling andersfylling changed the base branch from master to pysdk-release-v8 March 26, 2026 15:15
@andersfylling andersfylling force-pushed the andersfylling/cognite-sdk/streams-api branch from c0ac1ca to b83f313 Compare March 26, 2026 15:15
@andersfylling

This comment was marked as resolved.

gemini-code-assist[bot]

This comment was marked as resolved.

Copy link
Copy Markdown
Contributor

@haakonvt haakonvt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Part 1 of review: cognite/client/_api/streams/__init__.py

@andersfylling andersfylling changed the base branch from pysdk-release-v8 to master March 30, 2026 12:52
@andersfylling andersfylling force-pushed the andersfylling/cognite-sdk/streams-api branch from 1902069 to 02d53d4 Compare March 30, 2026 13:34
@evertoncolling

This comment was marked as resolved.

@andersfylling andersfylling changed the title feat(streams): ILA Streams API feat(streams): Streams API Apr 14, 2026
@andersfylling andersfylling force-pushed the andersfylling/cognite-sdk/streams-api branch from 29a0184 to 6829245 Compare April 14, 2026 11:28
@andersfylling andersfylling force-pushed the andersfylling/cognite-sdk/streams-api branch from c2d5bad to 3225b62 Compare April 14, 2026 13:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants