yeref 0.24.56__py3-none-any.whl → 0.24.58__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,13 +16182,23 @@ 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
|
|
16190
16197
|
data_users.append((
|
16191
16198
|
random.randint(100000, 999999),
|
16192
16199
|
json.dumps({"USER_WALLET": wallet, "USER_UTM": utm, "USER_DT": entry_dt}),
|
16193
|
-
json.dumps({"USER_DAU": user_dau, "USER_MAU": user_mau, "USER_TXS": txs,
|
16200
|
+
json.dumps({"USER_DAU": user_dau, "USER_MAU": user_mau, "USER_TXS": txs,
|
16201
|
+
"USER_PAYMENTS": payments, "USER_STATUSES": USER_STATUSES})
|
16194
16202
|
))
|
16195
16203
|
print(f"gen {data_users=}")
|
16196
16204
|
|
@@ -16289,7 +16297,7 @@ async def return_unit_metrics(bot, PROJECT_USERNAME, EXTRA_D, BASE_P):
|
|
16289
16297
|
if cmgr_values:
|
16290
16298
|
avg_cmgr = sum(cmgr_values) / len(cmgr_values)
|
16291
16299
|
writer.writerow([])
|
16292
|
-
writer.writerow([f"
|
16300
|
+
writer.writerow([f"Rev ~ ×{round(1 + avg_cmgr, 2)} monthly"])
|
16293
16301
|
|
16294
16302
|
# отправить файл
|
16295
16303
|
thumb = types.FSInputFile(os.path.join(EXTRA_D, "parse.jpg"))
|
@@ -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=oYcAHaa446TWJ629Jdp-HTUWUxKybIgPG8n5h8JQ-hE,1043913
|
5
|
+
yeref-0.24.58.dist-info/METADATA,sha256=ImkuOmjIcywQPSe2bTJStJWvt7aQUhsF7DDi093zEZw,119
|
6
|
+
yeref-0.24.58.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
7
|
+
yeref-0.24.58.dist-info/top_level.txt,sha256=yCQKchWHbfV-3OuQPYRdi2loypD-nmbDJbtt3OuKKkY,6
|
8
|
+
yeref-0.24.58.dist-info/RECORD,,
|
yeref-0.24.56.dist-info/RECORD
DELETED
@@ -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=3BMVp5kgWcr3Fg_pmBMVxe4tlhWFkERpyDAE6zUzHnM,1043383
|
5
|
-
yeref-0.24.56.dist-info/METADATA,sha256=JfRQscJLjPO6DK8LkTkSIet1FaQue5Tq4lCOS-JUEGo,119
|
6
|
-
yeref-0.24.56.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
7
|
-
yeref-0.24.56.dist-info/top_level.txt,sha256=yCQKchWHbfV-3OuQPYRdi2loypD-nmbDJbtt3OuKKkY,6
|
8
|
-
yeref-0.24.56.dist-info/RECORD,,
|
File without changes
|
File without changes
|