GithubHelp home page GithubHelp logo

mydwtool's Introduction

Project Introduction

There are several parts of this project:

1. Chart Generator based on based on EChart

All charts can be defined via a XML template(include customized parameters and styles) and the chart generator component can generate the JavaScript code which can be used directly in HTML (according to the template and data you provided) .

Find more information about the chart template here.

All charts templates are stored under BI/EChartT/<chart_type>/<template_name>.etmp. Also you can define whatever template you want here.

Note : Only few templates under Line and Bar can be used for now.

2. Table Generator based on Bootstrap

Pending

Find more information about the table template here.

3. Report generator based on XML,HTML and Chart Generator & Table Generator

This is a simple report generator module that can use above table & chart generator.

Find more information about the report template here.

4. Simple report system of China stock

This module contains above 2 parts and is consist of 2 submodules:

  • Stock_ETL -> This is a ETL process based on pandas and Tushare, data will be loaded into a local database via Tushare API.
  • app/stock -> A web reporting system. This module is designed to display as many analytical information (tables and charts) as possible. You can query the information by providing the stock code.

Installation

  1. Install the packages below:
  • xlwt
  • lxml
  • numpy
  • pandas
  • sqlalchemy
  • pymssql
  • xlrd
  • flask
  • flask-wtf
  • flask-bootstrap
  • tushare
  • wordcloud
  • pillow
  • jieba
  1. Modify the configuration file under app/config.py

  2. Create a database configuration file at app/db_info/no_git_file.py and define below variables:

        TARGET_DB_HOST ='192.168.0.117'
        TARGET_PORT = 1433
        TARGET_USERID = 'user_id'
        TARGET_PASSWORD= 'user_password'
        TARGET_DB_NAME= 'stock'
        TARGET_SCHEMA='stock'
  3. Create database tables according to Stock_ETL/mssql_ddls.sql.

  4. Modify the wordcloud configuration file at Stock_ETL/config.py

        default_word_font_ttf = <font file(ttf file)> #The font file that used by word cloud.
        'The font file is a little bigger so I don't upload it to github. You can find any font you like to config this'
        wordcloud_path=<path to store the wordcloud pictures> #Default path is app/subapps/stock/static/wordcloud
        default_dict=<the default dictionary used by jieba package> 
        exclude_words=<a list contains the words that can be ingored when generate word cloud pictures>
  5. Using below commands to import stock data

        import Stock_ETL.backend_jobs as bj
        bj.daily_run()

5. ETL Process based on Pandas

Pending

mydwtool's People

Contributors

eric-nkang avatar kangnwh avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

luke202001

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.