Table Of Contents
Table Of Contents

gluonts.shell.serve package

class gluonts.shell.serve.Application(app, config)[source]

Bases: gunicorn.app.base.BaseApplication

init(parser, opts, args)[source]
load() → flask.app.Flask[source]
load_config() → None[source]

This method is used to load the configuration from one or several input(s). Custom Command line, configuration file. You have to override this method in your class.

stop(*args, **kwargs)[source]
class gluonts.shell.serve.Settings[source]

Bases: pydantic.env_settings.BaseSettings

class Config[source]

Bases: object

env_prefix = ''
number_of_workers
sagemaker_server_bind
gluonts.shell.serve.make_gunicorn_app(env: gluonts.shell.sagemaker.ServeEnv, forecaster_type: Optional[Type[Union[gluonts.model.estimator.Estimator, gluonts.model.predictor.Predictor]]], settings: gluonts.shell.serve.Settings) → gluonts.shell.serve.Application[source]