# extract

Run extraction-only via Python.

| Source                                                                                          | Added  |
| ----------------------------------------------------------------------------------------------- | ------ |
| [Link](https://github.com/pyblish/pyblish-base/commit/68ded825ea07b6de3bd5a791628815a9394d6156) | 1.0.16 |

## Description

This function runs plug-ins of [ExtractionOrder](https://github.com/pyblish/api/tree/9d41e509649f2dfb91bc4d595aebabed2dc0512f/pages/ExtractionOrder.md) and then stops. This is useful for getting hold of an extracted [Context](/pyblish.api/context.md), bypassing validation, with [results](/data/result.md).

## Argument Signature

|                             Output | Method                                                                                   |
| ---------------------------------: | ---------------------------------------------------------------------------------------- |
| [Context](/pyblish.api/context.md) | extract([context](/pyblish.api/context.md)=None, [plugins](/pyblish.api/plugin.md)=None) |

## Example

```python
import pyblish.util
context = pyblish.util.collect()
pyblish.util.extract(context)
```

{{ file.mtime }}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://api.pyblish.com/pyblish.util/util.extract.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
