yeref 0.24.55__py3-none-any.whl → 0.24.57__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
yeref/yeref.py CHANGED
@@ -16175,8 +16175,6 @@ async def return_unit_metrics(bot, PROJECT_USERNAME, EXTRA_D, BASE_P):
16175
16175
 
16176
16176
  # вход в приложение
16177
16177
  user_dau_dates.add(entry_date)
16178
-
16179
- # остальные посещения
16180
16178
  for m in user_mau:
16181
16179
  day = random.randint(1, 28)
16182
16180
  visit = f"{m}-{day:02}"
@@ -16184,6 +16182,15 @@ async def return_unit_metrics(bot, PROJECT_USERNAME, EXTRA_D, BASE_P):
16184
16182
  if dt_visit >= entry_dt_obj and random.random() < 0.7:
16185
16183
  user_dau_dates.add(visit)
16186
16184
 
16185
+ # статусы (отток) с низкой вероятностью
16186
+ USER_STATUSES = []
16187
+ if random.random() < 0.2: # 10% шанс оттока
16188
+ churn_month = random.choice(valid_months)
16189
+ churn_day = random.randint(1, 28)
16190
+ churn_date = f"{churn_month}-{churn_day:02}"
16191
+ churn_ts = datetime.strptime(churn_date, "%Y-%m-%d").strftime("%d-%m-%Y") + "_23-59-59"
16192
+ USER_STATUSES = [{random.choice(["left", "kicked"]): churn_ts}]
16193
+
16187
16194
  user_dau = sorted(user_dau_dates)
16188
16195
  wallet = f"wallet{random.randint(1, 100)}" if txs else random.choice([f"wallet{random.randint(1, 100)}", ""])
16189
16196
 
@@ -16289,8 +16296,7 @@ async def return_unit_metrics(bot, PROJECT_USERNAME, EXTRA_D, BASE_P):
16289
16296
  if cmgr_values:
16290
16297
  avg_cmgr = sum(cmgr_values) / len(cmgr_values)
16291
16298
  writer.writerow([])
16292
- writer.writerow(
16293
- [f"Every month, revenue multiplied by approximately {round(1 + avg_cmgr, 2)}× on average."])
16299
+ writer.writerow([f"Revenue ~ ×{round(1 + avg_cmgr, 2)} avg-monthly"])
16294
16300
 
16295
16301
  # отправить файл
16296
16302
  thumb = types.FSInputFile(os.path.join(EXTRA_D, "parse.jpg"))
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: yeref
3
- Version: 0.24.55
3
+ Version: 0.24.57
4
4
  Summary: desc-f
5
5
  Author: john smith
6
6
  Dynamic: author
@@ -0,0 +1,8 @@
1
+ yeref/__init__.py,sha256=Qpv3o6Xa78VdLcsSRmctGtpnYE9btpAkCekgGhgJyXM,49
2
+ yeref/l_.py,sha256=LMX_olmJwq-tgoALJCnhV_fGrL_i_43yBLkLIcEVqGo,1176743
3
+ yeref/tonweb.js,sha256=Jf6aFOQ1OIY4q7fINYz-m5LsI3seMus124M5SYYZmtE,443659
4
+ yeref/yeref.py,sha256=05aOhqSqWUNjoO2Bl8KA7vBlNt8Qmb1fHbKcaemfayQ,1043861
5
+ yeref-0.24.57.dist-info/METADATA,sha256=_kLYCr5Hvc8ehS3rufAPiecXPrfqpqMQYrqFeY_wjwE,119
6
+ yeref-0.24.57.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
7
+ yeref-0.24.57.dist-info/top_level.txt,sha256=yCQKchWHbfV-3OuQPYRdi2loypD-nmbDJbtt3OuKKkY,6
8
+ yeref-0.24.57.dist-info/RECORD,,
@@ -1,8 +0,0 @@
1
- yeref/__init__.py,sha256=Qpv3o6Xa78VdLcsSRmctGtpnYE9btpAkCekgGhgJyXM,49
2
- yeref/l_.py,sha256=LMX_olmJwq-tgoALJCnhV_fGrL_i_43yBLkLIcEVqGo,1176743
3
- yeref/tonweb.js,sha256=Jf6aFOQ1OIY4q7fINYz-m5LsI3seMus124M5SYYZmtE,443659
4
- yeref/yeref.py,sha256=_h3ciEagKp2_uGGINEw9r6xsJH0yhk6BpE7w8_EcTX8,1043439
5
- yeref-0.24.55.dist-info/METADATA,sha256=Hb4WddgWN-AK2udLXUXHQ0k1cJB76WbDDQnVPuoNTGY,119
6
- yeref-0.24.55.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
7
- yeref-0.24.55.dist-info/top_level.txt,sha256=yCQKchWHbfV-3OuQPYRdi2loypD-nmbDJbtt3OuKKkY,6
8
- yeref-0.24.55.dist-info/RECORD,,