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.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | fcd3658ab6f0eea741c41964dfe07ea4cc9491fb4c50c44029d9437d4159c8b0 |
|
MD5 | dd62218224c2d46801e1677d3ec1f9cb |
|
BLAKE2b-256 | 29899bc99f6a93f3ce73ba05efba24faa6af96512d7ccc751c7321edbf19dcd3 |
Close
Hashes for llama_index_readers_linear-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7238eb3e01c512a7be03bf4666bd2f0c3a7e9ed38ac73fad702d82e1da1856ee |
|
MD5 | 97d9d81638df9bd2261601180151c740 |
|
BLAKE2b-256 | 514769065631845171345deb5b01ff39d012b62db6f635ac13ec679d9b4a762f |