mirror of
https://github.com/jongracecox/anybadge.git
synced 2025-09-04 23:20:07 +02:00
16 lines
338 B
Python
Executable File
16 lines
338 B
Python
Executable File
#!/usr/bin/python
|
|
"""
|
|
anybadge test module.
|
|
"""
|
|
|
|
import anybadge
|
|
|
|
if __name__ == '__main__':
|
|
|
|
thresholds={2: 'red', 4: 'orange', 6: 'green', 8: 'brightgreen'}
|
|
|
|
badge = anybadge.Badge('test', '2.22', value_suffix='%',
|
|
thresholds=thresholds, text_color='#010101,#101010')
|
|
|
|
print(badge.badge_svg_text)
|