Skip to main content

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

llama_index_readers_linear-0.3.0.tar.gz (2.5 kB view details)

Uploaded Source

Built Distribution

File details

Details for the file llama_index_readers_linear-0.3.0.tar.gz.

File metadata

File hashes

Hashes for llama_index_readers_linear-0.3.0.tar.gz
Algorithm Hash digest
SHA256 9983b4706668ba860051c4662b66744e20f0f809f15289d869fe183e777e8125
MD5 1d340dcaf8775916df8f676618e292e2
BLAKE2b-256 5876e4a8d16acb0f59a535e9682504142cff570a972fce2fe02ce58707590bb4

See more details on using hashes here.

File details

Details for the file llama_index_readers_linear-0.3.0-py3-none-any.whl.

File metadata

File hashes

Hashes for llama_index_readers_linear-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 cb6e2bc9d914e74c0aa3fa8b6e4952767bb503d3a6d9ffbb0a0628697d2462cc
MD5 4cc8aa0d9b5828c963830b1620ee9ccc
BLAKE2b-256 d891b70d57e036703c8e63a2c4ebbd19981d5e076c6680b29ad464f9f406d587

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page