Skip to content
Index IUCN redlist data in Elasticsearch
Branch: master
Clone or download
Pull request Compare This branch is 1 commit behind anusharanganathan:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
config
espirit @ 0c39a15
magnificent-octopus @ 708d29d
service
.gitignore
.gitmodules
README.md
deploy.sh
requirements.txt
setup.py
test.sh

README.md

IUCN Redlist importer

Installation

Clone the project:

git clone https://github.com/cottagelabs/redlist-indexer.git

get all the submodules

cd myapp
git submodule init
git submodule update

This will initialise and clone the esprit and magnificent octopus libraries

Then get the submodules for Magnificent Octopus

cd myapp/magnificent-octopus
git submodule init
git submodule update

Create your virtualenv and activate it

virtualenv /path/to/venv
source /path/tovenv/bin/activate

Install esprit and magnificent octopus (in that order)

cd myapp/esprit
pip install -e .

cd myapp/magnificent-octopus
pip install -e .

Create your local config

cd myapp
touch local.cfg

Then you can override any config values that you need to

To start the application, you'll also need to install it into the virtualenv just this first time

cd myapp
pip install -e .

To index the data

Note:
1. Make sure elastic search is running
2. Download the IUCN redlist data of interest from the IUCN website in csv format. Downloading these data now requires a login and a brief (at least minutes) waiting period.

from service.importer import import_species
import_species('path_to_csv_file')
You can’t perform that action at this time.