Skip to content

Add native async/await support - #47

Merged
aezell merged 1 commit into
mainfrom
alex/native-async-support
Sep 2, 2026
Merged

Add native async/await support#47
aezell merged 1 commit into
mainfrom
alex/native-async-support

Conversation

@aezell

@aezell aezell commented Sep 1, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • add AsyncSpritesClient with native async lifecycle, filesystem, command, checkpoint, service, session, and network-policy operations
  • share command state and pure path behavior between sync and async implementations
  • scope multiplexed control pools by client and event loop, close them from aclose(), and prune closed-loop entries
  • preserve and test the completed exit status on synchronous Cmd instances

User impact

Async applications such as FastAPI services can use sprites-py without blocking their event loop or routing calls through asyncio.to_thread(). Existing synchronous APIs remain available and behavior-compatible, with Cmd.exit_code now correctly reporting the completed status.

Closes #23.

Verification

  • python -m ruff check src tests
  • python -m ruff format --check src tests
  • python -m mypy src
  • python -m pytest -q (118 passed)
  • python -m build

Deployment

No service deployment is required. This is a library-only change and can ship through the normal sprites-py PyPI release process.

@aezell
aezell merged commit ea25881 into main Sep 2, 2026
5 checks passed
@aezell
aezell deleted the alex/native-async-support branch September 2, 2026 16:12
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.

[Feature Request] Native async/await support for sprites-py

1 participant