ai-stream-proxy-sdk
Import name stays ai_stream_proxy.
Install
uv sync
Test
uv run pytest
Build
uv build
Publish
uv publish --token <pypi-token>
Sync usage
from ai_stream_proxy import StreamProxyClient
client = StreamProxyClient(server_url="http://127.0.0.1:3000")
client.create_stream(
stream_id="test",
message_id="message-1",
content_type="claude-code-stream-json+include-partial-messages",
)
with client.new_stream(stream_id="test") as stream:
stream.enqueue(b'{"type":"chunk"}\n')
stream.finish(abort=False, reason="done")
message = client.get_stream_message(stream_id="test")
client.delete_stream(stream_id="test")
client.close()
Async usage
import asyncio
from ai_stream_proxy import AsyncStreamProxyClient
async def main() -> None:
client = AsyncStreamProxyClient(server_url="http://127.0.0.1:3000")
await client.create_stream(
stream_id="test",
message_id="message-1",
content_type="claude-code-stream-json+include-partial-messages",
)
async with client.new_stream(stream_id="test") as stream:
stream.enqueue(b'{"type":"chunk"}\n')
stream.finish(abort=False, reason="done")
message = await client.get_stream_message(stream_id="test")
await client.delete_stream(stream_id="test")
await client.aclose()
asyncio.run(main())
Metadata
Release files for ai-stream-proxy-sdk 0.2.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| ai_stream_proxy_sdk-0.2.3.tar.gz | 3.9 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ai_stream_proxy_sdk-0.2.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 11.2 kB
Release files / ai_stream_proxy_sdk-0.2.3.tar.gz
| Download URL | ai_stream_proxy_sdk-0.2.3.tar.gz |
|---|---|
| Size | 3.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d3f6cef63e9d91565c5ed77875af429036358a36909d89898883c1b96084272d
|
|
BLAKE2b-256 checksum How to use checksums |
713a640c7b15b651a6a93e054997ab63a00968057bb7036a3f3fb84b97be7247
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.8.13
|
Release files / ai_stream_proxy_sdk-0.2.3-py3-none-any.whl
| Download URL | ai_stream_proxy_sdk-0.2.3-py3-none-any.whl |
|---|---|
| Size | 7.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1419bd403401a20fc37eba8651ca5fd9aa79d211e759155adad1538a3f8517c2
|
|
BLAKE2b-256 checksum How to use checksums |
4678f4190320bc15d50154004df9bdf20736dff882b9e80af2584f6b11d1ed6f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.8.13
|
Security for ai-stream-proxy-sdk 0.2.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.