Metadata-Version: 2.4
Name: steamsift
Version: 0.4.0
Summary: Steam deals, sifted: every discount checked against two years of prices. HOT, GREAT, OK, MEH or NOPE.
Author: sa1ntsinner
License-Expression: MIT
Project-URL: Homepage, https://sa1ntsinner.github.io/sift/
Project-URL: Source, https://github.com/sa1ntsinner/sift
Project-URL: Issues, https://github.com/sa1ntsinner/sift/issues
Keywords: steam,deals,sale,wishlist,recommendations,telegram,cli,tui
Classifier: Development Status :: 4 - Beta
Classifier: Environment :: Console
Classifier: Intended Audience :: End Users/Desktop
Classifier: Natural Language :: English
Classifier: Natural Language :: Russian
Classifier: Operating System :: Microsoft :: Windows
Classifier: Operating System :: MacOS
Classifier: Operating System :: POSIX :: Linux
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Classifier: Topic :: Games/Entertainment
Requires-Python: >=3.11
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: rich>=13.0.0
Requires-Dist: requests>=2.28.0
Requires-Dist: python-dotenv>=1.0.0
Requires-Dist: platformdirs>=4.0
Requires-Dist: keyring>=24.0
Requires-Dist: tomli-w>=1.0
Requires-Dist: textual>=1.0
Requires-Dist: textual-image>=0.8
Requires-Dist: pillow>=10.0
Provides-Extra: dev
Requires-Dist: pytest>=8; extra == "dev"
Requires-Dist: pyyaml>=6; extra == "dev"
Requires-Dist: build; extra == "dev"
Requires-Dist: twine; extra == "dev"
Dynamic: license-file

<p align="center">
  <img src="https://raw.githubusercontent.com/sa1ntsinner/sift/main/assets/sift-wordmark.png" alt="sift" width="200" />
</p>

<p align="center"><em>Steam has thousands of discounts. sift tells you which ones are worth it.</em></p>

<p align="center">
  <a href="https://sa1ntsinner.github.io/sift/"><img src="https://img.shields.io/badge/website-sift-2bff88?style=flat" alt="Website" /></a>
  &nbsp;
  <a href="https://github.com/sa1ntsinner/sift/releases/latest"><img src="https://img.shields.io/github/v/release/sa1ntsinner/sift?style=flat&color=24292f" alt="Latest release" /></a>
  &nbsp;
  <img src="https://img.shields.io/badge/Windows%20·%20macOS%20·%20Linux-24292f?style=flat" alt="Windows, macOS, Linux" />
  &nbsp;
  <a href="https://pypi.org/project/steamsift/"><img src="https://img.shields.io/pypi/v/steamsift?style=flat&color=24292f&label=pypi" alt="PyPI" /></a>
  &nbsp;
  <a href="LICENSE"><img src="https://img.shields.io/badge/license-MIT-24292f?style=flat" alt="MIT license" /></a>
</p>

<p align="center">
  <img src="https://raw.githubusercontent.com/sa1ntsinner/sift/main/assets/sift.gif" alt="sift in a terminal: a list of Steam deals with a verdict on each, the filter panel and the wishlist" width="100%" />
</p>

sift is a free terminal app for Steam deals. It reads two years of Steam prices for every discount, checks how often
the game goes on sale, what it usually costs on sale, whether the base price was just raised and what your Steam
Family already owns, and gives each deal one word.

Most "record lows" on Steam come back every five or six weeks. sift tells those apart from the prices that rarely
show up, so you buy the right game at the right moment and skip the rest.

## Verdicts

| | |
|---|---|
| **HOT** | A rare price on a game players rate: the lowest in two years, new or not seen for four months, well under the usual sale price, at least −40%. The game needs 80%+ positive reviews from 1,000+ players (or 95%+ from 300+). Or a cheaper bundle. Buy now if you want it. |
| **GREAT** | The lowest price in two years, but it comes back, or the cut is small, or few people have played the game. No hurry. |
| **OK** | An ordinary sale price. Also any game with mixed reviews (under 70% positive), however cheap. |
| **MEH** | Its sales are usually 12–30% cheaper. Wait for the next one. |
| **NOPE** | Its sales are usually 30%+ cheaper, or the base price went up just before the sale. Wait. |

How the rules were chosen: a backtest on 8,700 real Steam sale starts (ITAD price logs, 2024–2026), judging each sale
only with the history before it and checking what came after. After a HOT, the next sale was a third dearer on
average, and four times out of ten the price was not back within three months. A GREAT price was back within three
months 93 times out of 100. After MEH or NOPE the next sale was 13–17% cheaper. The
yardstick for waiting is the game's usual sale price over the last year, not its single lowest price: a one-off low
from a year ago rarely comes back. A big Steam sale a few weeks away is no reason to wait for a game that is on sale
now: those games cost more during the seasonal sale than before it.

The review rules do not apply to your wishlist: you put those games there. They exist because a rare price on an
unknown or disliked game is not a reason to hurry, and a list of HOT deals should be one you would actually buy.

Prices are compared in what you pay, not in percent: $15 at −60% is not a low if the game sold for $5 last spring.
Wishlist games that are not on sale show **WAIT** with how deep they usually go and when the next sale is likely.

When a price is not worth taking, sift says when to come back. The date comes from the game's own rhythm, Steam's
28-day pause between two discounts and the Steam-wide sales ahead. In the backtest it was within a week of the real
start for 62% of sales and within two weeks for 77%.

A game needs a year of price history to be judged by price. IsThereAnyDeal limits how many histories a key may fetch
in five minutes, so after a long break sift fills them in over a few refreshes, the games you are likeliest to want
first. Until then a game shows "record · little data", and the header says how many are left.

## Install

**Linux and macOS**

```bash
curl -fsSL https://sa1ntsinner.github.io/sift/install.sh | sh
```

**Windows** (PowerShell)

```powershell
irm https://sa1ntsinner.github.io/sift/install.ps1 | iex
```

Both put the latest release binary on your PATH (`~/.local/bin`, or `%LOCALAPPDATA%\Programs\sift` on Windows), and
then you run `sift`. You can also download the file yourself from the
[latest release](https://github.com/sa1ntsinner/sift/releases/latest).

With Python 3.11+: `uv tool install steamsift` (or `pipx install steamsift`). The package is called `steamsift`
because `sift` was taken on PyPI; the command is still `sift`.

**Update** with `sift update` (or `sift --update`): it installs the latest release the same way sift was installed.
`sift update --check` only tells you whether there is one.

## First run

`sift` opens a three-minute setup. It can look on your computer for your Steam account and Steam Family (only Steam's
own files, nothing is sent anywhere). You paste two free keys, and sift picks them up from the clipboard as soon as you
copy them:

| | where | |
|---|---|---|
| Steam Web API key | [steamcommunity.com/dev/apikey](https://steamcommunity.com/dev/apikey) | domain: `localhost` · confirm in the Steam mobile app |
| IsThereAnyDeal API key | [isthereanydeal.com/apps/my](https://isthereanydeal.com/apps/my/) | Register app → copy the API key · optional, but it powers the verdicts |

Steam only issues API keys to accounts that have spent at least $5 and use Steam Guard Mobile.

## Using it

The app has two tabs: Deals and Wishlist. Deals covers the sale as a whole, the few thousand most popular discounted
games and not only Steam's front pages. The list is ordered by verdict, and inside a verdict by how much you are
likely to want the game: the tags you play, its reviews, how many people play it. Each row shows which of your tags
the game has; the price's reason and the two-year sale history are next to it.
Deals opens on the games worth buying (HOT and GREAT); press `a` to see every discount.
The wishlist shows every game on it: the discounted ones with their verdict, then the rest with when to expect a sale.
A DLC tab for the games you own can be switched on in the filter panel (`f`, then `D`) or with `sift config set dlc-tab on`.
Click a tab to switch views, click a game to preview it, or double-click to open it in Steam.
The actions along the bottom are clickable too. Click the price, discount, verdict or review column to sort.
Everything also works from the keyboard:

| key | | key | |
|---|---|---|---|
| `↑ ↓` `j k` | move | `/` | search |
| `enter` | open in Steam | `f` | filters, saved filters, hidden games |
| `1 2` `← →` | tabs | `s` | sort |
| `x` | hide: not for me | `u` | undo |
| `l` | more like this | | |
| `i` | price history on IsThereAnyDeal | `?` | every key |
| `r` | refresh the current view | `d` | show details in narrow windows |
| `a` | worth it only / every discount | `t` | price alert for this game |

The last results are saved locally as soon as a scan succeeds. Reopening sift shows them immediately;
results less than 15 minutes old need no new scan. Older results stay visible while a background refresh
runs. The app checks again while it stays open, reuses cached metadata and prices, and keeps the previous
results if Steam is unavailable. The header shows when results were updated or that saved data is being used.
Use `r` for a forced refresh; repeated clicks share the running scan. DLC (when its tab is on) loads only when
the tab is opened and refreshes independently. Saved results are separated by Steam account, profile and store region.

The same filters work as flags, so a search can be one line:

```bash
sift --hot -b 10              # only HOT deals under 10 in your store's currency
sift -g roguelike --deck      # roguelikes that run on the Steam Deck
sift macro add cheap -b 2 --lowest && sift cheap
sift info "hollow knight"     # price, history and verdict for one game
sift --print                  # a plain table for scripts; sift -J prints JSON
```

## Alerts

`sift notify setup telegram` (or `discord`, `ntfy`, `desktop`, `email`) sends a few cards a day: HOT prices, your own
price targets and wishlist records that are about to end. Never the whole sale.

Run it on a schedule with `sift notify enable`, keep it running with `sift watch`, or run it in the cloud with
[GitHub Actions](packaging/github-actions/sift.yml) or [Docker](compose.yaml) while your PC is off.

## What it knows

- **Your store.** Prices in the currency Steam charges you, in whichever Steam region your account is in.
- **Your Steam Family.** Shared games stay out of the list, or show with a blue mark if you want them.
- **Your library.** Owned and hidden games never show up; DLC is listed for the games you own.
- **Your taste, second.** The price decides the verdict; your play history orders the games inside it.
- **Your answers.** Press `l` on a game you want more of and `x` on one that is not yours: games close to it
  move up or down at once. Your wishlist and the store pages you open count too.

Everything stays on your computer: keys in the system keychain, settings in a local file. sift talks only to Steam and
IsThereAnyDeal.

## It checks itself

sift writes down every HOT it shows and, when the game's later prices are known, checks whether the game got clearly
cheaper within four months. If its own calls stop holding, or a suspicious share of a sale comes out HOT (what broken
price data looks like), HOT is shown as GREAT with the reason until the record is good again. `sift doctor` shows the
record. If Steam or IsThereAnyDeal do not answer, sift keeps the last results and says so instead of guessing.

## More

`sift doctor` checks keys, privacy settings, region and family. `sift config help` lists every setting.
`sift calendar` shows the Steam sales ahead. The app speaks English and Russian (`sift config set lang ru`).

---

<p align="center"><sub>MIT license · not affiliated with Valve · price history from <a href="https://isthereanydeal.com">IsThereAnyDeal</a></sub></p>
