pypowerline package

Submodules

pypowerline.colors module

class pypowerline.colors.Color(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)[source]

Bases: Enum

BLACK = 'black'
BLUE = 'blue'
CYAN = 'cyan'
DARK_GREY = 'dark_grey'
GREEN = 'green'
GREY = 'grey'
LIGHT_BLUE = 'light_blue'
LIGHT_CYAN = 'light_cyan'
LIGHT_GREEN = 'light_green'
LIGHT_GREY = 'light_grey'
LIGHT_MAGENTA = 'light_magenta'
LIGHT_RED = 'light_red'
LIGHT_YELLOW = 'light_yellow'
MAGENTA = 'magenta'
RED = 'red'
WHITE = 'white'
YELLOW = 'yellow'
pypowerline.colors.cprint(_text: str, _foreground: Color, _background: Color, _attrs=None)[source]

pypowerline.configs module

All configurations for pypowerline

class pypowerline.configs.ConfigGeneral[source]

Bases: Config

Parameters for configuring the separator

colors = True
icons = True

pypowerline.create_color module

pypowerline.main module

main

pypowerline.main.bash() None[source]
pypowerline.main.dump_symbols() None[source]
pypowerline.main.main()[source]
pypowerline.main.print_config_file() None[source]
pypowerline.main.test() None[source]
pypowerline.main.tmux() None[source]

pypowerline.segments module

class pypowerline.segments.Segment(color: Color | None = None, background: Color | None = None, icon: Symbol | None = None, separator: Symbol | None = Symbol.SEPARATOR, reverse_sep: bool = True)[source]

Bases: ABC

abstract get_text() str[source]

return the text of the segment

class pypowerline.segments.SegmentCwd(color: Color | None = None, background: Color | None = None, icon: Symbol | None = Symbol.FOLDER, separator: Symbol | None = Symbol.SEPARATOR_B, reverse_sep: bool = True, last_only: bool = False, home_as_tilde: bool = True)[source]

Bases: Segment

get_text() str[source]

return the text of the segment

class pypowerline.segments.SegmentForward[source]

Bases: Segment

get_text()[source]

return the text of the segment

class pypowerline.segments.SegmentSpace[source]

Bases: Segment

get_text()[source]

return the text of the segment

pypowerline.static module

version which can be consumed from within the module

pypowerline.symbols module

class pypowerline.symbols.Symbol(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)[source]

Bases: Enum

AHEAD = '⬆'
BAT = '⚡'
BATTERY = '🔌'
BEHIND = '⬇'
BZR = '⭡⃟'
CHANGED = '✎'
CONFLICTED = '✼'
DETACHED = '⚓'
ELLIPSIS = '…'
FOLDER = '🗁'
FOSSIL = '⌲'
GIT = '\ue0a0'
HG = '☿'
LOCK = '\ue0a2'
NEW = '?'
SEPARATOR = '▶'
SEPARATOR_B = '\ue0b0'
SEPARATOR_THIN = '❯'
SEPARATOR_THIN_B = '\ue0b1'
STAGED = '✔'
STASH = '⎘'
SVN = '⑆'
UP = '↑'
VIRTUAL_ENV = '🐍'

pypowerline.utils module

pypowerline.utils.execute_python_file(file_path: str, vals=None)[source]

Module contents