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.4.0.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

llama_index_readers_linear-0.4.0-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for llama_index_readers_linear-0.4.0.tar.gz
Algorithm Hash digest
SHA256 e1d0faa8166ecbed8c2a8ae0a9e2f018fba4a0b81ab8917eed181319e4cfff01
MD5 ec19d1d2ad9640fa907009a4a13cea78
BLAKE2b-256 8002f43a84d54b596a3456e8662def8ee0915a1f7970032c906ee5b2e139a484

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for llama_index_readers_linear-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 80a962d11a25db4cc93f1c45b1452bc50859fa4e985093208f2be7340684e390
MD5 2efe891fe4beaa41be2777d5b27b4a44
BLAKE2b-256 a0fea2470aaa89ac8418dfce74166762336f607f98c34bc649833d07863d3d99

See more details on using hashes here.

Supported by

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