Skip to content
This repository

A Tool to help import the content of the Learning Registry into a data store of your choice

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 src
Octocat-spinner-32 .gitignore
Octocat-spinner-32 Readme.md
Octocat-spinner-32 license.txt
Octocat-spinner-32 requirements.txt
Readme.md

LR-Data

This is a small utility to help pull the data from the Learning Registry into a datastore of your choice.

Dependencies

LR-Data requires:

Platform-Specific Requirements:

On OS X, you will also need libevent, which can be installed with homebrew: brew install libevent

Setup

Run pip install -U -r requirements.txt

Configuration

All configuration is done in the src/celeryconfig.py file. For information of configuring Celery please see their document. For lr-data configuration modify

`config = {

"lrUrl": "http://lrdev02.learningregistry.org/harvest/listrecords",

"mongodb":{ 

    "database":"lr",

    "collection":"envelope",

    "host": "localhost",

    "port": 27017,

},

"couchdb":{

    "dbUrl":"http://localhost:5984/lr-data"

},

"insertTask":"tasks.save.insertDocumentMongo",

"validationTask":"tasks.validate.emptyValidate",

"redis":{

    "host":"localhost",

    "port":6379,

    "db":0

}

}`

set insertTask to be the celery task you wish to use to save the data and modify validationTask to be your validation task

Startup

To start run celryd -B from the source directory. To run as a deamon follow these instructions

Something went wrong with that request. Please try again.