Giter Site home page Giter Site logo

datamart's Introduction

MIT License travis ci

datamart

cd datamart

if you are using linux, refer here to remove 2 lines: conda/conda#6073 (comment)

conda env create -f environment.yml
source activate datamart_env
git update-index --assume-unchanged datamart/resources/index_info.json

python -W ignore -m unittest discover

If you meet problems about level.db, please try the following commands: If you have homebrew installed: brew install leveldb otherwise:

pip install leveldb
CFLAGS='-mmacosx-version-min=10.7 -stdlib=libc++' pip install plyvel --no-cache-dir --global-option=build_ext --global-option="-I/usr/local/Cellar/leveldb/1.20_2/include/" --global-option="-L/usr/local/lib"
pip install rltk

When new packages were added:

Before commit: please run the following commands to update the dependencies config.

conda env export --no-build > environment.yml
pip freeze > requirements.txt

After pull: please run conda env update -f environment.yml to update the dependencies.

Validate your schema

Dataset providers should validate their dataset schema against our json schema by the following

python scripts/validate_schema.py --validate_json {path_to_json}

eg.

$ python scripts/validate_schema.py --validate_json test/tmp/tmp.json
$ Valid json

How to provide index for one data source

  1. Prepare your dataset schema following datamart index schema and validate it with the previous step

  2. Create your materialization method by creating a subclass of materializer_base.py. and put in datamart/materializers. See README

  3. Have your dataset schema json materialization.python_path pointed to the materialization method. Take a look at tmp.json.

  4. Play with the following:

Example of using current system

Create metadata and index it on Elasticsearch, following: Indexing demo

Query datamart, following: Query demo

Dealing with TAXI example, following: taxi_example

Dealing with FIFA example, following: fifa_example

Dealing with Hall of Fame example, following: hof_example

Python API documentation: python api

REST API documentation: rest_example

(more information can be found under wiki)

Note: Launch notebook:

jupyter notebook test/index.ipynb

datamart's People

Contributors

rqs avatar lituta avatar jcarlosroldan avatar sukritisharma avatar kyao avatar bhavyagulati avatar linqyd avatar xkgoodbest avatar cybergla avatar

Watchers

James Cloos 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.