v0.0.80rc2 - Workspace Link API & Image Encoders
This release candidate adds convenience methods for serving dynamic content and in-memory images.
New Features
Workspace.link() Method
Link callables to URL paths for serving dynamic content:
Features:
- Follows
os.link(src, dst)convention: source first, destination second - Auto-detects content-type from
MIME_TYPES(.jpg→image/jpeg) - Optional request parameter via signature inspection
- Supports bytes, dict/list (JSON), Blob, and string return types
Image Encoders
New encoder utilities for serving in-memory images:
Images should be numpy arrays or torch tensors with values in [0, 1] range.
Custom MIME Types
MIME_TYPES is now a MimeTypes class with a guess() method: