Skip to content

[python sdk] Add functions related to stream management #3520

Description

@slbotbm

Description

The Python SDK currently exposes only create_stream(name) and get_stream(stream_id) for stream management, while the Rust SDK also supports listing, updating, deleting, and purging streams.

The missing functions are get_streams, update_streams, delete_stream, and purge_stream. These asynchronous functions should be added to foreign/python/src/client.rs, wrapping the underlying rust sdk function using PyO3.

These should be tested end-to-end extensively, and the tests should be added to foreign/python/tests/test_stream.py.

The stubs in apache_iggy.pyi should be properly generated without any mangling.

Before opening a PR, please ensure that all pre-commit hooks pass.

Affected area / component

Python SDK

Proposed solution

N/A

Alternatives considered

N/A

Contribution

  • I'm willing to submit a pull request to implement this feature

Good first issue

  • I think this could be a good first issue for a new contributor

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issueGood for newcomerspythonPull requests that update Python code

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions