xgrammar dependencies

Xgrammar is used in Python projects. Efficient, Flexible and Portable Structured Generation It has 7 direct runtime dependencies. Check its dependency graph on PyDeps to understand the full transitive dependency tree, reverse dependents, known CVEs, and license compatibility before installing.

What is xgrammar?

Efficient, Flexible and Portable Structured Generation

What are the dependencies of xgrammar?

xgrammar declares 7 direct runtime dependencies on PyPI. Each one is resolved into the full dependency tree below:

xgrammar transitive dependencies

Beyond its direct dependencies, xgrammar can pull in further packages through its dependency tree. PyDeps resolves the entire chain from PyPI and deps.dev so you can see every transitive (nested) dependency of xgrammar, expand any node on demand, and understand the full set of code that ships when you run pip install xgrammar.

Does xgrammar have known vulnerabilities (CVEs)?

PyDeps checks xgrammar and every package in its dependency tree against the OSV vulnerability database in real time. For each CVE you can see the severity, the affected version ranges, and the first fixed version, so you know exactly which xgrammar version is safe to install before you ship.

What license does xgrammar use?

xgrammar is distributed under the Apache 2.0 license. PyDeps also shows the license of every dependency in the tree so you can audit license compatibility across your whole xgrammar install, not just the top-level package.

How to install xgrammar with all dependencies

Install from PyPI with pip install xgrammar. For offline or air-gapped environments, PyDeps can download xgrammar together with every resolved dependency as wheel files in a single bundle, matched to your target Python version and operating system.

Which packages depend on xgrammar?

Switch to the dependents view to see the reverse dependencies of xgrammar — the PyPI packages that list xgrammar as a requirement. Reverse dependencies are a strong signal of how widely a package is trusted and how disruptive a breaking change would be.

Packages related to xgrammar

PyDeps