# is_valid_package_name

> **Function** in `deepagents_code`

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

Return whether `package` is safe to embed in a `--with` install command.

## Signature

```python
is_valid_package_name(
    package: str,
) -> bool
```

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `package` | `str` | Yes | Candidate package name from CLI or slash-command input. |

## Returns

`bool`

`True` when the value is a conservative PEP 508-style package name.

---

[View source on GitHub](https://github.com/langchain-ai/deepagents/blob/2f56309d821db4a0d06ee03959cf842c91b7f228/libs/code/deepagents_code/update_check.py#L1988)