Table of Contents

Class PythonPipe

Namespace
SearchAThing.Sci
Assembly
netcore-sci.dll

Helper to invoke python and retrieve results.

public class PythonPipe : IDisposable
Inheritance
PythonPipe
Implements
Inherited Members

Constructors

PythonPipe(PythonPipeOptions?)

public PythonPipe(PythonPipeOptions? options = null)

Parameters

options PythonPipeOptions

Fields

areInit

public AutoResetEvent areInit

Field Value

AutoResetEvent

Properties

Options

public PythonPipeOptions Options { get; }

Property Value

PythonPipeOptions

Methods

Dispose()

public void Dispose()

Exec(IEnumerable<string>)

exec given code lines

public Task<string> Exec(IEnumerable<string> code_lines)

Parameters

code_lines IEnumerable<string>

Returns

Task<string>

Exec(string)

exec given code ( can contains newlines as read from a file ). Actually only one execution per PythonPipe object is allowed.

public Task<string> Exec(string code)

Parameters

code string

Returns

Task<string>