Skip to content

feat(python): add message_expiry parameter to create_topic#2671

Merged
hubcio merged 1 commit intomasterfrom
python-create-topic-expiry
Feb 4, 2026
Merged

feat(python): add message_expiry parameter to create_topic#2671
hubcio merged 1 commit intomasterfrom
python-create-topic-expiry

Conversation

@hubcio
Copy link
Contributor

@hubcio hubcio commented Feb 3, 2026

The Python SDK's create_topic method lacked the ability to set message
expiration, forcing users to rely on server defaults with no override.

Add optional message_expiry parameter accepting datetime.timedelta.
When provided, converts to IggyExpiry::ExpireDuration; otherwise uses
ServerDefault to inherit from server configuration.

Also introduces version sync tooling between Cargo.toml and
pyproject.toml with CI check and pre-commit hook that auto-fixes
by promoting to the newer version + adds precommit hook for
python formatter.

spetz
spetz previously approved these changes Feb 3, 2026
mmodzelewski
mmodzelewski previously approved these changes Feb 3, 2026
@hubcio hubcio dismissed stale reviews from mmodzelewski and spetz via 40fd147 February 3, 2026 13:39
@hubcio hubcio force-pushed the python-create-topic-expiry branch 2 times, most recently from 40fd147 to 294c058 Compare February 3, 2026 13:43
@hubcio hubcio force-pushed the python-create-topic-expiry branch from 294c058 to a1fbce8 Compare February 4, 2026 08:28
The Python SDK's create_topic method lacked the ability to set message
expiration, forcing users to rely on server defaults with no override.

Add optional message_expiry parameter accepting datetime.timedelta.
When provided, converts to IggyExpiry::ExpireDuration; otherwise uses
ServerDefault to inherit from server configuration.

Also introduces version sync tooling between Cargo.toml and
pyproject.toml with CI check and pre-commit hook that auto-fixes
by promoting to the newer version.
@hubcio hubcio force-pushed the python-create-topic-expiry branch from a1fbce8 to d4dd46b Compare February 4, 2026 08:31
@hubcio hubcio merged commit 75a3f40 into master Feb 4, 2026
56 checks passed
@hubcio hubcio deleted the python-create-topic-expiry branch February 4, 2026 08:45
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.

4 participants