Skip to content

Latest commit

 

History

History
27 lines (19 loc) · 764 Bytes

README.md

File metadata and controls

27 lines (19 loc) · 764 Bytes

mds-provider-client

A Python client for interacting with Mobility Data Specification (MDS) providers.

Forked from the City of Santa Monica's mds-provider toolkit.

Developed and tested with Python 3.7+.

Quick Start

>>> from datetime import datetime

>>> from mds_provider_client.client import ProviderClient

>> client = ProviderClient(
        url="https://mds.provider.com",
        token="top-secret-auth-token",
        headers={"custom-request-header" : "abc123"},
        timeout=30
    )

>>> trips = client.get_trips(
        start_time=datetime(2018, 11, 21, 16, 30),
        end_time=datetime.utcnow()
    )