aistore.sdk.etl.webserver.flask_server
aistore.sdk.etl.webserver.flask_server
Module Contents
Classes
API
Bases: ETLServer
Flask server implementation for ETL transformations. Compatible with environments where Flask is preferred over FastAPI.
Sends the transformed object directly to the specified AIS node (direct_put_url),
eliminating the additional network hop through the original target.
Used only in bucket-to-bucket offline transforms.
Returns: status code, transformed data, length of the transformed data (if any)
Parameters:
The first URL in the ETL pipeline
The transformed data to send
Comma-separated remaining pipeline stages to pass as header
The path of the object.
Stream transformed output directly to the next pipeline stage.
Streaming direct-put with exponential-backoff retry on transient errors.
Manages reader lifecycle internally, reopening the source on each retry (mirrors FastAPIServer._direct_put_stream_with_retry). For PUT requests without FQN, the body is buffered into a BytesIO via get_data() so retries replay the same bytes.
Buffered direct-put with exponential-backoff retry on transient errors.
Get a BinaryIO reader for the request source data.
Parameters:
The object path being processed.
If True, buffer the PUT body into a BytesIO so it can be replayed on retry. If False (default), return request.stream for true constant-memory streaming (no-pipeline path only).