octomachinery.github.models.utils module#

A collection of utility functions helping with models.

class octomachinery.github.models.utils.SecretStr[source]#

Bases: str

String that censors its __repr__ if called from another repr.

class octomachinery.github.models.utils.SuperSecretStr[source]#

Bases: SecretStr

String that always censors its __repr__.

octomachinery.github.models.utils.convert_datetime(datetime_obj) datetime[source]#
octomachinery.github.models.utils.convert_datetime(date_unixtime: int) datetime
octomachinery.github.models.utils.convert_datetime(date_string: str) datetime

Convert arbitrary object into a datetime instance.