Repository navigation
feat: add first-class Python resource bindings - #677
Merged
alongubkin merged 15 commits intoSep 23, 2026
Merged
Conversation
|
Enclave skipped this draft pull request. It will run automatically when you mark the PR as Ready for review. |
…rst-class-python-resource-bindings # Conflicts: # packages/core/src/generated/schemas/sandbox.json
alongubkin
marked this pull request as ready for review
September 21, 2026 06:48
|
…rst-class-python-resource-bindings
Member
Author
|
@greptileai review |
Member
Author
|
@greptileai review |
Member
Author
|
@greptileai review |
Promote the exact wheels built by stable release qualification with OIDC authentication and checksum verification.
Member
Author
|
@greptileai review |
alongubkin
deleted the
alon/alien-910-add-first-class-python-resource-bindings
branch
September 23, 2026 15:00
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.
Python applications currently need provider-specific parsing or a companion process to consume Alien resources. This adds an async, typed
alienplatformpackage backed by the existing Rust binding core, so Python workloads inherit the same provider selection, workload identity, credential refresh, and structured errors as other SDKs.The package covers Storage, Queue, Vault, KV, Key, Postgres, AI, Container, Worker, and Sandbox. It includes SQLAlchemy/Postgres TLS helpers, redacted connection objects, an all-resource example, and unpublished ABI3 wheel artifacts for macOS and Linux.
Storage now exposes optional reads and atomic create-only writes in Python, plus the same create condition in the TypeScript binding. Concurrent writers use the provider-neutral object-store precondition; exactly one creates the object and conflicts return the stable
STORAGE_OBJECT_ALREADY_EXISTSerror without leaking provider details.Python Container resources can now build directly from
pyproject.tomlanduv.lockwith an explicit argv and optional uv workspace package. Prerelease builds can pass a target wheel throughALIEN_PYTHON_SDK_WHEEL; Alien stages it with a separate BuildKit context, includes its bytes in the artifact cache key, and does not require the application to commit the wheel. Worker and Daemon Python source builds fail clearly until their runtime adapters exist.Validation:
cargo check -p alien-bindings-python --no-default-features --features localcargo clippy -p alien-bindings-python --no-default-features --features local --no-deps -- -D warningscargo clippy -p alien-bindings-node --lib --no-default-features --no-deps -- -D warningscargo fmt -p alien-bindings-python --checkpytest -q crates/alien-bindings-python/tests(10 passed)mypy crates/alien-bindings-python/python crates/alien-bindings-python/testsruff check crates/alien-bindings-python/python crates/alien-bindings-python/testspnpm --filter @alienplatform/bindings test:ts, build, and tests (129 passed against the rebuilt native addon)cargo test -p alien-build --lib(129 passed, 1 Docker/BuildKit secret test ignored)pnpm --filter @alienplatform/core test(94 passed) andtest:tspnpm --filter @alienplatform/core generateexamples/python-containerfor Linux ARM; the exact OCI image loaded and servedalienplatform: readyLinear: ALIEN-910, ALIEN-939
No package is published by this PR. The complete all-resource example still needs a cloud run, so the PR remains a draft.