kragniz/json-sempai
View on GitHub ↗ ★ 1,241 Python
Use JSON files as if they are python modules
6 mentions on Hacker News by 5 people: 2 stories, 4 comments · first 2015-01-02 · latest 2016-02-21
20082026
-
…I was thinking "css-sempai" where the CSS file is imported like a Python or JS Module, like here https://github.com/kragniz/json-sempai/ — but for CSS... So like: >>> from csssempai import magic >>> import stylesheet >>> stylesheet <module…
comment by despinozist · 2016-02-21 · in Descartes – An experimental library for writing CSS in JavaScript -
…https://www.python.org/dev/peps/pep-0302/ You can see the import hook added here: https://github.com/kragniz/json-sempai/blob/master/jsonsempa... Import hooks are a great feature in Python. Take the `import` mechanism in the language and re
comment by jamesdutc · 2016-01-25 · in Use JSON files as if they are Python modules -
My favorite is this issue: https://github.com/kragniz/json-sempai/issues/7 > Ever since I saw this I have been unable to sleep. Please fix.
comment by jstoiko · 2016-01-25 · in Use JSON files as if they are Python modules -
▲ 267
Use JSON files as if they are Python modulesstory by bane · 2016-01-25 · 65 comments
-
json-sempai: Use JSON files as if they're python modules! https://github.com/kragniz/json-sempai It's entirely dumb and not very useful.
comment by kragniz · 2015-04-24 · in Ask HN: Brag about open-source projects you're proud of -
▲ 3
Show HN: Use JSON files as if they are python modulesstory by kragniz · 2015-01-02 · 1 comment