API

pycrypt package

pycrypt.utils module

pycrypt.utils.split(string)[source]
pycrypt.utils.line_split(string)[source]
pycrypt.utils.array_concat(raw_arrays)[source]

Concats 2d numpy arrays to one big one, lines don’t have to be the same size

pycrypt.utils.plot_array(arr)[source]

Plots binary 2d numpy array

pycrypt.utils.get_frequency(string, freq_alphabet='ABCDEFGHIJKLMNOPQRSTUVWXYZ', ratio=False)[source]

Count frequency of given alphabet, if None, count every char. Set ratio True to divide by length

pycrypt.utils.plot_dict(d)[source]

Plots bar graph of dict (usually used with get_frequency)

pycrypt.utils.pprint_dict(d)[source]

Prints dicts keys and values on top of each other

pycrypt.utils.plot_genetic_log(log)[source]

Plots the max, min and avg fitness of the population

pycrypt.utils.plot_genetic_log_threaded(log)[source]

Plots each island individually

pycrypt.utils.cache(func)[source]

General decorator for function caching, if called with same arguments, it is bypassed

Module contents