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+.
>>> 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()
)