deepeye_pack
Update - 2018/10/22 v0.0.2
- read_csv_handld_changedate revise to pandas method
- both the import methods require Mandatory table_info to specify the table
- mysql_handle now change to pandas dataframe verison
- from_mysql also changes to para-method, pass port/user/db... instead of query and MySQLdb conn
Description
- This is a Python package for DeepEye API,can easily visualize data without too much effort. And provide with really simple usage
- the DeepEye system: https://github.com/TsinghuaDatabaseGroup/DeepEye/tree/master/APIs_Deepeye
Installation
- Python 2.7
- MySQL 5.7
- Packages
- 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
- numpy(latest version)
- pandas(latest version) above ver 0.23.0
- mysqldb binary packages for windows: link1:https://www.lfd.uci.edu/~gohlke/pythonlibs/
Usage
- Initial
- 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'])
- the column_types that supported by deepeye_pack are specified as below:
- numerical:
int,float,double - temporal:
date,datetime,year - categorical:
char,varchar
- numerical:
- Import
- 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`')
- from_csv()
path = "file.csv" # the path where the file located dp.from_csv(path)
- from_mysql()
- Visualization
# choose one from three dp.learning_to_rank() dp.partial_order() dp.diversified_ranking()
- 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()
Metadata
Release files for deepeye-pack 0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| deepeye_pack-0.2.tar.gz | 140.1 kB | Without provenance | Details for deepeye_pack-0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| deepeye_pack-0.2-py2-none-any.whl | Python 2 | none | any | Details for deepeye_pack-0.2-py2-none-any.whl |
Total release size: 283.2 kB
Release files / deepeye_pack-0.2.tar.gz
| Download URL | deepeye_pack-0.2.tar.gz |
|---|---|
| Size | 140.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f46bc6fba37ab3575dc5181b0b7e9d5f2fd7296a102d197220f84b0850c69b2e
|
|
BLAKE2b-256 checksum How to use checksums |
e4737a96b9babfa36a77bc6d254b7f9a41f09c78b8c074a4906c7ea986b09017
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / deepeye_pack-0.2-py2-none-any.whl
| Download URL | deepeye_pack-0.2-py2-none-any.whl |
|---|---|
| Size | 143.1 kB |
| Tags | Python 2 |
|
SHA-256 checksum How to use checksums |
e5146d710b242c0b141dc7515165cab21f9d463de969ce1886da1ae010d65648
|
|
BLAKE2b-256 checksum How to use checksums |
1840505140a0c3cc6d4a4bd33bcb3c1033a2fa471e923e5347980d07266ab6ed
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Security for deepeye-pack 0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.