> For the complete documentation index, see [llms.txt](https://docs.sealsecurity.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.sealsecurity.io/using-platform/working-with-seal-apps/artifact-server/poetry.md).

# Editing Poetry dependencies

## Direct dependencies

Poetry's manifest is `pyproject.toml`. The cleanest way to pin a sealed version is through the `poetry add` command, which writes both the version and the lockfile entry:

```bash
poetry add requests==2.31.0+sp1
```

Run `poetry install` afterward to make sure the virtual environment matches.

To edit `pyproject.toml` by hand, the relevant block is:

```diff
 [tool.poetry.dependencies]
 python = "^3.10"
-requests = "2.31.0"
+requests = "2.31.0+sp1"
```

## Transitive dependencies

This page covers direct dependencies only. For overriding transitive dependencies in Poetry, work with your Seal account team to confirm the right pattern for your project's setup.

## Related

* [Configuring Poetry](/setup-apps-os/artifact-server/configuring-package-managers/poetry.md): the package-manager setup that points Poetry at the Seal Artifact Server.
* [Editing pip dependencies](/using-platform/working-with-seal-apps/artifact-server/pip.md): the pip equivalent, including the pin-as-direct mechanism for transitive overrides.
