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.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | f3a0d67fcd57e9e0907edba99e4b7a3930907e8952780b05473c1a661612b070 |
|
MD5 | c8b7815ae1aadd92d741891bb8773c73 |
|
BLAKE2b-256 | 6c3dac25861fd96ca00b4d0ffb7fd70ae6a12191c168fe20be40323dbd8c6160 |
Close
Hashes for llama_index_readers_linear-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1c63b7c0cdf4396f0eef9050cc254605fcb2eddc2db3bbf050abd9f90c49f9ca |
|
MD5 | c838f440a01e299d26db503910d4f3f8 |
|
BLAKE2b-256 | 5f1d81c236806bf86d6c93fa20081574420709c1dc38f8c93d8bfa37d742b6c4 |