Git Product home page Git Product logo

pygmql's Introduction

PyGMQL

API for calling interactively the GMQL Engine from Python

Documentation Status Build status PyPI version

Documentation

The doucumentation can be found at the following link: http://pygmql.readthedocs.io

Setup

Use Anaconda

We suggest to manage your python distribution through Anaconda. The latest version of can be downloaded from https://www.continuum.io/downloads.

Once your Anaconda distribution is installed, let's create a brand new environment:

conda create --name pygmql python=3.6

Download this repository

First of all download this repository in a choosen location:

git clone https://github.com/DEIB-GECO/PyGMQL.git

Check that the JAVA_HOME enviroment variable is correctly set to the latest JAVA distribution.

echo $JAVA_HOME

If the variable is not set (the previous command does not show nothing), you may need to install JAVA (https://www.java.com/it/download/) and then set JAVA_HOME like the following:

On linux:

echo export "JAVA_HOME=/path/to/java" >> ~/.bash_profile
source ~/.bash_profile

On Mac:

echo export "JAVA_HOME=\$(/usr/libexec/java_home)" >> ~/.bash_profile
source ~/.bash_profile

On Windows:

  1. Right click My Computer and select Properties.
  2. On the Advanced tab, select Environment Variables, and then edit JAVA_HOME to point to where the JDK software is located, for example, C:\Program Files\Java\jdk1.6.0_02.

Install with pip

Than go inside the library folder and install the package as follows:

cd PyGMQL
pip install -e .

We strongly suggest to use the library with the support of a Jupyter Notebook for the best graphical rendering of the data structures. It may be necessary to manually install the Jupyter kernel:

source activate pygmql
python -m ipykernel install --user --name pygmql --display-name "Python (pygmql)"

Run the library

Firstly activate the pygmql conda environment and enter in the interactive Python shell

source activate pygmql
python

Then simply import the library

import gmql as gl

Now you are ready to use PyGMQL! Congratulations!

Keep the code updated

This is a constantly evolving project. Therefore the library will be constantly added with new features. Therefore we suggest to update your local copy periodically:

cd PyGMQL
git pull

Tutorial

You can download a tutorial for beginners at this link

pygmql's People

Contributors

acanakoglu avatar anilbey avatar lucananni93 avatar pp86 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.