morpheus.common
Module for common utilities and classes in the Morpheus library.
- class FiberQueue
Methods
- close(self: morpheus._lib.common.FiberQueue) → None
- get(self: morpheus._lib.common.FiberQueue, block: bool = True, timeout: float = 0.0) → object
- is_closed(self: morpheus._lib.common.FiberQueue) → bool
- put(self: morpheus._lib.common.FiberQueue, item: object, block: bool = True, timeout: float = 0.0) → None
- class FileTypes
The type of files that the
FileSourceStage
can read andWriteToFileStage
can write. Use ‘auto’ to determine from the file extension.Members:
Auto
JSON
CSV
PARQUET
- Attributes
name
name(self: handle) -> str
- value
- Auto = <FileTypes.Auto: 0>
- CSV = <FileTypes.CSV: 2>
- JSON = <FileTypes.JSON: 1>
- PARQUET = <FileTypes.PARQUET: 3>
- property name
- property value
- class FilterSource
Enum to indicate which source the FilterDetectionsStage should operate on.
Members:
Auto
TENSOR
DATAFRAME
- Attributes
name
name(self: handle) -> str
- value
- Auto = <FilterSource.Auto: 0>
- DATAFRAME = <FilterSource.DATAFRAME: 2>
- TENSOR = <FilterSource.TENSOR: 1>
- property name
- property value
- class HttpEndpoint
- class HttpServer
Methods
is_running
(self)start
(self)stop
(self)- is_running(self: morpheus._lib.common.HttpServer) → bool
- start(self: morpheus._lib.common.HttpServer) → None
- stop(self: morpheus._lib.common.HttpServer) → None
- class IndicatorsFontStyle
Members:
bold
dark
italic
underline
blink
reverse
concealed
crossed
- Attributes
name
name(self: handle) -> str
- value
- blink = <IndicatorsFontStyle.blink: 4>
- bold = <IndicatorsFontStyle.bold: 0>
- concealed = <IndicatorsFontStyle.concealed: 6>
- crossed = <IndicatorsFontStyle.crossed: 7>
- dark = <IndicatorsFontStyle.dark: 1>
- italic = <IndicatorsFontStyle.italic: 2>
- property name
- reverse = <IndicatorsFontStyle.reverse: 5>
- underline = <IndicatorsFontStyle.underline: 3>
- property value
- class IndicatorsTextColor
Members:
grey
red
green
yellow
blue
magenta
cyan
white
unspecified
- Attributes
name
name(self: handle) -> str
- value
- blue = <IndicatorsTextColor.blue: 4>
- cyan = <IndicatorsTextColor.cyan: 6>
- green = <IndicatorsTextColor.green: 2>
- grey = <IndicatorsTextColor.grey: 0>
- magenta = <IndicatorsTextColor.magenta: 5>
- property name
- red = <IndicatorsTextColor.red: 1>
- unspecified = <IndicatorsTextColor.unspecified: 8>
- property value
- white = <IndicatorsTextColor.white: 7>
- yellow = <IndicatorsTextColor.yellow: 3>
- class Tensor
Methods
- static from_cupy(arg0: object) → morpheus._lib.common.Tensor
- to_cupy(self: morpheus._lib.common.Tensor) → object
- class TypeId
Supported Morpheus types
Members:
EMPTY
INT8
INT16
INT32
INT64
UINT8
UINT16
UINT32
UINT64
FLOAT32
FLOAT64
BOOL8
STRING
- Attributes
name
name(self: handle) -> str
- value
- BOOL8 = <TypeId.BOOL8: 11>
- EMPTY = <TypeId.EMPTY: 0>
- FLOAT32 = <TypeId.FLOAT32: 9>
- FLOAT64 = <TypeId.FLOAT64: 10>
- INT16 = <TypeId.INT16: 2>
- INT32 = <TypeId.INT32: 3>
- INT64 = <TypeId.INT64: 4>
- INT8 = <TypeId.INT8: 1>
- STRING = <TypeId.STRING: 12>
- UINT16 = <TypeId.UINT16: 6>
- UINT32 = <TypeId.UINT32: 7>
- UINT64 = <TypeId.UINT64: 8>
- UINT8 = <TypeId.UINT8: 5>
- property name
- property value
- determine_file_type(*args, **kwargs)
Overloaded function.
determine_file_type(filename: str) -> morpheus._lib.common.FileTypes
determine_file_type(filename: os.PathLike) -> morpheus._lib.common.FileTypes
- read_file_to_df(filename: str, file_type: morpheus._lib.common.FileTypes = <FileTypes.Auto: 0>) → object
- typeid_is_fully_supported(arg0: morpheus._lib.common.TypeId) → bool
- typeid_to_numpy_str(arg0: morpheus._lib.common.TypeId) → str
- write_df_to_file(df: object, filename: str, file_type: morpheus._lib.common.FileTypes = <FileTypes.Auto: 0>, **kwargs) → None