Skip to content

asfram/tartare

 
 

Repository files navigation

tartare

data integration The global architecture is available in the architecture.md file.

Requirements

Installation

You can use virtualenvwrapper for creating virtual environments.

mkvirtualenv tartare -p python3.4
workon tartare

Installation of dependencies

pip install -r requirements_dev.txt

Run the application (for development)

cd path/to/tartare
honcho start

Run the application with Docker and Docker Compose

We use a docker image for deployment purpose.

Note: we use the new interface version of docker-compose, so docker version needs to be >= 1.10, docker-compose version needs to be >= 1.6

cd path/to/tartare
docker-compose build
docker-compose up -d

Affect rights to input/output folders

sudo chmod o+rwx -R /tmp/tartare/*

To watch logs output:

docker-compose logs -f

Rest Api

Tartare provides an Api to POST Navitia data to update.

Run the Rest Api

The Rest Api is based on Flask. To run only the rest API:

cd path/to/tartare
honcho start web

Logs:

Serving Flask app "tartare.api"
Running on http://127.0.0.1:5000/ (Press CTRL+C to quit)

Use the Rest Api

POST a file:

curl -X POST -F file=@path/to/your-file.zip http://127.0.0.1:5000/grid_calendar

Tests

cd path/to/tartare
PYTHONPATH=. py.test tests

About

data integration

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%