utils

utils#

Shared utility classes and functions.

Functions

comma_sep_repr

Join items with commas and repr.

comma_sep_str

Join items with commas and str.

deser_it

Deserialize an iterable of deserializable objects.

ser_it

Serialize an iterable of serializable objects.

Classes

BiMap

Bidirectional map backed by two dictionaries, between left types L and right types R.

DeserCollection

Protocol for deserializable objects.

SerCollection

Protocol for serializable objects.

Exceptions

NotBijection

Initial map is not a bijection.