yeref 0.24.52__tar.gz → 0.24.54__tar.gz

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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: yeref
3
- Version: 0.24.52
3
+ Version: 0.24.54
4
4
  Summary: desc-f
5
5
  Author: john smith
6
6
  Dynamic: author
@@ -2,7 +2,7 @@ from setuptools import setup
2
2
 
3
3
  setup(
4
4
  name='yeref',
5
- version='0.24.52',
5
+ version='0.24.54',
6
6
  description='desc-f',
7
7
  author='john smith',
8
8
  packages=['yeref'],
@@ -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(8):
16143
+ for _ in range(20):
16144
16144
  # дата входа
16145
16145
  entry_month = random.choice(months)
16146
16146
  entry_day = random.randint(1, 28)
@@ -16253,7 +16253,7 @@ async def return_unit_metrics(bot, PROJECT_USERNAME, EXTRA_D, BASE_P):
16253
16253
  else:
16254
16254
  LTV2 = None
16255
16255
 
16256
- LTV1 = LTV2
16256
+ # LTV1 = LTV2
16257
16257
  # CMGR: от первого месяца до текущего
16258
16258
  if idx == 0 or first_mrr is None or first_mrr == 0:
16259
16259
  CMGR = None
@@ -16270,6 +16270,7 @@ async def return_unit_metrics(bot, PROJECT_USERNAME, EXTRA_D, BASE_P):
16270
16270
  "ARR": fmt(ARR),
16271
16271
  "ChurnR": fmt(ChurnR),
16272
16272
  "LTV1": fmt(LTV1),
16273
+ "LTV2": fmt(LTV2),
16273
16274
  "CMGR": fmt(CMGR),
16274
16275
  "CAC": ""
16275
16276
  })
@@ -16277,13 +16278,20 @@ async def return_unit_metrics(bot, PROJECT_USERNAME, EXTRA_D, BASE_P):
16277
16278
  path = os.path.join(EXTRA_D, "2_unit_metrics.csv")
16278
16279
  with open(path, "w", newline="", encoding="utf-8") as f:
16279
16280
  writer = csv.writer(f)
16280
- writer.writerow(["MO", "N", "MRR", "ARPU", "ARR", "ChurnR", "LTV1", "CMGR", "CAC"])
16281
+ writer.writerow(["MO", "N", "MRR", "ARPU", "ARR", "ChurnR", "LTV1", "LTV2", "CMGR", "CAC"])
16281
16282
  for row in results:
16282
16283
  writer.writerow([
16283
16284
  row["MO"], row["N"], row["MRR"], row["ARPU"], row["ARR"],
16284
- row["ChurnR"], row["LTV1"], row["CMGR"], row["CAC"]
16285
+ row["ChurnR"], row["LTV1"], row["LTV2"], row["CMGR"], row["CAC"]
16285
16286
  ])
16286
16287
 
16288
+ cmgr_values = [row["CMGR"] for row in results if row["CMGR"] is not None]
16289
+ if cmgr_values:
16290
+ avg_cmgr = sum(cmgr_values) / len(cmgr_values)
16291
+ writer.writerow([])
16292
+ writer.writerow(
16293
+ [f"Every month, revenue multiplied by approximately {round(1 + avg_cmgr, 2)}× on average."])
16294
+
16287
16295
  # отправить файл
16288
16296
  thumb = types.FSInputFile(os.path.join(EXTRA_D, "parse.jpg"))
16289
16297
  await bot.send_document(chat_id=my_tid, document=types.FSInputFile(path), thumbnail=thumb)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: yeref
3
- Version: 0.24.52
3
+ Version: 0.24.54
4
4
  Summary: desc-f
5
5
  Author: john smith
6
6
  Dynamic: author
File without changes
File without changes
File without changes
File without changes
File without changes