Unicode Utilities

Unicode based utilites

class UnicodeProgressBar[source]

A Progress bar generator using Unicode characters.

Parameters
  • total (int) – The total length of the progress bar., default is 5.

  • style (str) – The style of the progress bar., default is “squares”.

get()[source]

Return the progress bar at a specific count.

Parameters

count (int) – The count of the progress bar.

Returns

The progress bar at the given count.

Return type

str

class Unicodex[source]

Unicode based utilites

static num2emojis()[source]

Convert a number into a sequence of dicord emojis.

Parameters

number (Union[str, int]) – The number to convert.

Returns

The sequence of emojis.

Return type

str

classmethod format_streak()[source]

Format a streak for display.

Parameters
  • streak (int) – The streak value.

  • mode (str) – The mode of the streak., default is daily.

Returns

The formatted streak.

Return type

Tuple[str, str]