- Raise an error on `web_server(startup_timeout=0)`, which is an invalid configuration.
0.62
0.62.0
- The `.new()` method has now been deprecated on all Modal objects. It should typically be replaced with `.from_name(...)` in Modal app code, or `.ephemeral()` in scripts that use Modal - Assignment of Modal objects to a `Stub` via subscription (`stub["object"]`) or attribute (`stub.object`) syntax is now deprecated. This syntax was only necessary when using `.new()`.
0.61.104
- Fixed a bug where images based on `micromamba` could fail to build if requesting Python 3.12 when a different version of Python was being used locally.
0.61.76
- The `Sandbox`'s `LogsReader` is now an asynchronous iterable. It supports the `async for` statement to stream data from the sandbox's `stdout/stderr`.
python stub.function() async def my_fn(): sandbox = stub.spawn_sandbox( "bash", "-c", "while true; do echo foo; sleep 1; done" ) async for message in sandbox.stdout: print(f"Message: {message}")
0.61.57
- Add the `web_server` decorator, which exposes a server listening on a container port as a web endpoint.