Module python_odpt.api.default.data_retrieve_operations_retrieve

Functions

async def asyncio(data_uri: str,
*,
client: AuthenticatedClient | Client,
aclconsumer_key: str) ‑> Any | List[Calendar | Operator | Station | StationTimetable | TrainTimetable | TrainType | RailDirection | Railway | RailwayFare | PassengerSurvey | BusTimetable | BusroutePattern | BusroutePatternFare | BusstopPole | BusstopPoleTimetable | Airport | AirportTerminal | FlightSchedule | FlightStatus] | None
Expand source code
async def asyncio(
    data_uri: str,
    *,
    client: Union[AuthenticatedClient, Client],
    aclconsumer_key: str,
) -> Optional[Union[Any, List[OUTPUT_TYPES]]]:
    """データ取得API

    Args:
        data_uri (str):
        aclconsumer_key (str): アクセストークン

    Raises:
        errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
        httpx.TimeoutException: If the request takes longer than Client.timeout.

    Returns:
        Union[Any, List[OUTPUT_TYPES]]
    """

    return (
        await asyncio_detailed(
            data_uri=data_uri,
            client=client,
            aclconsumer_key=aclconsumer_key,
        )
    ).parsed

データ取得API

Args

data_uri (str):
aclconsumer_key : str
アクセストークン

Raises

errors.UnexpectedStatus
If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
httpx.TimeoutException
If the request takes longer than Client.timeout.

Returns

Union[Any, List[OUTPUT_TYPES]]

async def asyncio_detailed(data_uri: str,
*,
client: AuthenticatedClient | Client,
aclconsumer_key: str) ‑> Response[Any | List[Calendar | Operator | Station | StationTimetable | TrainTimetable | TrainType | RailDirection | Railway | RailwayFare | PassengerSurvey | BusTimetable | BusroutePattern | BusroutePatternFare | BusstopPole | BusstopPoleTimetable | Airport | AirportTerminal | FlightSchedule | FlightStatus]]
Expand source code
async def asyncio_detailed(
    data_uri: str,
    *,
    client: Union[AuthenticatedClient, Client],
    aclconsumer_key: str,
) -> Response[Union[Any, List[OUTPUT_TYPES]]]:
    """データ取得API

    Args:
        data_uri (str):
        aclconsumer_key (str): アクセストークン

    Raises:
        errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
        httpx.TimeoutException: If the request takes longer than Client.timeout.

    Returns:
        Response[Union[Any, List[OUTPUT_TYPES]]]
    """

    kwargs = _get_kwargs(
        data_uri=data_uri,
        aclconsumer_key=aclconsumer_key,
    )

    response = await client.get_async_httpx_client().request(**kwargs)

    return _build_response(client=client, response=response)

データ取得API

Args

data_uri (str):
aclconsumer_key : str
アクセストークン

Raises

errors.UnexpectedStatus
If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
httpx.TimeoutException
If the request takes longer than Client.timeout.

Returns

Response[Union[Any, List[OUTPUT_TYPES]]]

def sync(data_uri: str,
*,
client: AuthenticatedClient | Client,
aclconsumer_key: str) ‑> Any | List[Calendar | Operator | Station | StationTimetable | TrainTimetable | TrainType | RailDirection | Railway | RailwayFare | PassengerSurvey | BusTimetable | BusroutePattern | BusroutePatternFare | BusstopPole | BusstopPoleTimetable | Airport | AirportTerminal | FlightSchedule | FlightStatus] | None
Expand source code
def sync(
    data_uri: str,
    *,
    client: Union[AuthenticatedClient, Client],
    aclconsumer_key: str,
) -> Optional[Union[Any, List[OUTPUT_TYPES]]]:
    """データ取得API

    Args:
        data_uri (str):
        aclconsumer_key (str): アクセストークン

    Raises:
        errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
        httpx.TimeoutException: If the request takes longer than Client.timeout.

    Returns:
        Union[Any, List[OUTPUT_TYPES]]
    """

    return sync_detailed(
        data_uri=data_uri,
        client=client,
        aclconsumer_key=aclconsumer_key,
    ).parsed

データ取得API

Args

data_uri (str):
aclconsumer_key : str
アクセストークン

Raises

errors.UnexpectedStatus
If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
httpx.TimeoutException
If the request takes longer than Client.timeout.

Returns

Union[Any, List[OUTPUT_TYPES]]

def sync_detailed(data_uri: str,
*,
client: AuthenticatedClient | Client,
aclconsumer_key: str) ‑> Response[Any | List[Calendar | Operator | Station | StationTimetable | TrainTimetable | TrainType | RailDirection | Railway | RailwayFare | PassengerSurvey | BusTimetable | BusroutePattern | BusroutePatternFare | BusstopPole | BusstopPoleTimetable | Airport | AirportTerminal | FlightSchedule | FlightStatus]]
Expand source code
def sync_detailed(
    data_uri: str,
    *,
    client: Union[AuthenticatedClient, Client],
    aclconsumer_key: str,
) -> Response[Union[Any, List[OUTPUT_TYPES]]]:
    """データ取得API

    Args:
        data_uri (str):
        aclconsumer_key (str): アクセストークン

    Raises:
        errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
        httpx.TimeoutException: If the request takes longer than Client.timeout.

    Returns:
        Response[Union[Any, List[OUTPUT_TYPES]]]
    """

    kwargs = _get_kwargs(
        data_uri=data_uri,
        aclconsumer_key=aclconsumer_key,
    )

    response = client.get_httpx_client().request(
        **kwargs,
    )

    return _build_response(client=client, response=response)

データ取得API

Args

data_uri (str):
aclconsumer_key : str
アクセストークン

Raises

errors.UnexpectedStatus
If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
httpx.TimeoutException
If the request takes longer than Client.timeout.

Returns

Response[Union[Any, List[OUTPUT_TYPES]]]