llama-index readers linear integration
Project description
Linear Reader
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
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
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)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file llama_index_readers_linear-0.3.0.tar.gz
.
File metadata
- Download URL: llama_index_readers_linear-0.3.0.tar.gz
- Upload date:
- Size: 2.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.11.10 Darwin/22.3.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9983b4706668ba860051c4662b66744e20f0f809f15289d869fe183e777e8125 |
|
MD5 | 1d340dcaf8775916df8f676618e292e2 |
|
BLAKE2b-256 | 5876e4a8d16acb0f59a535e9682504142cff570a972fce2fe02ce58707590bb4 |
File details
Details for the file llama_index_readers_linear-0.3.0-py3-none-any.whl
.
File metadata
- Download URL: llama_index_readers_linear-0.3.0-py3-none-any.whl
- Upload date:
- Size: 2.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.11.10 Darwin/22.3.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cb6e2bc9d914e74c0aa3fa8b6e4952767bb503d3a6d9ffbb0a0628697d2462cc |
|
MD5 | 4cc8aa0d9b5828c963830b1620ee9ccc |
|
BLAKE2b-256 | d891b70d57e036703c8e63a2c4ebbd19981d5e076c6680b29ad464f9f406d587 |