Skip to content

Add duplex stream API contract#18

Merged
iancharest merged 1 commit into
mainfrom
codex/duplex-stream-support
Jun 12, 2026
Merged

Add duplex stream API contract#18
iancharest merged 1 commit into
mainfrom
codex/duplex-stream-support

Conversation

@iancharest

Copy link
Copy Markdown
Contributor

Summary

  • Add DuplexStreamConfig, DuplexStreamStats, and public DuplexStream.
  • Add backend-level open_duplex_stream() instead of composing separate input/output streams.
  • Reuse blocking read/write helper internals for duplex streams.
  • Document the backend-level synchronization requirement.
  • Mark native duplex support as not implemented yet.

Validation

  • PYTHONPATH=src python3 -m unittest discover -s tests
  • python3 -m compileall -q src tests examples

Note: local python3 -m mypy src was not run because mypy is not installed in the active Python environment.

Starts #4.

@iancharest iancharest merged commit fccc238 into main Jun 12, 2026
10 checks passed
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.

1 participant