pocketutils.core

Submodules

Package Contents

class pocketutils.core.Sentinel

A sentinel value tied to nothing more than a memory address.

class pocketutils.core.DictNamespace(/, **kwargs)

Behaves like a dict and a SimpleNamespace. This means it has a length, can be iterated over, etc., and can be accessed via ..

class pocketutils.core.frozenlist(items: Iterable[T])

An immutable sequence backed by a list. The sole advantage over a tuple is the list-like __str__ with square brackets, which may be less confusing to a user.

class pocketutils.core.OptRow(row)

Short for ‘optional row’. A wrapper around a NamedTuple that returns None if the key doesn’t exist. This is intended for Pandas itertuples().