Skip to content

sirius9/jitenshea

 
 

Repository files navigation

Jitenshea: bicycle-sharing data analysis

License: MIT

In Japanese:

Jitensha (bicycle) + Shea (share) = Jitenshea

Analyze bikes sharing station data some cities where there are Open Data.

You have two parts in this project:

  • a data pipeline and data processing with luigi to get, transform and store data

  • Web application to get and visualize some data through a REST API

screenshot

Data

Open Data from French cities Bordeaux and Lyon:

Some luigi tasks can be called every 10 minutes for instance to gather the bicycle-sharing stations data. Another one is called every day to aggregate some data. You can use cron-job to carry out this stuff.

Configuration

A configuration file sample can be found at the root directory config.ini.sample. Copy it into the jitenshea directory , rename it into config.ini and update it.

It is used for the database access, some tokens for API, etc.

For the wep application, you can launch bower to install Javascript and CSS dependencies.

Requirements

PostgreSQL database with PostGIS. You must have the shp2pgsql command.

  • Python 3.6
  • pandas
  • requests
  • luigi
  • sh
  • psycopg2
  • sqlalchemy
  • flask-restplus
  • daiquiri

See the conda_env.sh script to create a conda environment with the dependencies.

Note: flask-restplus and daiquiri should be install via pip.

About

Bicycle-sharing data analysis

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 71.6%
  • JavaScript 15.3%
  • HTML 12.7%
  • Other 0.4%