MCPcopy Create free account
hub / github.com/cdgriffith/Box / from_csv

Method from_csv

box/box_list.py:824–838  ·  view source on GitHub ↗
(
        cls,
        csv_string: str | None = None,
        filename: str | PathLike | None = None,
        encoding: str = "utf-8",
        errors: str = "strict",
        **kwargs,
    )

Source from the content-addressed store, hash-verified

822
823 @classmethod
824 def from_csv(
825 cls,
826 csv_string: str | None = None,
827 filename: str | PathLike | None = None,
828 encoding: str = "utf-8",
829 errors: str = "strict",
830 **kwargs,
831 ):
832 box_args = {}
833 for arg in list(kwargs.keys()):
834 if arg in BOX_PARAMETERS:
835 box_args[arg] = kwargs.pop(arg)
836
837 data = _from_csv(csv_string=csv_string, filename=filename, encoding=encoding, errors=errors, **kwargs)
838 return cls(data, **box_args)

Callers 4

test_from_csvMethod · 0.80
test_from_csv_kwargsMethod · 0.80
_to_csvFunction · 0.80

Calls 3

_from_csvFunction · 0.90
keysMethod · 0.45
popMethod · 0.45

Tested by 3

test_from_csvMethod · 0.64
test_from_csv_kwargsMethod · 0.64