{"id":23422,"library":"chevron-blue","title":"chevron-blue","description":"A Python implementation of the Mustache template language, fork of chevron with fixes and updates. Current version 0.3.0, requires Python >=3.8. Released occasionally, not aggressively maintained.","status":"active","version":"0.3.0","language":"python","source_language":"en","source_url":"https://github.com/noahnu/chevron-blue","tags":["mustache","templates","chevron-blue"],"install":[{"cmd":"pip install chevron-blue","lang":"bash","label":"Install from PyPI"}],"dependencies":[],"imports":[{"note":"Package name is chevron-blue on PyPI but import uses chevron (without hyphen).","wrong":"from chevron_blue import ...","symbol":"chevron","correct":"import chevron"}],"quickstart":{"code":"import chevron\n\ntemplate = \"Hello, {{name}}!\"\ncontext = {\"name\": \"World\"}\nresult = chevron.render(template, context)\nprint(result)  # Hello, World!","lang":"python","description":"Render a simple Mustache template with a context dict."},"warnings":[{"fix":"Use 'import chevron'","message":"The import is 'chevron' not 'chevron_blue'. The library is installed as chevron-blue but module name is chevron. Many users try 'from chevron_blue import ...' which fails.","severity":"gotcha","affected_versions":"all"},{"fix":"Uninstall chevron if installed and use only chevron-blue.","message":"chevron-blue is a fork of chevron. The original chevron library is incompatible with chevron-blue's API. Do not mix the two.","severity":"deprecated","affected_versions":"<0.3.0"},{"fix":"Use chevron.render(template=open('file.mustache'), data=context) or read the file first.","message":"chevron.render() expects a string or file-like object for the template. Passing a file path as a string will silently fail to open the file; it will treat the path as the template text.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Use 'import chevron' (without underscore). The package name on PyPI is chevron-blue, but the module name is chevron.","cause":"Trying to import the package as 'chevron_blue' (with underscore) instead of 'chevron'.","error":"ModuleNotFoundError: No module named 'chevron_blue'"},{"fix":"Uninstall chevron and install chevron-blue: pip uninstall chevron && pip install chevron-blue. Then import chevron and use chevron.render.","cause":"Possibly installed the original chevron instead of chevron-blue, or using a very old version.","error":"ImportError: cannot import name 'render' from 'chevron'"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}