yeref 0.24.48__py3-none-any.whl → 0.24.50__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
@@ -16140,7 +16140,7 @@ async def return_unit_metrics(bot, PROJECT_USERNAME, EXTRA_D, BASE_P):
16140
16140
 
16141
16141
  months = ["2025-06", "2025-07", "2025-08", "2025-09"]
16142
16142
  data_users = []
16143
- for _ in range(3):
16143
+ for _ in range(5):
16144
16144
  # дата входа
16145
16145
  entry_month = random.choice(months)
16146
16146
  entry_day = random.randint(1, 28)
@@ -16207,6 +16207,7 @@ async def return_unit_metrics(bot, PROJECT_USERNAME, EXTRA_D, BASE_P):
16207
16207
  json.dumps({"USER_WALLET": wallet, "USER_UTM": utm, "USER_DT": entry_dt}),
16208
16208
  json.dumps({"USER_DAU": user_dau, "USER_MAU": user_mau, "USER_TXS": txs, "USER_PAYMENTS": payments})
16209
16209
  ))
16210
+ print(f"gen {data_users=}")
16210
16211
 
16211
16212
  for USER_TID, USER_VARS, USER_LSTS in data_users:
16212
16213
  USER_VARS = json.loads(USER_VARS or USER_VARS_)
@@ -16214,7 +16215,6 @@ async def return_unit_metrics(bot, PROJECT_USERNAME, EXTRA_D, BASE_P):
16214
16215
  USER_DT = USER_VARS.get("USER_DT", "")
16215
16216
  USER_PAYMENTS = USER_LSTS.get("USER_PAYMENTS", [])
16216
16217
  USER_STATUSES = USER_LSTS.get("USER_STATUSES", [])
16217
- # месяц регистрации
16218
16218
 
16219
16219
  if USER_DT:
16220
16220
  dt_obj = datetime.strptime(USER_DT, "%d-%m-%Y_%H-%M-%S")
@@ -16243,7 +16243,6 @@ async def return_unit_metrics(bot, PROJECT_USERNAME, EXTRA_D, BASE_P):
16243
16243
  metrics[mo_s]["churn_count"] += 1
16244
16244
  break
16245
16245
 
16246
- # список месяцев в порядке
16247
16246
  all_months = sorted(metrics.keys())
16248
16247
  results = []
16249
16248
  first_mrr = None
@@ -16252,6 +16251,7 @@ async def return_unit_metrics(bot, PROJECT_USERNAME, EXTRA_D, BASE_P):
16252
16251
  N = data["N"]
16253
16252
  MRR = data["sum_amount"]
16254
16253
 
16254
+
16255
16255
  def fmt(x):
16256
16256
  return (f"{x:.2f}".rstrip("0").rstrip(".")) if x is not None else ""
16257
16257
  mrr_fmt = fmt(MRR)
@@ -16269,13 +16269,14 @@ async def return_unit_metrics(bot, PROJECT_USERNAME, EXTRA_D, BASE_P):
16269
16269
  else:
16270
16270
  LTV2 = None
16271
16271
 
16272
+ LTV1 = LTV2
16272
16273
  # CMGR: от первого месяца до текущего
16273
16274
  if idx == 0 or first_mrr is None or first_mrr == 0:
16274
16275
  CMGR = None
16275
16276
  if idx == 0:
16276
16277
  first_mrr = MRR
16277
16278
  else:
16278
- CMGR = ((MRR / first_mrr) ** (1 / idx) ) - 1
16279
+ CMGR = ((MRR / first_mrr) ** (1 / idx)) - 1
16279
16280
 
16280
16281
  results.append({
16281
16282
  "MO": mo,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: yeref
3
- Version: 0.24.48
3
+ Version: 0.24.50
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=ruRMqzuv-ydCrEnwRZ62PhZDYHZiq4i5khk_oHstAME,1043794
5
+ yeref-0.24.50.dist-info/METADATA,sha256=sQBBMbjrLuSJyAWCBcYHf-5lQsokPAuzg4-jaFRvyRo,119
6
+ yeref-0.24.50.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
7
+ yeref-0.24.50.dist-info/top_level.txt,sha256=yCQKchWHbfV-3OuQPYRdi2loypD-nmbDJbtt3OuKKkY,6
8
+ yeref-0.24.50.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=XgDATwi2ZNsvm9HNC8-fepJrdvDBp-7wRVT_LXCKyBg,1043838
5
- yeref-0.24.48.dist-info/METADATA,sha256=eG0aW2Lhbbg-EAs7sk9QczpQTdpCKKJ3fRJmraorYmM,119
6
- yeref-0.24.48.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
7
- yeref-0.24.48.dist-info/top_level.txt,sha256=yCQKchWHbfV-3OuQPYRdi2loypD-nmbDJbtt3OuKKkY,6
8
- yeref-0.24.48.dist-info/RECORD,,