llama-index readers linear integration
Project description
Linear Reader
The Linear loader returns issue based on the query.
Usage
Here's an example of how to use it
from llama_hub.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 import download_loader
LinearReader = download_loader("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
Close
Hashes for llama_index_readers_linear-0.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 554614e4da0eba5b450a7788046185df7c25378f32e6a848203821e43fff0be1 |
|
MD5 | 870bef0f17ec24140a27ca42e26d9fe8 |
|
BLAKE2b-256 | 97acdf6ff7321a3c961ccc959d2b2454f173635d07956527826f64c1db9dcb49 |
Close
Hashes for llama_index_readers_linear-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7224fddc4904224f97afd7077167479613b43ada4f32d2eb0a756ef6d29ef3df |
|
MD5 | 2ce356f5a73ad865bfa597cc5120c9f9 |
|
BLAKE2b-256 | a7f31084e7074ca5080c579b935462c60424826fc4a8b9b521670212d3f352e0 |