Metadata-Version: 2.4
Name: llama-index-readers-linear
Version: 0.5.0
Summary: llama-index readers linear integration
Author-email: Your Name <you@example.com>
Maintainer: Sushmithamallesh
License-Expression: MIT
License-File: LICENSE
Keywords: linear
Requires-Python: <4.0,>=3.10
Requires-Dist: gql<4,>=3.5.0
Requires-Dist: llama-index-core<0.15,>=0.13.0
Requires-Dist: requests<3,>=2.31.0
Description-Content-Type: text/markdown

# Linear Reader

```bash
pip install llama-index-readers-linear
```

The Linear loader returns issue based on the query.

## Usage

Here's an example of how to use it

```python
from llama_index.readers.linear import LinearReader

reader = LinearReader(api_key=api_key)
query = """
    query Team {
        team(id: "9cfb482a-81e3-4154-b5b9-2c805e70a02d") {
            id
            name
            issues {
                nodes {
                    id
                    title
                    description
                    assignee {
                        id
                        name
                    }
                    createdAt
                    archivedAt
                }
            }
        }
    }
"""

documents = reader.load_data(query=query)
```

Alternately, you can also use download_loader from llama_index

```python
from llama_index.readers.linear import LinearReader

reader = LinearReader(api_key=api_key)
query = """
    query Team {
        team(id: "9cfb482a-81e3-4154-b5b9-2c805e70a02d") {
            id
            name
            issues {
                nodes {
                    id
                    title
                    description
                    assignee {
                        id
                        name
                    }
                    createdAt
                    archivedAt
                }
            }
        }
    }
"""
documents = reader.load_data(query=query)
```
