Skip to content

python(feat): udf resource - #793

Merged
brandonshippy-sift merged 9 commits into
mainfrom
python/udf-resource
Sep 26, 2026
Merged

brandonshippy-sift merged 9 commits into
mainfrom
python/udf-resource

Conversation

@brandonshippy-sift

@brandonshippy-sift brandonshippy-sift commented Sep 17, 2026 •

Copy link
Copy Markdown
Contributor

Description

Adds a user-defined functions resource to sift_client. A function is a reusable, versioned expression that calculated channels and rules call by name.

Implements UserDefinedFunction, UserDefinedFunctionVersion and the clases and enums that go with it. get, list_, find, create, update, validate_expression, get_where_used, archive/unarchive

Validation

  • End to End testing with manual script written to test each new API feature.
  • Verified against a local stack, including a calculated channel and a rule that call a function by name

@github-actions

github-actions Bot commented Sep 17, 2026 •

Copy link
Copy Markdown
Contributor

Python docs preview: https://sift-stack.github.io/sift/python/pr-793/

Deployed from 1827aee. The link may take up to a minute to become live as GitHub Pages propagates.

@brandonshippy-sift
brandonshippy-sift marked this pull request as ready for review September 17, 2026 22:13
Comment thread python/lib/sift_client/resources/user_defined_functions.py Outdated
Comment thread python/lib/sift_client/sift_types/user_defined_function.py Outdated
Comment thread python/lib/sift_client/resources/user_defined_functions.py Outdated
Comment thread python/lib/sift_client/_internal/low_level_wrappers/user_defined_functions.py Outdated
Comment thread python/lib/sift_client/resources/user_defined_functions.py Outdated
Comment thread python/lib/sift_client/resources/user_defined_functions.py Outdated
Comment thread python/lib/sift_client/resources/user_defined_functions.py Outdated
Comment thread python/lib/sift_client/resources/user_defined_functions.py Outdated
Comment thread python/lib/sift_client/resources/user_defined_functions.py Outdated
Comment thread python/lib/sift_client/resources/user_defined_functions.py Outdated
Comment thread python/lib/sift_client/resources/user_defined_functions.py Outdated
Comment thread python/lib/sift_client/sift_types/user_defined_function.py Outdated
Comment thread python/lib/sift_client/sift_types/user_defined_function.py Outdated
Comment thread python/lib/sift_client/sift_types/user_defined_function.py Outdated
Comment thread python/lib/sift_client/sift_types/user_defined_function.py
Comment thread python/lib/sift_client/sift_types/user_defined_function.py Outdated
Comment thread python/lib/sift_client/sift_types/user_defined_function.py Outdated
Comment thread python/lib/sift_client/sift_types/user_defined_function.py Outdated
Comment thread python/lib/sift_client/sift_types/user_defined_function.py Outdated

@alexluck-sift alexluck-sift left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Three comments. The type split reads much better.

Comment thread python/lib/sift_client/sift_types/user_defined_function.py
Comment thread python/lib/sift_client/sift_types/user_defined_function.py
Comment thread python/lib/sift_client/sift_types/user_defined_function.py Outdated
alexluck-sift
alexluck-sift previously approved these changes Sep 26, 2026

@wei-sift wei-sift left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

lgtm

@brandonshippy-sift
brandonshippy-sift merged commit 4f22597 into main Sep 26, 2026
26 checks passed
@brandonshippy-sift
brandonshippy-sift deleted the python/udf-resource branch September 26, 2026 02:02
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