morpheus.common
Module for common utilities and classes in the Morpheus library.
- class FiberQueue
Methods
<a href="#morpheus.common.FiberQueue.close">close</a>
(self)<a href="#morpheus.common.FiberQueue.get">get</a>
(self[, block, timeout])<a href="#morpheus.common.FiberQueue.is_closed">is_closed</a>
(self)<a href="#morpheus.common.FiberQueue.put">put</a>
(self, item[, block, timeout])- 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
<a href="#morpheus.common.FileTypes.name">name</a>
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
<a href="#morpheus.common.FilterSource.name">name</a>
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
<a href="#morpheus.common.HttpServer.is_running">is_running</a>
(self)<a href="#morpheus.common.HttpServer.start">start</a>
(self)<a href="#morpheus.common.HttpServer.stop">stop</a>
(self)- is_running(self: morpheus._lib.common.HttpServer) → bool
- start(self: morpheus._lib.common.HttpServer) → None
- stop(self: morpheus._lib.common.HttpServer) → None
- class Tensor
Methods
<a href="#morpheus.common.Tensor.from_cupy">from_cupy</a>
(arg0)<a href="#morpheus.common.Tensor.to_cupy">to_cupy</a>
(self)- 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
<a href="#morpheus.common.TypeId.name">name</a>
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