mirror of
https://github.com/braver/programmingfonts.git
synced 2024-10-02 00:01:34 +02:00
15 lines
418 B
Python
15 lines
418 B
Python
import json
|
|
|
|
TEMPLATE = "- [{name}]({url}) _{license}_ ([view](https://www.programmingfonts.org/#{key}))"
|
|
|
|
with open('fonts.json') as user_file:
|
|
file_contents = user_file.read()
|
|
|
|
data = json.loads(file_contents)
|
|
for key in data:
|
|
print(TEMPLATE.format(
|
|
key=key,
|
|
name=data[key]['name'],
|
|
url=data[key]['website'],
|
|
license=data[key].get('license', '')))
|