Hacker GitHub

← All repos

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

Mentions per year 6 mentions · busiest year 2016 (4)
20082026
  1. …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…
  2. …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
  3. 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.
  4. 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.