> For the complete documentation index, see [llms.txt](https://pyot.iann838.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://pyot.iann838.com/pipeline/object.md).

# Object

Each created pipeline can be accessed in a dictionary at the `pyot.conf.pipeline` module. The key of the pipeline is the name provided in the configuration, if the pipeline is set as default, model name can be used aswell.

```python
from pyot.conf.pipeline import pipelines

lol_pipeline = pipelines["lol"]
```

### *class* `Pipeline`

Definitions:

* `__init__`
  * `model`: `str`

    > Model of belonging.
  * `name`: `str`

    > Name of pipeline.
  * `stores`: `List[Store]`

    > List of Stores to add on the pipeline.
* `__iter__`

  > Iterates over `stores`.
* `__getitem__`

  > Get store by index.

Attributes:

* `model`: `str`
* `name`: `str`
* `stores`: `List[StoreObject]`
* `sessions`: `ResourceTemplate[aiohttp.ClientSession]`

Methods:

* *async* `get` -> `Any`
  * `token`: `PipelineToken`

    > Token identifying the data, created by `token()` on Pyot Core objects.
* *async* `set` -> `None`
  * `token`: `PipelineToken`

    > Token identifying the data, created by `token()` on Pyot Core objects.
  * `value`: `Any`

    > Data to be stored in qualified stores.
  * `stop`: `Store = None`

    > The instance of the store that it should stop at (not sink further).
* *async* `post` -> `Any`
  * `token`: `PipelineToken`

    > Token identifying the data, created by `token()` on Pyot Core objects.
  * `body` -> `Any`

    > Body of the request.
* *async* `put` -> `Any`
  * `token`: `PipelineToken`

    > Token identifying the data, created by `token()` on Pyot Core objects.
  * `body` -> `Any`

    > Body of the request.
* *async* `clear` -> `None`

  > Clear data in all stores.
* *async* `expire` -> `None`

  > Expire data in all the stores, used for stores that cannot automatically expire data on its own.
* *async* `delete` -> `None`
  * `token`: `PipelineToken`

    > Token identifying the data, created by `token()` on Pyot Core objects.
* *async* `contains` -> `bool`
  * `token`: `PipelineToken`

    > Token identifying the data, created by `token()` on Pyot Core objects.

## Example

```python
from pyot.conf.pipeline import pipelines
from pyot.utils.runners import loop_run

async def clear_cache_lol():
    lol_pipeline = pipelines["lol"]
    await lol_pipeline.clear()

loop_run(clear_everything())
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://pyot.iann838.com/pipeline/object.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
