# get_extras_status

> **Function** in `deepagents_code`

📖 [View in docs](https://reference.langchain.com/python/deepagents-code/extras_info/get_extras_status)

Return installed optional dependencies grouped by extra.

Reads `Requires-Dist` metadata from the named distribution, groups the
entries gated by `extra == "..."` markers under their extra name, and
resolves each package's installed version via `importlib.metadata`.
Packages that are not installed are omitted; extras whose entire
package list is absent are dropped.

Composite meta-extras that only bundle other extras (see
`_COMPOSITE_EXTRAS`) and self-references to the distribution itself
are skipped — their components already appear under their own extras.

## Signature

```python
get_extras_status(
    distribution_name: str = 'deepagents-code',
) -> ExtrasStatus
```

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `distribution_name` | `str` | No | Name of the installed distribution to inspect. (default: `'deepagents-code'`) |

## Returns

`ExtrasStatus`

Mapping from extra name to a sorted list of `(package, version)`
tuples for packages that are currently installed. An empty
mapping is returned when the distribution itself is not found.

---

[View source on GitHub](https://github.com/langchain-ai/deepagents/blob/d1c6946218b4f0f86ab7b02b6bb6af1e4b75cede/libs/code/deepagents_code/extras_info.py#L160)