An in-progress project to map Chicago Transit Authority (CTA) REST APIs to Python classes
This project provides CTA REST API bindings for Python. It was created as:
Currently the following API endpoints are implemented:
https://data.cityofchicago.org/resource/8pix-ypme.jsonhttp://lapi.transitchicago.com/api/1.0/ttarrivals.aspx?outputType=JSON&key=https://lapi.transitchicago.com/api/1.0/ttpositions.aspx?outputType=JSON&key=Additionally, the data from each API endpoint is validated client side via JSON Schema. This is to ensure that:
You will need a valid CTA API key for this library to work. You can apply for one here.
git clone https://github.com/NicholasSynovic/tool_cta-python-apicd tool_cta-python-apimake create-devsource env/bin/activatemake buildThis will install the library to the local virtual environment
poetry add "git+https://github.com/NicholasSynovic/tool_cta-python-api"@0.0.1This will add the library to your local poetry project.
API documentation is provided with this library.