fontawesome-fonts/trademarks.py

28 lines
738 B
Python
Raw Normal View History

2016-05-05 08:54:22 +00:00
#! /usr/bin/python
# Small and dirty script to create the README-Trademarks.txt file. This file
# has to be created by scratch at every release. To do so, use:
# ./trademarks.py > README-Trademarks.txt
2020-07-05 13:34:21 +00:00
import requests
2016-05-05 08:54:22 +00:00
2020-07-05 13:34:21 +00:00
response = requests.get('https://raw.githubusercontent.com/FortAwesome/Font-Awesome/master/metadata/icons.json')
icons = response.json()
2016-05-05 08:54:22 +00:00
brands = []
2020-07-05 13:34:21 +00:00
for name in icons:
if 'brands' in icons[name]['styles']:
brands.append(name)
2016-05-05 08:54:22 +00:00
brands.sort()
out = 'Brand icons may be subject to trademark and brand guidelines of their\n'
out+= 'respective owners. Always check before deploying other companies\' branding.\n'
out+= '\n'
out+= 'Brand Icons:'
for brand in brands:
out+= '\n * fa-' + brand
2020-07-05 13:34:21 +00:00
print(out)