grai_source_flat_file
loader

load_file

def load_file(file_name: str, file_ext: str) -> pd.DataFrame

Arguments:

  • file_name - The path to the file
  • file_ext - The type of file

Returns:

map_pandas_types

def map_pandas_types(dtype) -> str

Arguments:

dtype:

Returns:

build_column

def build_column(data: pd.Series, namespace: str, table_name: str) -> Column

Arguments:

data (pd.Series): namespace (str): table_name (str):

Returns:

column_builder

def column_builder(namespace: str,
                   table_name: str) -> Callable[[pd.Series], Column]

Arguments:

namespace (str): table_name (str):

Returns:

table_builder

def table_builder(namespace: str, table_name: str,
                  file_location: str) -> Table

Arguments:

namespace (str): table_name (str): file_location (str):

Returns:

build_nodes_and_edges

def build_nodes_and_edges(
        file_ref: str, file_type: str, table_name: str, file_location: str,
        namespace: str) -> Tuple[List[Union[Table, Column]], List[Edge]]

Arguments:

file_ref: file_type: table_name: file_location: namespace (str):

Returns: