{"id":23231,"library":"airium","title":"Airium","description":"Airium is a Python library for building HTML with natural syntax correspondence (python -> html). It requires no templates and has no dependencies. Current version is 0.2.7, with infrequent releases.","status":"active","version":"0.2.7","language":"python","source_language":"en","source_url":"https://github.com/career/airium","tags":["html","template","python","builder","airium"],"install":[{"cmd":"pip install airium","lang":"bash","label":"Install via pip"}],"dependencies":[],"imports":[{"note":"","wrong":"","symbol":"Airium","correct":"from airium import Airium"}],"quickstart":{"code":"from airium import Airium\n\na = Airium()\nwith a.html():\n    with a.body():\n        a.h1('Hello, World!')\nresult = str(a)\nprint(result)","lang":"python","description":"Create an Airium instance, use context managers for tags, and convert to string."},"warnings":[{"fix":"Always use 'with' statements for tags that should enclose other elements (e.g., with a.div(): ...).","message":"Airium uses context managers for nested HTML structure; forgetting to use 'with' for tags that contain children leads to incorrect HTML (tags will self-close or produce unexpected output).","severity":"gotcha","affected_versions":"all"},{"fix":"Double-check attribute names; refer to HTML spec for standard attributes.","message":"Airium does not validate attribute names; typos in attribute names are silently ignored and not rendered in output.","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 'from airium import Airium' instead of 'import airium' or 'from airium import airium'.","cause":"Incorrect import: trying to import the module name instead of the class.","error":"ImportError: cannot import name 'airium' from 'airium'"},{"fix":"Use 'with a.html():' to start the document, then nest other tags inside.","cause":"Using method calls without context manager; the html() method must be called with 'with' to generate the doctype and root element.","error":"AttributeError: 'Airium' object has no attribute 'html'"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}