Guest mode. You can read posts without signing up. Comments, ratings, job contacts and your own posts open after you sign up and accept the rules. What is Kommit →

Reset

12 posts tagged #аналитика: articles, how-tos, projects and jobs from the portal's IT professionals.

Редакция КоммитРедакция портала
commit 213e44b · 11 days ago

🌐 Machine-translated from Russian. Show original

"How much does a Go developer get paid in Tashkent?" — this question is answered differently in chats, often without a source. We didn't invent average figures. Instead, we gathered where data with methodology is published, what they already have for 2026, and how to assess the vacancy rate yourself.

⚖️ Rules are changing. The post is an overview of official sources as of November 2026, not a legal or tax consultation. Before making a decision, check the current versions: kgd.gov.kz, egov.kz, enbek.gov.kz, soliq.uz, sti.gov.kg, eaeunion.org.

In this part:

What is confirmed as of November 2026

Only the figures we discovered and read in the source. The period is indicated everywhere.

Kazakhstan — hh.kz

Indicator for the IT sectorQ1 2026Q2 2026
The share of IT vacancies4.0% of all, −4.8% compared to last year3.5%, −13.2%,
Share of IT resumes3.9%, +21.5%4.0%, +15.3%,
Median offered salary326,740 tenge, −6.6%352,636 tenge, −0.6%
Competitiveness index (resume per vacancy)47.124.5
Read more
Comments 00 участников · 0 гостей🔒 Rate and discuss after signing up
Редакция КоммитРедакция портала
commit b17b2c6 · 15 days ago

🌐 Machine-translated from Russian. Show original

In this part:

Logging instead of print

print good for debugging, but production requires time, level, message source, and file rotation. Configure once at the entry point:

# src/pyreports/logs.py
import logging
import sys
from logging.handlers import RotatingFileHandler
from pathlib import Path


def setup_logging(name: str, log_dir: str | None = None, level: int = logging.INFO) -> None:
    fmt = logging.Formatter("%(asctime)s %(levelname)-7s %(name)s: %(message)s")
    root = logging.getLogger()
    root.setLevel(level)

    console = logging.StreamHandler(sys.stdout)       # под systemd это уйдет в journald
    console.setFormatter(fmt)
    root.addHandler(console)

    if log_dir:                                       # на Windows и в cron — файл с ротацией
        Path(log_dir).mkdir(parents=True, exist_ok=True)
        fh = RotatingFileHandler(Path(log_dir) / f"{name}.log", maxBytes=5_000_000, backupCount=10, encoding="utf-8")
        fh.setFormatter(fmt)
        root.addHandler(fh)

    logging.getLogger("httpx").setLevel(logging.WARNING)    # не пишем URL с токенами
    logging.getLogger("paramiko").setLevel(logging.WARNING)

Rules:

Read more
Comments 00 участников · 0 гостей🔒 Rate and discuss after signing up
Редакция КоммитРедакция портала
commit 51a5fb5 · 15 days ago

🌐 Machine-translated from Russian. Show original

Different roles are hidden under "analyst" in vacancies. Clarify in advance what it means:

RoleMain Points in the WorkWhat is checked in interviews
Business analystbusiness processes and needsidentifying requirements, modeling processes, communication,
System Analystas requirements become a systemspecifications, integrations, APIs, data models, SQL,
Data Analystanswers business questions aboutSQL data, statistics, metrics, visualization, Python,

Designations: J — junior, M — middle, S — senior.

In this part:

Business and systems analyst

J. How do functional requirements differ from non-functional ones?

Functional — what the system does: "the user can export the report to Excel." Non-functional — with what quality: performance ("the report takes no longer than 10 seconds"), security, availability, convenience, data storage requirements. A typical mistake is forgetting non-functional ones, only to find out the system "works, but not like that."

J. How to write a good user story?

Template: "As a , I want so that " — plus acceptance criteria. For example:

As an accountant, I want to upload the bank statement from the file so I don't have to enter payments manually.
Criteria: our bank statement format is supported; duplicates are not reloaded; unrecognized payments are shown as a list for manual processing.

Acceptance criteria are conveniently written in the format Given / When / Then — they can then be easily turned into tests.

Read more
Comments 00 участников · 0 гостей🔒 Rate and discuss after signing up
Редакция КоммитРедакция портала
commit 052e692 · 15 days ago

🌐 Machine-translated from Russian. Show original

In this part:

What we will do

  1. Alerts: any script from previous parts sends a message to the chat—without a separate bot process.
  2. Bot with commands: /status checks ports, /certs — certificate deadlines; the bot responds only to "its own."
  3. Periodic checks inside the bot: once every 5 minutes — and a message only if something changes.

Creating a bot

  1. In Telegram, open @BotFather, command /newbot, enter the bot's name and login (ends with bot).
  2. BotFather will issue a token — this is the bot's password. Immediately put it in the .env as TG_BOT_TOKEN, don't send it anywhere. Leaked — /revoke to BotFather.
  3. Add the bot to the workgroup or message them privately.
  4. Learn chat_id: temporarily launch the bot from the section below and send a /start — it will show the chat ID.

Alerts from any script

No bot library is needed to send a message — one HTTP request to the Bot API is enough.

Read more
Comments 00 участников · 0 гостей🔒 Rate and discuss after signing up
Редакция КоммитРедакция портала
commit fd1085c · 15 days ago

🌐 Machine-translated from Russian. Show original

In this part:

Availability checking: ping and ports

Ping shows that the host is alive, and checking the TCP port indicates that the service is running. For the admin, the second thing is more important: the server can ping, while the 1C or SQL service can be idle.

# src/pyreports/checks.py
import platform
import socket
import subprocess
from concurrent.futures import ThreadPoolExecutor


def ping(host: str, timeout_s: int = 1) -> bool:
    if platform.system() == "Windows":
        cmd = ["ping", "-n", "1", "-w", str(timeout_s * 1000), host]
    else:
        cmd = ["ping", "-c", "1", "-W", str(timeout_s), host]
    return subprocess.run(cmd, stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL).returncode == 0


def port_open(host: str, port: int, timeout_s: float = 2) -> bool:
    try:
        with socket.create_connection((host, port), timeout=timeout_s):
            return True
    except OSError:
        return False


TARGETS = [
    ("srv-1c.corp.local", 1541),    # менеджер кластера 1С
    ("srv-sql.corp.local", 5432),   # PostgreSQL
    ("dc01.corp.local", 636),       # LDAPS
    ("mail.company.kz", 587),       # SMTP
]


def check_all(targets=TARGETS) -> list[tuple[str, int, bool]]:
    with ThreadPoolExecutor(max_workers=20) as pool:
        results = pool.map(lambda t: (t[0], t[1], port_open(*t)), targets)
    return list(results)


if __name__ == "__main__":
    for host, port, ok in check_all():
        print(f"{'OK  ' if ok else 'FAIL'} {host}:{port}")
Read more
Comments 00 участников · 0 гостей🔒 Rate and discuss after signing up
Редакция КоммитРедакция портала
commit 9d53ada · 15 days ago

🌐 Machine-translated from Russian. Show original

In this part:

requests or httpx

requestshttpx
Stylesynchronoussynchronous and asynchronous
HTTP/2noyes (packet httpx[http2])
Default timeoutno (can wait forever)5 seconds
Repeatsafter urllib3.Retryonly the connection repeat; the rest is your own code
Whereappears in a huge number of examples and librariesin modern projects, python-telegram-bot runs on top of it

Both libraries are good. In new scripts, httpx is more convenient: the same API, plus async when needed (the bot in part 5 is asynchronous).

uv add httpx

First request

An example with a real public API — what is the latest version of the project on GitHub. It's convenient to keep track of software updates you maintain.

Read more
Comments 00 участников · 0 гостей🔒 Rate and discuss after signing up
Редакция КоммитРедакция портала
commit 9e4dd9b · 15 days ago

🌐 Machine-translated from Russian. Show original

In this part:

pathlib — pain-free paths

The pathlib module works the same on Windows and Linux, and paths can be written through direct slash even on Windows.

from datetime import datetime, timedelta
from pathlib import Path

base = Path("D:/exchange")          # на Linux, например, Path("/srv/exchange")
report = base / "out" / f"report_{datetime.now():%Y-%m-%d}.xlsx"
report.parent.mkdir(parents=True, exist_ok=True)

print(report.name, report.suffix, report.stem)
print(report.exists())

# все CSV в папке и подпапках
for f in base.rglob("*.csv"):
    print(f, f.stat().st_size)

Windows network folders also work: Path("//fileserver/exchange") — Python understands UNC paths with direct slashes.

Example: cleaning old files with a "trial run"

Any script it removes should first run in "show only" mode.

Read more
Comments 00 участников · 0 гостей🔒 Rate and discuss after signing up
Редакция КоммитРедакция портала
commit f4fc706 · 15 days ago

🌐 Machine-translated from Russian. Show original

In this part:

Why an admin and analyst needs Python

PowerShell and bash are great for short commands. Python wins when the script starts growing: you need to read Excel, go to the API, compile a report, send it to Telegram, and work equally on Windows and Linux. Python has a huge standard library and ready-made packages for almost any system: Excel, SSH, LDAP, mail, databases, cloud.

Typical tasks this series will cover:

  • daily report from CSV or database in Excel and mailing;
  • checking the availability of servers, ports, and SSL certificate expirations;
  • unloading inactive accounts from Active Directory;
  • collecting information from a dozen servers via SSH or WinRM;
  • A Telegram bot that sends alerts and responds to commands /status.

Which version to take

As of November 2026, the last stable branch is Python 3.15; the previous 3.14 also receives fixes, and 3.13 receives only security fixes. Each branch is supported for 5 years.

Read more
Comments 00 участников · 0 гостей🔒 Rate and discuss after signing up
Редакция КоммитРедакция портала
commit 934724f · 19 days ago

🌐 Machine-translated from Russian. Show original

In this part:

North Star metric

One main metric that reflects value to the user and is related to the business. Examples:

  • time tracking service — the number of employees whose timesheet was closed without manual editing;
  • marketplace — the number of successful orders per week;
  • IT portal — the number of publications that received a substantive response.

Don't choose the "number of registrations" — it grows and has no value.

Funnel: AARRR

StageQuestionExample of a metric
Acquisition — attractingfrom wherevisits come from through
Activation — activation ofwhether the first valueshare of those who made a key action on the first day of the
Retention — retentionwhethershare of active people return after 7 and 30 days
Revenue — revenuewhetherconversion pays to pay, average check,
Referral — recommendationswhether othersthe share of invitees

Most often, the bottleneck is activation and retention: attracting users to a product that doesn't retain is expensive.

Cohort retention

Compare users who arrived in different weeks or months: whether retention in new cohorts improved after the changes. SQL for cohorts — in the "SQL for Business" post.

A/B tests

Read more
Comments 00 участников · 0 гостей🔒 Rate and discuss after signing up
Редакция КоммитРедакция портала
commit 8491fa5 · 19 days ago

🌐 Machine-translated from Russian. Show original

In this part:

Simple anti-fraud system architecture

  1. Event — registration, login, payment, withdrawal, change of details.
  2. Signal collection — data about the user, device, network, history.
  3. Rules and scoring — risk assessment calculation.
  4. The solution is to skip, request confirmation, send for manual review, or reject.
  5. Feedback — the result (confirmed or not) is returned to the system for rules configuration.

You can start with a module in your own code and a table in the database — specialized platforms are needed when the volume grows.

Signals

GroupExamples
Accountaccount age, whether email and phone number are confirmed, transaction history,
Deviceis a new device for the account, how many accounts are there
NetworkIP from a data center or VPN, IP country, matching address
Velocitynumber of operations per 10 minutes, hour, day,
Amountdeviation from the user's regular receipt
Contactsshared phone numbers, addresses, maps, devices with known scammers,

Use personal data signals within the framework of consent and legal requirements and keep them as long as necessary for protection.

Velocity SQL rules

The most useful rules are about speed. Example: how many different maps were tried on one device in an hour:

Read more
Comments 00 участников · 0 гостей🔒 Rate and discuss after signing up
Редакция КоммитРедакция портала
commit 9e7e459 · 19 days ago

🌐 Machine-translated from Russian. Show original

You don't need to know all SQL analytics — you need to confidently solve typical business tasks. Below are 10 queries that cover most daily questions. Examples for PostgreSQL on tables orders(id, customer_id, amount, status, created_at) and customers(id, city, created_at).

In this part:

1. Revenue by month

SELECT date_trunc('month', created_at) AS month,
       sum(amount) AS revenue, count(*) AS orders
FROM orders WHERE status = 'paid'
GROUP BY 1 ORDER BY 1;

2. Average check and median

SELECT avg(amount) AS avg_check,
       percentile_cont(0.5) WITHIN GROUP (ORDER BY amount) AS median_check
FROM orders WHERE status = 'paid';

The median is fairer than average when there are rare large orders.

3. Top 10 Clients

SELECT customer_id, sum(amount) AS total, count(*) AS orders
FROM orders WHERE status = 'paid'
GROUP BY customer_id ORDER BY total DESC LIMIT 10;

4. Growth compared to last month

Read more
Comments 00 участников · 0 гостей🔒 Rate and discuss after signing up
Редакция КоммитРедакция портала
commit 6f1797c · 19 days ago

🌐 Machine-translated from Russian. Show original

A good technical specification saves months of revisions. A bad one is either empty ("make it convenient") or 200 pages long that no one reads. Below is a template that works for most projects: websites, integrations, 1C improvements, internal systems.

In this part:

1. Purpose and Context

  • Why the project: what business problem are we solving. "Managers spend 2 hours a day manually transferring orders from the website to 1C."
  • Once we understand that the goal has been achieved: measurable. "Orders arrive in 1C automatically within 5 minutes, no manual transfer needed."
  • What is outside the project framework is just as important as what's within it.

2. Users and roles

| Role of | What does it do in the | system
| --- | --- |
| The sales manager | sees orders, changes statuses, |
| The storekeeper | gathers orders, marks shipments, |
| Administrator | manages directories and users |

3. Scenarios

Describe the operation through the eyes of the user, step by step:

Scenario: new order from the website. The buyer places an order → the order appears in 1C with the status "New" → the manager receives a notification → the manager confirms the order → the goods are reserved.

Read more
Comments 00 участников · 0 гостей🔒 Rate and discuss after signing up