How to use the flowclient.api_query.APIQuery function in flowclient

To help you get started, we’ve selected a few flowclient examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Flowminder / FlowKit / flowclient / flowclient / async_api_query.py View on Github external
from typing import Union, Optional

from flowclient.api_query import APIQuery
from flowclient.async_connection import ASyncConnection
from flowclient.async_client import (
    run_query,
    get_status,
    get_result_by_query_id,
    get_geojson_result_by_query_id,
    wait_for_query_to_be_ready,
)


class ASyncAPIQuery(APIQuery):
    """
    Representation of a FlowKit query.

    Parameters
    ----------
    connection : ASyncConnection
        Connection to FlowKit server on which to run this query
    parameters : dict
        Parameters that specify the query

    Attributes
    ----------
    parameters
    connection
    status
    """