ubernostrum/webcolors
View on GitHub ↗ ★ 176 Python
A library for working with HTML/CSS color formats in Python.
3 mentions on Hacker News by 1 person: 0 stories, 3 comments · first 2014-11-27 · latest 2017-05-10
20082026
-
Depends on the machine. See the comments in the file: https://github.com/ubernostrum/webcolors/blob/master/tests/f... The fun part is people who criticize the generation of the integer triplets; yes, it's three nested loops and that's bad,…
comment by ubernostrum · 2017-05-10 · in The tragedy of 100% code coverage (2016) -
…from the spec interspersed as comments so you can step through it and see what's going on: https://github.com/ubernostrum/webcolors/blob/master/webcolo... Its documentation also covers the history of how colors are specified in HTML/CSS:…
comment by ubernostrum · 2017-04-15 · in Why does HTML think “chucknorris” is a color? -
…something that I'd consider a Python idiom, yes. And it's something I do on occasion. For example: https://github.com/ubernostrum/webcolors/blob/master/webcolo...
comment by ubernostrum · 2014-11-27 · in Python idioms I wish I'd learned earlier