Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/nonsignificantp/ecobici-api-wrapper

Python FastAPI wrapper around the original Ecobici API to be use during data ingestion.
https://github.com/nonsignificantp/ecobici-api-wrapper

Last synced: 17 days ago
JSON representation

Python FastAPI wrapper around the original Ecobici API to be use during data ingestion.

Awesome Lists containing this project

README

        

========================
Ecobici API v1.0 wrapper
========================

.. contents:: Table of Contents
.. section-numbering::

Description
===========

FastAPI wrapper around Buenos Aires' ecobici API found on the original ecobici status map. **Since 2019 a new system was put in place toghether with a clean fresh API**, however the old API is still in place and running. The main purpose of this wrapper was to implement a cleaner way of making apy calls and querys mixed with corrected data types in each field.

Installation
============

First step is to clone the repository::

git clone https://github.com/nonsignificantp/ecobici-api-wrapper.git

Makefile
--------

Inside the root folder type the following on the command line::

make build && make run

This command will build a docker image from the Dockerfile and the run a container mapping port 8000.

Dockerfile
----------

Build the docker image using::

docker build -t ecobici:latest .

Followed by::

docker run -p 8000:8000 ecobici:latest

API
===

:``/estaciones/{numero}``: Return information of station.