Coder Social home page Coder Social logo

vertica_hackathon's Introduction

Hackathon

This is a getting started kit for Hackathons using Vertica!

First clone the repo with:

git clone [email protected]:vertica/hackathon.git vertica-hackathon

cd vertica-hackathon

Install the vertica python client and other dependencies

First you need to install the vertica python client, so that you can connect to the database by simply writing python code.

There are a few requirements for that. First, you need to install pip. If you are using Python 2 >=2.7.9 or Python 3 >=3.4 downloaded from python.org you will already have pip. Otherwise follow installation instructions here: https://pip.pypa.io/en/stable/installing/

If you are using pip >= 1.4 and you don't already have pytz installed: pip install --pre pytz

To install vertica-python with pip run the following command with sudo priviledges:

sudo pip install vertica-python

You will get a prompt to enter your password. Enter your password and hit enter.

More instructions and source code of the python client at: https://github.com/uber/vertica-python

Install Flask, a python framework and submit your first query

Flask is a powerfull and lightweight python framework. It does all the dirty work of setting up a server. You can install it with:

sudo pip install flask

Run your demo server that submits a select 1 query:

python server.py

Visit localhost:5000 to see the Hello World page.

vertica_hackathon's People

Contributors

stylianipantela avatar edenzik avatar

Watchers

Samantha Voigt 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.