GithubHelp home page GithubHelp logo

tokendataetl's Introduction

TokenDataETL

ETL to pull token data

Setup Instructions

git clone [email protected]:charlesma4/TokenDataETL.git

If you don't have the requests and psycopg2 packages, install them with:

  • pip3 install requests
  • pip3 install psycopg2-binary

For unit testing, you'll also need to install the mock package:

  • pip3 install mock

To store our data, you need to spin up a Postgresql database instance. This is easy with homebrew (for Mac users):

  1. brew update && brew doctor (homebrew health check)
  2. brew install postgresql
  3. brew services start postgresql

You can verify that the above has worked by running psql to access your database via the terminal.

Lastly, create a a database titled test, or whatever name you prefer (make sure to change the code in loader.py if you want a different DB name). From your terminal, after starting postgresql as explained above, run:

  1. psql
  2. create database test;

Take note of the user that appears before the =# in your psql prompt - you'll need to use that user in loader.py, when establishing the db connection.

Now, to run the app, from the root directory, you can execute: python3 src/token_metric_etl/app.py --token-id <token-id-1 here> --token-id <token-id-2 here> --volume --liquidity

If you'd like to verify functionality with unit tests, run: python3 test/test_main.py

tokendataetl's People

Contributors

charlesma4 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.