{
 "kind": "tool",
 "slug": "python-hcl2",
 "path": "tools/python-hcl2/",
 "name": "python-hcl2",
 "maker": null,
 "density": "basic",
 "crumbs": [
  [
   "Tools",
   "tools/"
  ],
  [
   "Scraping, browsers and parsing",
   "tools/scraping-parsing/"
  ]
 ],
 "lead": "Parses HashiCorp HCL2 (Terraform) files in Python.",
 "chips": [
  {
   "label": "Scraping, browsers and parsing",
   "path": "tools/scraping-parsing/"
  },
  {
   "label": "PYPI"
  }
 ],
 "primary": {
  "label": "Copy install command",
  "copy": "pip install python-hcl2"
 },
 "links": [
  {
   "label": "GitHub",
   "href": "https://github.com/amplify-education/python-hcl2"
  },
  {
   "label": "Website",
   "href": "https://github.com/amplify-education/python-hcl2"
  }
 ],
 "track": "New versions, deprecation and license changes on your dashboard",
 "verdicts": [
  {
   "key": "license",
   "label": "License",
   "value": "MIT",
   "status": "yes",
   "sub": "Use it in paid apps",
   "quote": null,
   "note": "License from PyPI classifier.",
   "src": "https://github.com/amplify-education/python-hcl2"
  },
  {
   "key": "maint",
   "label": "Maintained",
   "value": "Maintained",
   "status": "yes",
   "sub": "Last change Nov 16, 2026",
   "note": "Latest GitHub release Nov 9, 2026. ",
   "src": "https://github.com/amplify-education/python-hcl2"
  },
  {
   "key": "pop",
   "label": "Used by agents' projects",
   "value": "4 projects",
   "status": "info",
   "sub": "#61 of 141 in its category",
   "note": "Dependency in 4 public GitHub projects set up for AI coding agents that we scanned (0.1%).",
   "src": null
  },
  {
   "key": "agent",
   "label": "Agent access",
   "value": "Install only",
   "status": "info",
   "sub": null,
   "note": "Agent skills for this library in the skills catalog; community skills are written by others, read them before you install.",
   "src": null
  }
 ],
 "vfoot": "From the package registry and GitHub, checked daily.",
 "blocks": [
  {
   "id": "overview",
   "nav": "Overview",
   "h2": "What python-hcl2 does",
   "parts": [
    {
     "t": "prose",
     "text": "Parses HashiCorp HCL2 (Terraform) files in Python."
    }
   ]
  },
  {
   "id": "popularity",
   "nav": "Popularity",
   "h2": "python-hcl2 popularity",
   "parts": [
    {
     "t": "stats",
     "items": [
      {
       "n": "40",
       "of": "/ 100",
       "l": "Gid Score, #3166 overall"
      },
      {
       "n": "4.5M",
       "l": "downloads a week, pypi"
      },
      {
       "n": "320",
       "l": "GitHub stars"
      },
      {
       "n": "4",
       "l": "agent projects use it"
      }
     ]
    },
    {
     "t": "small",
     "text": "Gid Score measures public popularity and activity, not quality.",
     "link": "How the Gid Score is calculated",
     "path": "tools/top/"
    }
   ]
  },
  {
   "id": "usage",
   "nav": "How it is used",
   "h2": "How python-hcl2 is used",
   "parts": [
    {
     "t": "list",
     "items": [
      "python-hcl2 joined the catalog on its public numbers (4,457,824 downloads a week on PyPI and 320 GitHub stars), not on our project count: it is a dependency in 5 public GitHub projects of our scan, 4 of them set up for AI coding agents.",
      "Projects that use it most often also use Pydantic (100.0%), FastAPI (80.0%), Requests (80.0%)."
     ]
    },
    {
     "t": "h3",
     "text": "Often used with"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "In 100.0% of its projects",
       "v": "Pydantic",
       "path": "tools/pydantic/"
      },
      {
       "l": "In 80.0% of its projects",
       "v": "FastAPI",
       "path": "tools/fastapi/"
      },
      {
       "l": "In 80.0% of its projects",
       "v": "Requests",
       "path": "tools/requests-py/"
      },
      {
       "l": "In 80.0% of its projects",
       "v": "Uvicorn",
       "path": "tools/uvicorn/"
      },
      {
       "l": "In 80.0% of its projects",
       "v": "PyYAML",
       "path": "tools/pyyaml/"
      },
      {
       "l": "In 40.0% of its projects",
       "v": "PyGithub",
       "path": "tools/pygithub/"
      },
      {
       "l": "In 40.0% of its projects",
       "v": "python-dotenv",
       "path": "tools/python-dotenv/"
      },
      {
       "l": "In 40.0% of its projects",
       "v": "httpx",
       "path": "tools/httpx/"
      }
     ]
    }
   ]
  },
  {
   "id": "more",
   "nav": null,
   "spy_as": "usage",
   "h2": "More about python-hcl2",
   "parts": [
    {
     "t": "more",
     "items": [
      {
       "title": "More in Scraping, browsers and parsing",
       "path": "tools/scraping-parsing/",
       "items": [
        {
         "text": "Beautiful Soup",
         "path": "tools/beautifulsoup4/"
        },
        {
         "text": "Puppeteer",
         "path": "tools/puppeteer/"
        },
        {
         "text": "Playwright Core",
         "path": "tools/playwright-core/"
        },
        {
         "text": "lxml",
         "path": "tools/lxml/"
        },
        {
         "text": "Playwright (Python)",
         "path": "tools/playwright/"
        },
        {
         "text": "Cheerio",
         "path": "tools/cheerio/"
        },
        {
         "text": "fast-xml-parser",
         "path": "tools/fast-xml-parser/"
        },
        {
         "text": "jsonc-parser",
         "path": "tools/jsonc-parser/"
        }
       ]
      }
     ]
    }
   ]
  },
  {
   "id": "alternatives",
   "nav": "Alternatives",
   "h2": "Alternatives",
   "parts": [
    {
     "t": "alts",
     "items": [
      {
       "name": "python-hcl2",
       "me": true,
       "facts": [
        "MIT",
        "Gid 40",
        "4.5M/wk"
       ]
      }
     ],
     "more": "Compare python-hcl2 with another tool",
     "more_path": "tools/compare/"
    }
   ]
  },
  {
   "id": "start",
   "nav": "Get started",
   "h2": "Get started",
   "parts": [
    {
     "t": "install",
     "intro": "Install it.",
     "code": "pip install python-hcl2"
    },
    {
     "t": "gap",
     "text": "No step-by-step start for python-hcl2 yet: we have not written its hand-checked card."
    }
   ]
  }
 ],
 "glance": [
  [
   "Package",
   "pypi python-hcl2"
  ],
  [
   "Category",
   "Scraping, browsers and parsing"
  ],
  [
   "License",
   "MIT"
  ],
  [
   "Gid Score",
   "39.7"
  ],
  [
   "Rank in category",
   "#61 of 141"
  ],
  [
   "GitHub",
   "amplify-education/python-hcl2"
  ],
  [
   "Last change",
   "Nov 16, 2026"
  ]
 ],
 "good": [],
 "checked_line": "From the package registry, GitHub and our scan of public agent projects; numbers update daily.",
 "logo": "https://agentgid.com/media/avatars/amplify-education.png"
}