Streak-Pythonمكتبة لحساب الشرائط الفوز / الخسارة باستخدام Redis كخلفية | |
التحميل الان |
Streak-Python الترتيب والملخص
الإعلانات
- رخصة:
- MIT/X Consortium Lic...
- السعر:
- FREE
- اسم الناشر:
- David Czarnecki
- موقع ويب الناشر:
- https://github.com/czarneckid/
Streak-Python العلامات
Streak-Python وصف
Streak هي مكتبة بيثون لحساب الشرائط الفوز / الخسارة. يستخدم Redis كخلفية لجمع البيانات. هذا منفذ بيثون الأصلي (Streak] (https://github.com/czarneckid/ereak) Ruby Gem.usagePython >>> من Streak Import Streak >>> Streak = Streak () >>> Streak.ggort ( "David"، 3) >>> Streak.ggort ('David'، -2) >>> Streak.ggortion ('David'، 5) >>> Streak.Aggregate ('David'، -1) >>> إحصائيات = Streak.statistics ('David') >>> إحصائيات الطباعة {'Losses_streak': 2، "Wins_Streak": 5، 'WINS': 0، "LISSES_TOTAL": 3، "الخسائر": 1، "Wins_total": 8، 'المجموع': 11} >>> Streak.Reset_statistics ('David') >>> إحصائيات = Streak.statistics ('David') >>> إحصائيات الطباعة {'losses_streak': 0، "Wins_streak": 0، 'WINS': 0، 'LISSES_TOTAL': 0، 'الخسائر': 0، "Wins_total": 0، 'المجموع': 0} >>> يمكنك أيضا تكوين المفاتيح المستخدمة في Redis: Python >>> Streak = Streak (DICT (NAMESPACE = Streak '= "Streak"، fieform_key = "kills_total"، feductive_total_key =' kills_total '، position_streak_key =' kills_streak '، سلبي_KEY = "الوفيات"، سلبية_TOTAL_KEY = "Deature_total"، deathers_total "، deather_streak_streak_key =" deature_streak "، total_key =' talth ' )) إذا كنت NE إد لتعيين مثيل Redis لشيء آخر غير المحلي: 6379 / 0`، يمكنك القيام به: pythonstreak.redis = redis.strictredis (host = 'some.host'، port = 6379، db = 7) صفحة المنتج
Streak-Python برامج ذات صلة