Giter VIP home page Giter VIP logo

geordi's Introduction

geordi

This project allows the consumption of arbitrary data, for use as a data source and matching tool.

Geordi La Forge

It's named after Geordi La Forge, in reference to MusicBrainz Picard.

Setup

Shared dependencies:

  • postgresql

You will also need to be able to install python packages, we recommend using virtualenvwrapper for this. On Debian/Ubuntu systems you can install that with:

sudo apt-get install virtualenvwrapper

Python dependencies:

mkvirtualenv geordi

The mkvirtualenv command will create and activate a virtual environment in which python modules will be installed. You can re-active this environment with the following command:

workon geordi

To install all the dependencies run:

pip install -r requirements.txt

Configuration

In the geordi/geordi directory, copy settings.cfg.sample to settings.cfg; modify database connection settings, set MusicBrainz OAuth configuration, and make any other needed changes.

Creating database

To create a database matching the default configuration run:

createdb -O geordi geordi

Then create the schema by running:

echo 'CREATE SCHEMA geordi' | psql -U geordi geordi

Creating tables

To create tables in an existing database run:

python manager.py create_tables

(replace 'python' with 'python2' where applicable)

Importing Data

To import data, use the manager.py script in the 'geordi' directory. Various options exist under the 'data' subcommand, for which documentation exists. Source-specific import tools are in the geordi.data.importer module, mostly under the 'indexes' subdirectory.

Running server

To run the server:

cd geordi
python manager.py runserver

(replace 'python' with 'python2' where applicable)

Testing

To run tests, install nose (remember to enable your virtualenv!):

pip install nose

And then run the tests, you should see something like this:

$ nosetests
..
----------------------------------------------------------------------
Ran 2 tests in 0.121s

OK

Further Documentation

The geordi server has some additional documentation as well.

geordi's People

Contributors

ianmcorvidae avatar gentlecat avatar mwiencek avatar mayhem avatar warpr avatar reosarevok avatar vxjasonxv avatar

Stargazers

 avatar  avatar Subhash Ramesh avatar Pawel Cyrta avatar JT5D avatar nocabbages avatar  avatar Lukáš Lalinský avatar Ollie Charles avatar

Watchers

Kevin Lewandowski avatar James Cloos avatar  avatar Tanuj Sharma avatar Sambhav Kothari avatar  avatar Kartik Ohri avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.