Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/nonsignificantp/ecobici-api-wrapper
- Owner: nonsignificantp
- Created: 2019-11-13T04:58:11.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2019-11-13T06:08:49.000Z (about 5 years ago)
- Last Synced: 2024-11-09T09:44:11.639Z (2 months ago)
- Homepage:
- Size: 2.93 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
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.