rex.utilities.parse_keys.parse_keys

parse_keys(keys)[source]

Parse keys for complex __getitem__ and __setitem__

Parameters:

keys (string | tuple) – key or key and slice to extract

Returns:

  • key (string) – key to extract

  • key_slice (slice | tuple) – Slice or tuple of slices of key to extract