Skip to content
This repository was archived by the owner on Jul 5, 2022. It is now read-only.

Latest commit

History

History
162 lines (143 loc) 路 3.64 KB

File metadata and controls

162 lines (143 loc) 路 3.64 KB

HYDT

How You Doin Today? HYDT is a simple command line tool that will take a set of emoji and return a corresponding color. That color will be augmented by the order in which the emoji were inputted and the sentiment of the optional notes.

Installation

Global:

sudo python3 setup.py install

Or from within a virtual environment

python3 setup.py install

After the app is installed, you will have hydt as an executable.

Usage

hydt $command -arg $argValue

Commands

  • create_database -- This will create the initial database file
  • score -e "馃構"-- This will return the score for a given set of emoji that are separated by space or comma.

    {"score": 27.0, "color": "#681e5b", "color_shifted": "#681e5b", "sentiment": 0}

  • user_score -e "馃槙 馃ぉ 馃槡" -u 2 -d "12/22/2017" [-n "some notes about the score"] -- This will get the score for user 1 on 12/22/2017 and save it to the database (the notes will be saved if they are passed in.). This will update an entry for the given user/date combination.

    {'user': 1, 'date': '2017-12-22', 'data': {'score': 83.0, 'color': '#7fba00', 'color_shifted': '#7fba00', 'sentiment': 0.5}}

  • user_score_range -u 2 -sdate 12/01/2017 -edate 12/31/2017 -- NOT WORKING YET This will get all of the user 2's entries for the given date range.

Notes

The colar is shifted by determining the deltas between each emoji and shifting the luminosity via every pair. While the sentiment is calculated, it is not currently used to generate the final color.

Data

At this moment the data is living and will be changed.

Current Color Values

Max Value Color
16 '#3a5dae'
32 '#681e5b'
48 '#d81e05'
62 '#00a6d6'
78 '#e28c05'
100 '#7fba00'

Current emoji values

Emoji Value
馃榾 80.5
馃槂 85.5
馃槃 88.25
馃榿 90.5
馃槅 93.25
馃槄 87.5
馃槀 96.5
馃ぃ 100
鈽猴笍 90.5
馃槉 90.25
馃槆 90.25
馃檪 81
馃檭 47
馃槈 83.25
馃槍 85.5
馃槏 100
馃槝 90.25
馃槜 75.25
馃槞 78.5
馃槡 84.75
馃構 83.25
馃槢 78.25
馃槤 76
馃槣 73.5
馃お 76.33333333
馃え 47
馃 47.33333333
馃 79.75
馃槑 89.5
馃ぉ 99
馃槒 79
馃槖 41
馃槥 26.75
馃様 27.5
馃槦 42
馃槙 49
馃檨 29.75
鈽癸笍 8
馃槪 24.75
馃槚 17.5
馃槴 10.75
馃槱 18.5
馃槩 14.25
馃槶 46.5
馃槫 27.75
馃槧 18.25
馃槨 8.75
馃く 9
馃槼 40.25
馃槺 35.5
馃槰 25
馃槹 14.75
馃槬 20.75
馃槗 40.25
馃 83.25
馃 48
馃き 56.66666667
馃か 80
馃ぅ 33.5
馃樁 39.5
馃槓 42.5
馃槕 28
馃槵 35
馃檮 17
馃槸 46.66666667
馃槮 34
馃槯 26.33333333
馃槷 51.33333333
馃槻 57
馃槾 38
馃い 83.75
馃槳 40
馃樀 36.33333333
馃 32.66666667
馃あ 5.333333333
馃ぎ 1
馃ぇ 32.66666667
馃樂 31.66666667
馃 16.66666667
馃 11.33333333
馃 94.33333333
馃 85
馃樉 48.33333333
馃樋 39.66666667
馃檧 65.33333333
馃樈 92.66666667
馃樇 94.66666667
馃樆 100
馃樄 91.66666667
馃樃 88.33333333
馃樅 83.33333333
馃巸 76.33333333
馃 78.33333333
馃懢 73.33333333
馃懡 76.66666667
鈽狅笍 63.33333333
馃拃 36
馃懟 63.33333333
馃挬 9
馃ぁ 14.66666667
馃懞 33.66666667
馃懝 38.33333333
馃懣 41
馃槇 71.66666667