Skip to main content

English | Русский

buy-smarter: describe what you need, get offers from Kaspi, Ozon and OLX ranked for your budget and city. A real best pick scores 66 of 100, with a bar for each axis: ingredient 25/25, brand 1.5/10, price 11/25, reviews 3.4/12, specs 15/15, popularity 0.3/3, availability 10/10.

CI License: MIT Python 3.12+

Ranks Kaspi, Ozon and OLX offers for your budget and city, and shows why.

You describe what you need ("a portable water flosser, IPX7, under 40,000 ₸, Almaty"). buy-smarter searches Kaspi.kz, Ozon.kz and OLX.kz (used items). It ranks offers for your budget, city and must-have features. Each pick shows which axes scored it and why.

It runs as a CLI, a desktop app, an MCP server for Claude and an HTTP API.

Quick start

Kaspi needs a Kazakhstan IP: datacenter IPs get HTTP 429 (set KASPI_PROXY to a residential proxy).

macOS / Linux:

curl -LsSf https://raw.githubusercontent.com/octrow/buy-smarter/main/install.sh | sh

Windows (PowerShell):

powershell -ExecutionPolicy ByPass -c "irm https://raw.githubusercontent.com/octrow/buy-smarter/main/install.ps1 | iex"

The installer gets uv (it brings its own Python), installs the latest release with the desktop app, and runs buysmarter doctor. doctor says what is missing and what that turns off. Update with buysmarter update. Remove with sh -s -- --uninstall. API keys and a proxy go in ~/.config/buysmarter/.env (see .env.example).

Then run your first search:

buysmarter recommend "need a water flosser, portable, IPX7, under 40000 tg, Almaty"

No terminal? Each release has a .deb and builds for Windows, macOS and Linux: install the desktop app. Developing? See install from source.

What the app looks like

The desktop app (buysmarter gui) opens the same reports and has a dark theme.

Desktop app, light theme, Past searches screen: four real runs on the left (water flosser under 40,000, smartphone under 150,000, robot vacuum, adapalene cream); on the right the water flosser report, best pick Xiaomi Mijia Electric Flusher 2 MEO705 on Kaspi, 62 of 100, 15,562 tenge, with a table of axis scores and the reason for each. Desktop app, dark theme, Search screen: a query field, city and budget, marketplace checkboxes Kaspi, Ozon (unavailable without Chrome) and OLX, options for AI query parsing, review summary and known brands only, and the recent searches with a Repeat button.

What it does

  • Reads the Kaspi and OLX JSON endpoints directly, and keeps working when one source is down.
  • Discounts gamed reviews: five-star bursts, junk texts, unverified purchases, defect complaints.
  • Checks your must-have features against specs, then against review quotes.
  • Learns brands and models for a new category (learn-category), also on the first query.
  • Adds used items from OLX, phone specs from Kimovil and price history.

More in features in detail. Closest open-source projects: analogs.

How it runs

One pipeline sits behind the CLI, the MCP server and the API. A run takes tens of seconds. The API puts it on a Redis stream, a worker runs it, and the client polls for the result.

flowchart TD
    client([client]) -->|"POST /recommend, GET /recommend/{id}"| api[FastAPI]
    api -->|"job, dedupe, rate limit"| redis[(Redis)]
    redis -->|"stream, ack after the run"| worker[taskiq worker]
    worker -->|result| redis
    worker -->|"search, offers, reviews"| markets[Kaspi · Ozon · OLX]
    worker -->|price history| pg[(Postgres)]
    api -.->|metrics, traces| obs[Prometheus · Grafana · Jaeger]
    worker -.-> obs

More docs

Limits

  • Kaspi needs a Kazakhstan residential IP or KASPI_PROXY.
  • Ozon may still show its anti-bot page; ozon-setup refreshes the saved session.
  • Review velocity is displayed but not scored yet.
  • A burst of requests can get the IP blocked by Kimovil for a while. Until it clears, only cached phone specs are used.
  • The marketplace endpoints are unofficial and can change without notice.

License

MIT. Third-party code is listed in THIRD_PARTY_NOTICES.md.

Metadata

Release files for buysmarter 0.13.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for buysmarter 0.13.3
File Size Uploaded Provenance Actions
buysmarter-0.13.3.tar.gz 4.7 MB With provenance Details for buysmarter-0.13.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for buysmarter 0.13.3
File Interpreter ABI Platform Actions
buysmarter-0.13.3-py3-none-any.whl Python 3 none any Details for buysmarter-0.13.3-py3-none-any.whl

Total release size: 5.6 MB

Release files / buysmarter-0.13.3.tar.gz

Download URL buysmarter-0.13.3.tar.gz
Size 4.7 MB
Tags Source
SHA-256 checksum
How to use checksums
fb3aec1bf8b61ac719555fea76aa4780581e54d6fa2c6cc02946ae5379413dee
BLAKE2b-256 checksum
How to use checksums
648ea909edea681c4d82bae4f6010029765726153fdfbc8bef67fac60db8d389
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 5, 2026.

Transparency log

Release files / buysmarter-0.13.3-py3-none-any.whl

Download URL buysmarter-0.13.3-py3-none-any.whl
Size 914.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
80fffbaf47757b23bcc0264f168a208edd6d695fa1db50277025c82c261e7110
BLAKE2b-256 checksum
How to use checksums
602b3051c7d5023bca60fe706ccae7465540af5cce7caeccfcae3858c7fc1bc8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 5, 2026.

Transparency log

Security for buysmarter 0.13.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for buysmarter-0.13.3.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 5, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page