Skip to content
A Python client for interacting with Mobility Data Specification (MDS) providers
Branch: master
Clone or download
Pull request Compare This branch is 43 commits ahead, 23 commits behind CityofSantaMonica:master.
Latest commit 8c847ee Jun 6, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github Update settings.yml Jun 7, 2019
mds_provider_client support for request delay param Mar 13, 2019
tests linting w/ Black Nov 28, 2018
.gitignore update .gitignore Nov 29, 2018
LICENSE adding license and improving the docs Sep 20, 2018
README.md update readme Nov 29, 2018
setup.py bump version Mar 12, 2019

README.md

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()
    )
You can’t perform that action at this time.