rikai.internal package

Submodules

rikai.internal.reflection module

Helper functions for python reflections.

rikai.internal.reflection.find_class(class_name: str)
rikai.internal.reflection.find_func(func_name: str)

Assuming x.y.z.name as func_name Try from x.y import z; z.name first, and then from x.y.z import name

rikai.internal.reflection.has_func(func_name: str) bool

Assuming x.y.z.name as func_name, Check if from x.y import z; z.name or from x.y.z import name works

rikai.internal.uri_utils module

rikai.internal.uri_utils.normalize_uri(uri: Union[str, Path]) str

Normalize URI

Convert a file path with “file://” schema. Convert an relative path to absolute path

Parameters

uri (str or Path) –

Returns

Normalized URI with schema

Return type

str

rikai.internal.uri_utils.uri_equal(uri1: str, uri2: str) bool

Return True if two URIs are equal.

Module contents

For intenral us only.