Streak-Python.

¹é¿£µå·Î¼­ÀÇ Redis¸¦ »ç¿ëÇÏ¿© ½Â¸® / ¼Õ½Ç ÁÙ °è»êÀ»À§ÇÑ ¶óÀ̺귯¸®
Áö±Ý ´Ù¿î·Îµå

Streak-Python. ¼øÀ§ ¹× ¿ä¾à

±¤°í

  • Rating:
  • ƯÇã:
  • MIT/X Consortium Lic...
  • °¡°Ý:
  • FREE
  • °Ô½ÃÀÚ À̸§:
  • David Czarnecki
  • °Ô½ÃÀÚ À¥»çÀÌÆ®:
  • https://github.com/czarneckid/

Streak-Python. ű×


Streak-Python. ¼³¸í

StreakÀº ½Â¸® / ¼Õ½Ç ÁÙ¹«´Ì¸¦ °è»êÇϱâÀ§ÇÑ ÆÄÀ̽㠶óÀ̺귯¸®ÀÔ´Ï´Ù. µ¥ÀÌÅ͸¦ ¼öÁýÇϱâÀ§ÇÑ ¹é¿£µå·Î Redis¸¦ »ç¿ëÇÕ´Ï´Ù. ÀÌ°ÍÀº ¿ø·¡ÀÇ (https://github.com/czarneckid/streak)ÀÇ ÆÄÀ̽ã Æ÷Æ®ÀÔ´Ï´Ù. ·çºñ Áª. STREAK¿¡¼­ STREAK¿¡¼­ >>> Streak = Streak () >>> Streak.Aggregate ( 'David', 3) >>> Streak.Aggregate ( 'David', -2) >>> Streak.Aggregate ( 'David', 5) >>> Streak.Aggregate ( 'David', -1) >>> Åë°è = Streak.Statistics ( 'David') >>> Print Statistics { 'losses_streak': 2, 'wins_streak': 5, 'wins': 0, 'losses_total': 3, '¼Õ½Ç': 1, 'wins_total': 8, 'ÇÕ°è': 11} >>> Streak.reset_Statistics ( 'David') >>> Åë°è = streak.statistics ( 'david') >>> Àμâ Åë°è { 'losses_streak': 0, 'wins_streak': 0, 'wins': 0, losses_total ': 0,'¼Õ½Ç ': 0,'wins_total ': 0,'ÃÑ ': 0} >>> redis¿¡¼­ »ç¿ëµÇ´Â Å°¸¦ ±¸¼º ÇÒ ¼öµµ ÀÖ½À´Ï´Ù. ÆÄÀ̽ã >>> Streak = Streak (dict (namespace = 'streak', positive_key = 'kills', positive_total_key = 'kills_stroak_key ='kills_streak_key = 'deaths', negative_total_key = 'deaths_total', neight_streak_key = 'deaths_streak', total_key = 'Total' )) ³×°¡ ³×°¡ ±×·¸´Ù¸é RedIS ÀνºÅϽº¸¦`localhost : 6379 / 0` ÀÌ¿ÜÀÇ ´Ù¸¥ °ÍÀ» ´Ù¸¥ °ÍÀ¸·Î ¼³Á¤ÇÏ·Á¸é ´ÙÀ½À» ¼öÇà ÇÒ ¼ö ÀÖ½À´Ï´Ù. pythonstreak.redis = redis.strictredis (host = 'some.host', port = 6379, db = 7) Á¦Ç° ȨÆäÀÌÁö


Streak-Python. °ü·Ã ¼ÒÇÁÆ®¿þ¾î