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.1.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.1-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for llama_index_readers_linear-0.4.1.tar.gz
Algorithm Hash digest
SHA256 c4a57f6659ea5014c79a621fbf23012e35fa65b6cd9b4fb60f8ee1b9483f321c
MD5 31c749880c7643c4acde8b27882ee3e8
BLAKE2b-256 2018f65cc9b6eba0c091edae855d95c3b2665e534474fb564928f96e3f7bb450

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for llama_index_readers_linear-0.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 49e73c844ec1255ded12a263309fae8cd2ad128671096800dcc6fec713f19833
MD5 936feaf938d474186e81fdee764dbf4d
BLAKE2b-256 434048ff3634a51af70a1ee74ec732a4c4c6320f8bd2aa7f9ee3fb5d476b6abb

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