Giter VIP home page Giter VIP logo

sena-analytics's Introduction

sena-analytics

Main Python libs:

Pandas - MongoDB - Decouple - Flask (For the Docker)

How to Run?

  1. Install python

  2. Install pip lib to install dependencies using: python3 -m pip install --user --upgrade pip

  3. Install virtual env using: python3 -m pip install --user virtualenv

  4. Create a virtualenv for the project: python3 -m venv env

  5. To activate it use: source env/bin/activate

  6. Install the Python imports using pip install -r requirements.txt

  7. Set code variables on a .env file as .env.example shows

  8. Run createIndexes.py for creating the indexes and constraints, this file needs to be run only once.

  9. Run the code files to activate the pipelines, example : python tradedVolume.py, having the env activated within the libs of last step

  • List of python pipelines files: tradedVolume.py, dailyTradedVolumeSENA.py, floorPriceSENA.py, NFTTradedVolume.py, senaNFTRoyalties.py, totalTransactions.py, tradedVolumeSENA.py

** If having problems upolading data to mongodb, try running python sslLoad.py before pipeline file.

** Pipelines are online and scheduled to run daily on heroku.com, so the docker build is only for demonstration

** Pipelines connected to devnet sometimes return no data, the code will print where no data stops the pipeline process and finish running normally

How to Run on Docker?

  1. docker build -t sena-analytics:latest .

  2. docker run -d sena-analytics

sena-analytics's People

Contributors

brunonunest avatar guilherme-brandao avatar

Watchers

 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.