eyevinn-python-runner

Namespace

eyevinn-python-runner

Description:
  • Effortlessly deploy your Python web apps with our Docker-based Python Runner! Clone from GitHub or S3, install dependencies, and auto-detect frameworks for seamless app execution. Ideal for FastAPI, Flask, and more!

Author:

Methods

(async, static) createEyevinnPythonRunnerInstance(context, body) → {EyevinnPythonRunner}

Description:
  • Create a new Python Runner instance

Example
import { Context } from '@osaas/client-core';
import { createEyevinnPythonRunnerInstance } from '@osaas/client-services';

const ctx = new Context();
const body: EyevinnPythonRunnerConfig = { name: 'myinstance', ... };
const instance = await createEyevinnPythonRunnerInstance(ctx, body);
console.log(instance.url);
Parameters:
Name Type Description
context Context

Open Source Cloud configuration context

body EyevinnPythonRunnerConfig

Service instance configuration

Returns:
  • Service instance
Type
EyevinnPythonRunner

(async, static) getEyevinnPythonRunnerInstance(context, name) → {EyevinnPythonRunner}

Description:
  • Get a Python Runner instance

Example
import { Context } from '@osaas/client-core';
import { getEyevinnPythonRunnerInstance } from '@osaas/client-services';

const ctx = new Context();
const instance = await getEyevinnPythonRunnerInstance(ctx, 'myinstance');
console.log(instance.url);
Parameters:
Name Type Description
context Context

Open Source Cloud configuration context

name string

Name of the python-runner to be retrieved

Returns:
  • Service instance
Type
EyevinnPythonRunner

(async, static) removeEyevinnPythonRunnerInstance(context, name)

Description:
  • Remove a Python Runner instance

Parameters:
Name Type Description
context Context

Open Source Cloud configuration context

name string

Name of the python-runner to be removed