Repository navigation
python(feat): add artifacts resource - #845
Merged
Merged
Conversation
Contributor
|
Python docs preview: https://sift-stack.github.io/sift/python/pr-845/ Deployed from |
alexluck-sift
force-pushed
the
al/feat/sift-client-artifacts-resource
branch
from
October 19, 2026 23:05
049b7cc to
d1ed97b
Compare
alexluck-sift
force-pushed
the
al/feat/sift-client-artifacts-resource
branch
from
October 19, 2026 23:37
d1ed97b to
917a606
Compare
alexluck-sift
marked this pull request as ready for review
October 19, 2026 23:41
alexluck-sift
force-pushed
the
al/feat/sift-client-artifacts-resource
branch
from
October 19, 2026 23:49
917a606 to
6853bb6
Compare
alexluck-sift
force-pushed
the
al/feat/sift-client-artifacts-resource
branch
3 times, most recently
from
October 20, 2026 00:17
c76b74a to
489108e
Compare
alexluck-sift
force-pushed
the
al/feat/sift-client-artifacts-resource
branch
from
October 20, 2026 00:25
489108e to
a424ec9
Compare
wei-sift
reviewed
Oct 20, 2026
wei-sift
self-requested a review
October 20, 2026 00:44
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds
client.artifactsandclient.async_.artifactsover the publicArtifactService, focused on reading: find artifacts by the runs and assets they link to, browse version history throughclient.artifacts.versions, and read any version's file to disk or into memory.list_andversions.list_take the same filters: titles, IDs, creator, creation time, metadata, and file name, plus link filters that take objects:sources=[run, asset](SOURCE),derived_from=[artifact](DERIVED_FROM), andrelated_to=[...](any relation).filter_querytakes the service's CEL for anything narrower, for exampleruns.exists(r, r.relation == "SOURCE" && r.name.contains("thermal")).read_bytesreturns a version's file in memory;downloadwrites it to a path.UploadLowLevelClient.upload_attachmenttakes its file assource(waspath) and now also accepts an open binary file plusfile_name. In-repo callers are updated; path uploads behave as before.Verification
integration-marked tests in_tests/resources/test_artifacts.pycover the end-to-end flow.