openbases.main.badges package

Module contents

class openbases.main.badges.Badge(label, name, link=None, color=None, longCache=True, style=None)[source]

Bases: object

get_color()[source]
get_markdown()[source]

return markdown of the badge based on the generated base string

get_style()[source]
get_svg()[source]

return an svg of the badge by retrieving the url

get_url()[source]
set_color(color)[source]
set_label(label)[source]

allow the user to set a custom label (first one on left)

set_name(name)[source]

allow the user to set a custom name (second on right)

set_style(style)[source]