Skip to content

utils

Classes:

Attributes:

log_color module-attribute

log_color = {0: '\x1b[0m', 10: '\x1b[33m', 20: '\x1b[32m', 30: '\x1b[33m', 40: '\x1b[31m', 50: '\x1b[35m'}

logger_level module-attribute

logger_level = int(getenv('LOG_LEVEL', 50))

Signature

Signature(size: int)

Methods:

Attributes:

__bits instance-attribute

__bits = bitarray(size)

__flipped instance-attribute

__flipped = False

__slots__ class-attribute instance-attribute

__slots__ = ['__bits', '__flipped']

was_flipped property

was_flipped

clear

clear()

clear_bit

clear_bit(index: int)

copy

copy() -> Signature

flip

flip()

get_bits

get_bits()

matches

matches(other_signature: Signature)

set

set(index, value: bool)

test

test(index: int)