Skip to main content

a Python package for DeepEye:Towards automatic Data Visualization API

Project description

deepeye_pack

Update - 2018/10/22 v0.0.2

  1. read_csv_handld_changedate revise to pandas method
  2. both the import methods require Mandatory table_info to specify the table
  3. mysql_handle now change to pandas dataframe verison
  4. from_mysql also changes to para-method, pass port/user/db... instead of query and MySQLdb conn

Description

  1. This is a Python package for DeepEye API,can easily visualize data without too much effort. And provide with really simple usage
  2. the DeepEye system: https://github.com/TsinghuaDatabaseGroup/DeepEye/tree/master/APIs_Deepeye

Installation

  1. Python 2.7
  2. MySQL 5.7
  3. Packages
    1. mysqldb binary packages for windows: link1:https://www.lfd.uci.edu/~gohlke/pythonlibs/
      link2:https://sourceforge.net/projects/mysql-python/
      • Download 'MySQL-python' and choose the right version for it
      • Install the .whl by wheel install
      • there is a back up version in this repository under 'mysqldb' folder
    2. numpy(latest version)
    3. pandas(latest version) above ver 0.23.0

Usage

  1. Initial
    1. example code:
    import deepeye_pack
    
    #create a deepeye_pack class that wraps everything
    dp = deepeye_pack.deepeye('demo') # the name here doesnt actually matter
    
    # then user needs to input table info
    # as in table_info(table_name,column_names,column_types)
    dp.table_info('electricity',['city','date','electricity(kWh)'],['varchar','date','float'])
    
    1. the column_types that supported by deepeye_pack are specified as below:
      1. numerical: int, float, double
      2. temporal: date, datetime, year
      3. categorical: char, varchar
  2. Import
    1. from_mysql()
      # call the from_mysql() function
      dp.from_mysql(host='localhost',port=3306,user='root',passwd='ppww',db='deepeye', query='SELECT * FROM `table_name`')
      
    2. from_csv()
      path = "file.csv" # the path where the file located
      dp.from_csv(path)
      
  3. Visualization
    # choose one from three
    dp.learning_to_rank()
    dp.partial_order()
    dp.diversified_ranking()
    
  4. Output
    # can use several different methods at the same time
    dp.to_print_out()
    dp.to_single_json()
    dp.to_multiple_jsons()
    dp.to_multiple_htmls()
    dp.to_single_html()
    

Project details


Release history Release notifications | RSS feed

This version

0.2

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

deepeye_pack-0.2.tar.gz (140.1 kB view details)

Uploaded Source

Built Distribution

deepeye_pack-0.2-py2-none-any.whl (143.1 kB view details)

Uploaded Python 2

File details

Details for the file deepeye_pack-0.2.tar.gz.

File metadata

  • Download URL: deepeye_pack-0.2.tar.gz
  • Upload date:
  • Size: 140.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/40.1.0 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/2.7.15

File hashes

Hashes for deepeye_pack-0.2.tar.gz
Algorithm Hash digest
SHA256 f46bc6fba37ab3575dc5181b0b7e9d5f2fd7296a102d197220f84b0850c69b2e
MD5 6bd662783e69e059de228d9a35cac215
BLAKE2b-256 e4737a96b9babfa36a77bc6d254b7f9a41f09c78b8c074a4906c7ea986b09017

See more details on using hashes here.

File details

Details for the file deepeye_pack-0.2-py2-none-any.whl.

File metadata

  • Download URL: deepeye_pack-0.2-py2-none-any.whl
  • Upload date:
  • Size: 143.1 kB
  • Tags: Python 2
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/40.1.0 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/2.7.15

File hashes

Hashes for deepeye_pack-0.2-py2-none-any.whl
Algorithm Hash digest
SHA256 e5146d710b242c0b141dc7515165cab21f9d463de969ce1886da1ae010d65648
MD5 34f5a90bc54f7e8a82f0f4ef34ee15d0
BLAKE2b-256 1840505140a0c3cc6d4a4bd33bcb3c1033a2fa471e923e5347980d07266ab6ed

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page