Made to format strings for kivy/kivymd (MIT)
Project description
string2markup
Made to format strings for kivy/kivymd (MIT)
Just download use
pip install string2markup
from string2markup import S2M
print(S2M('haddd').b.u.color((255,255,255,255)))
print(S2M('haddd').b.u.color((255,255,255)))
print(S2M('haddd').b.u.color((1,1,1)))
print(S2M('haddd').b.u.color('#ffffff').sub.s.size(12))
output:
[color=#ffffff][u][b]haddd[/b][/u][/color]
[color=#ffffff][u][b]haddd[/b][/u][/color]
[color=#ffffff][u][b]haddd[/b][/u][/color]
[size=12][s][sub][color=#ffffff][u][b]haddd[/b][/u][/color][/sub][/s][/size]
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
string2markup-0.0.1.tar.gz
(2.8 kB
view hashes)
Built Distribution
Close
Hashes for string2markup-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7e5d5044fe4afb5716550d1cdbfc79f8b96704a9e787183616533bcb50dc65c0 |
|
MD5 | 141ad04572e94ee707d8ead3b52b88ac |
|
BLAKE2b-256 | 3dfcd02fc8c7d9a3d33d474453e4f530228ddeb46b5d2acddc96687067fe126c |