youpdated 0.5.0__tar.gz → 0.7.0b1__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.
Files changed (73) hide show
  1. {youpdated-0.5.0 → youpdated-0.7.0b1}/ADDING_SOURCES.md +49 -13
  2. {youpdated-0.5.0 → youpdated-0.7.0b1}/CHANGELOG.md +64 -0
  3. {youpdated-0.5.0 → youpdated-0.7.0b1}/CONTRIBUTING.md +7 -3
  4. {youpdated-0.5.0 → youpdated-0.7.0b1}/PKG-INFO +42 -7
  5. {youpdated-0.5.0 → youpdated-0.7.0b1}/README.md +41 -6
  6. {youpdated-0.5.0 → youpdated-0.7.0b1}/SECURITY.md +1 -1
  7. {youpdated-0.5.0 → youpdated-0.7.0b1}/pyproject.toml +1 -1
  8. youpdated-0.7.0b1/youpdated/__init__.py +102 -0
  9. {youpdated-0.5.0 → youpdated-0.7.0b1}/youpdated/api.py +621 -121
  10. youpdated-0.7.0b1/youpdated/apptraces.py +381 -0
  11. {youpdated-0.5.0 → youpdated-0.7.0b1}/youpdated/cleanup.py +69 -18
  12. {youpdated-0.5.0 → youpdated-0.7.0b1}/youpdated/cli.py +914 -79
  13. {youpdated-0.5.0 → youpdated-0.7.0b1}/youpdated/config.py +308 -82
  14. youpdated-0.7.0b1/youpdated/configs.py +99 -0
  15. {youpdated-0.5.0 → youpdated-0.7.0b1}/youpdated/crypto.py +93 -16
  16. {youpdated-0.5.0 → youpdated-0.7.0b1}/youpdated/edit.py +552 -13
  17. youpdated-0.7.0b1/youpdated/errors.py +7 -0
  18. {youpdated-0.5.0 → youpdated-0.7.0b1}/youpdated/http.py +354 -63
  19. {youpdated-0.5.0 → youpdated-0.7.0b1}/youpdated/importers.py +143 -17
  20. youpdated-0.7.0b1/youpdated/library.py +197 -0
  21. {youpdated-0.5.0 → youpdated-0.7.0b1}/youpdated/models.py +14 -4
  22. {youpdated-0.5.0 → youpdated-0.7.0b1}/youpdated/notify.py +20 -13
  23. youpdated-0.7.0b1/youpdated/preview.py +113 -0
  24. youpdated-0.7.0b1/youpdated/render/targets.py +158 -0
  25. {youpdated-0.5.0 → youpdated-0.7.0b1}/youpdated/runner.py +102 -25
  26. youpdated-0.7.0b1/youpdated/sources/__init__.py +13 -0
  27. youpdated-0.7.0b1/youpdated/sources/appstore.py +111 -0
  28. {youpdated-0.5.0 → youpdated-0.7.0b1}/youpdated/sources/base.py +70 -2
  29. {youpdated-0.5.0 → youpdated-0.7.0b1}/youpdated/sources/browser.py +37 -8
  30. youpdated-0.7.0b1/youpdated/sources/crates.py +93 -0
  31. youpdated-0.7.0b1/youpdated/sources/fdroid.py +86 -0
  32. {youpdated-0.5.0 → youpdated-0.7.0b1}/youpdated/sources/feed.py +9 -1
  33. youpdated-0.7.0b1/youpdated/sources/flathub.py +107 -0
  34. {youpdated-0.5.0 → youpdated-0.7.0b1}/youpdated/sources/generic.py +3 -2
  35. {youpdated-0.5.0 → youpdated-0.7.0b1}/youpdated/sources/git.py +189 -31
  36. youpdated-0.7.0b1/youpdated/sources/go.py +148 -0
  37. youpdated-0.7.0b1/youpdated/sources/gog.py +151 -0
  38. youpdated-0.7.0b1/youpdated/sources/jsondoc.py +528 -0
  39. youpdated-0.7.0b1/youpdated/sources/maven.py +139 -0
  40. youpdated-0.7.0b1/youpdated/sources/modrinth.py +135 -0
  41. youpdated-0.7.0b1/youpdated/sources/nuget.py +115 -0
  42. youpdated-0.7.0b1/youpdated/sources/packagist.py +109 -0
  43. youpdated-0.7.0b1/youpdated/sources/rubygems.py +93 -0
  44. youpdated-0.7.0b1/youpdated/sources/sparkle.py +150 -0
  45. {youpdated-0.5.0 → youpdated-0.7.0b1}/youpdated/sources/steam.py +4 -4
  46. {youpdated-0.5.0 → youpdated-0.7.0b1}/youpdated/sources/webpage.py +29 -3
  47. youpdated-0.7.0b1/youpdated/sources/winget.py +116 -0
  48. {youpdated-0.5.0 → youpdated-0.7.0b1}/youpdated/sources/youtube.py +253 -52
  49. {youpdated-0.5.0 → youpdated-0.7.0b1}/youpdated/state.py +114 -14
  50. {youpdated-0.5.0 → youpdated-0.7.0b1}/youpdated/versions.py +49 -1
  51. {youpdated-0.5.0 → youpdated-0.7.0b1}/youpdated.egg-info/PKG-INFO +42 -7
  52. {youpdated-0.5.0 → youpdated-0.7.0b1}/youpdated.egg-info/SOURCES.txt +20 -0
  53. youpdated-0.5.0/youpdated/__init__.py +0 -3
  54. youpdated-0.5.0/youpdated/sources/__init__.py +0 -7
  55. {youpdated-0.5.0 → youpdated-0.7.0b1}/LICENSE +0 -0
  56. {youpdated-0.5.0 → youpdated-0.7.0b1}/MANIFEST.in +0 -0
  57. {youpdated-0.5.0 → youpdated-0.7.0b1}/setup.cfg +0 -0
  58. {youpdated-0.5.0 → youpdated-0.7.0b1}/youpdated/__main__.py +0 -0
  59. {youpdated-0.5.0 → youpdated-0.7.0b1}/youpdated/icons.py +0 -0
  60. {youpdated-0.5.0 → youpdated-0.7.0b1}/youpdated/py.typed +0 -0
  61. {youpdated-0.5.0 → youpdated-0.7.0b1}/youpdated/registry.py +0 -0
  62. {youpdated-0.5.0 → youpdated-0.7.0b1}/youpdated/render/__init__.py +0 -0
  63. {youpdated-0.5.0 → youpdated-0.7.0b1}/youpdated/render/json_out.py +0 -0
  64. {youpdated-0.5.0 → youpdated-0.7.0b1}/youpdated/render/rss_out.py +0 -0
  65. {youpdated-0.5.0 → youpdated-0.7.0b1}/youpdated/render/terminal.py +0 -0
  66. {youpdated-0.5.0 → youpdated-0.7.0b1}/youpdated/sources/homebrew.py +0 -0
  67. {youpdated-0.5.0 → youpdated-0.7.0b1}/youpdated/sources/itch.py +0 -0
  68. {youpdated-0.5.0 → youpdated-0.7.0b1}/youpdated/sources/npm.py +0 -0
  69. {youpdated-0.5.0 → youpdated-0.7.0b1}/youpdated/sources/pypi.py +0 -0
  70. {youpdated-0.5.0 → youpdated-0.7.0b1}/youpdated.egg-info/dependency_links.txt +0 -0
  71. {youpdated-0.5.0 → youpdated-0.7.0b1}/youpdated.egg-info/entry_points.txt +0 -0
  72. {youpdated-0.5.0 → youpdated-0.7.0b1}/youpdated.egg-info/requires.txt +0 -0
  73. {youpdated-0.5.0 → youpdated-0.7.0b1}/youpdated.egg-info/top_level.txt +0 -0
@@ -34,6 +34,8 @@ class Source(Protocol):
34
34
 
35
35
  The split matters: `targets()` is pure config parsing and never touches the network, so `youpdated check --test` can validate a config without sending a request. `fetch()` does the network work and is called once per target, possibly on several threads at once.
36
36
 
37
+ Import everything a source needs from `youpdated` itself. That contract (`name`, `summary`, `targets()`, `fetch()`, `caches`, `shared_caches`, the `Client.get()` arguments, and the helpers shown) follows semver from v1.0.0, so a plugin keeps working through every 1.x release. The hooks for `youpdated add` under [Recognizing your entries](#recognizing-your-entries) and [Values only a fetch can place](#values-only-a-fetch-can-place) are newer and may still change in a minor release. See [what the library promises](docs/library.md#what-you-can-rely-on).
38
+
37
39
  ## Two ways to add one
38
40
 
39
41
  **In-tree** for a source you want in the project itself:
@@ -61,8 +63,7 @@ sources:
61
63
  `entry_fields()` collapses both into a dict, so you never branch on the shape yourself:
62
64
 
63
65
  ```python
64
- from youpdated.models import Target
65
- from youpdated.sources.base import ConfigEntryError, entry_fields, require
66
+ from youpdated import ConfigEntryError, Target, entry_fields, require
66
67
 
67
68
 
68
69
  def targets(self, entries: list[Any]) -> list[Target]:
@@ -79,7 +80,7 @@ def targets(self, entries: list[Any]) -> list[Target]:
79
80
  return targets
80
81
  ```
81
82
 
82
- A `Target` has four fields:
83
+ A `Target` has four fields you set, by keyword like every field of `Target` and `Update`:
83
84
 
84
85
  | Field | Purpose |
85
86
  | --- | --- |
@@ -119,7 +120,7 @@ Any other non-200 raises `FetchError`, which the runner catches and reports with
119
120
  If the feed is RSS or Atom, don't parse it yourself:
120
121
 
121
122
  ```python
122
- from youpdated.sources.feed import parse_feed
123
+ from youpdated import parse_feed
123
124
 
124
125
  return parse_feed(fetched.content, source=self.name, target=target.key, tags=("release",))
125
126
  ```
@@ -138,10 +139,16 @@ from __future__ import annotations
138
139
  from datetime import datetime, timezone
139
140
  from typing import Any, ClassVar, Iterable
140
141
 
141
- from youpdated.http import Client
142
- from youpdated.models import Target, Update
143
- from youpdated.registry import register
144
- from youpdated.sources.base import ConfigEntryError, entry_fields, parse_iso, require
142
+ from youpdated import (
143
+ Client,
144
+ ConfigEntryError,
145
+ Target,
146
+ Update,
147
+ entry_fields,
148
+ parse_iso,
149
+ register,
150
+ require,
151
+ )
145
152
 
146
153
  MAX_VERSIONS = 10
147
154
 
@@ -243,7 +250,9 @@ before `targets()` ever sees it, and applied to whatever you return.
243
250
  title repeats it. Pass it as upstream writes it (`v3.15.0rc1`, `1.25.0_2`);
244
251
  only its numbers are compared. Leave it `None` on items that aren't versions,
245
252
  such as posts and commits, which the rules never filter. Like `ignore`,
246
- `versions` is lifted off the config entry before `targets()` sees it.
253
+ `versions` is lifted off the config entry before `targets()` sees it. A
254
+ `match:` pattern is compared with the whole of `version`, which is another
255
+ reason to pass it as upstream writes it.
247
256
  Tag prereleases `prerelease`: `bump` counts only the first one toward a
248
257
  version, and an untagged version counts as a final release.
249
258
 
@@ -276,7 +285,7 @@ if cached is None:
276
285
  client.state.cache_set("my_namespace", key, cached)
277
286
  ```
278
287
 
279
- `client.state` may be `None`
288
+ `client.state` may be `None`: [`newer()`](docs/library.md) and in-memory library use fetch without history, so a source must still work without its cache.
280
289
 
281
290
  If the key is the target's `key`, list the namespace on the source so `youpdated rm --wipe` forgets it with the rest of the target's history:
282
291
 
@@ -292,10 +301,13 @@ shared_caches: ClassVar[tuple[str, ...]] = ("my_shared_namespace",)
292
301
 
293
302
  ### Recognizing your entries
294
303
 
295
- `youpdated add <value>` works without a source when only one source claims the value. To use, add an optional `claim()` returning the config entry for a value that can only be yours, or `None`. `accepted()` returns the entry if your `targets()` reads it, and `url_parts()` splits a URL:
304
+ `youpdated add <value>` works without a source when only one source claims the value. To use, add an optional `claim()` returning the config entry for a value that can only be yours, or `None`. `accepted()` returns the entry if your `targets()` reads it, and `url_parts()` splits a URL.
305
+
306
+ These hooks, and the ones in the next section, serve `youpdated add` and the apps' preview. They may still change in a minor release, so `accepted()` lives with them in `youpdated.sources.base` rather than in `youpdated`. A plugin that uses them should pin a compatible range, like `youpdated>=1.2,<1.3`:
296
307
 
297
308
  ```python
298
- from .base import accepted, url_parts
309
+ from youpdated import url_parts
310
+ from youpdated.sources.base import accepted
299
311
 
300
312
  def claim(self, value: str) -> str | None:
301
313
  """A project page on pypi.org"""
@@ -313,6 +325,29 @@ A source that can read anything of a shape, like `webpage` reading any URL, sets
313
325
  fallback: ClassVar[bool] = True
314
326
  ```
315
327
 
328
+ A value that's plainly yours but names nothing to watch (a GitHub account's page for the git source) can be refused: raise `ConfigEntryError` from `claim()` with what to do instead. Unless another source claims the value, that message is the error, so a fallback doesn't take it:
329
+
330
+ ```python
331
+ if account is not None:
332
+ raise ConfigEntryError(f"`{value}` is the page of {name} on {host}, not a repo. ...")
333
+ ```
334
+
335
+ ### Values only a fetch can place
336
+
337
+ Some values point at what to watch without naming it: a YouTube video's channel is only on the video's page. `resolves()` says if a value is one of these, without the network, and `resolve()` fetches through the client and returns `(entry, why)`. `youpdated add` and the apps' preview call it before any claim, and show `why` with what was found. Raise `FetchError` if it can't be found:
338
+
339
+ ```python
340
+ def resolves(self, value: str) -> bool:
341
+ return _video_url_id(value) is not None
342
+
343
+ def resolve(self, value: str, client: Client) -> tuple[str, str]:
344
+ fetched = client.get(f"https://www.youtube.com/watch?v={_video_url_id(value)}")
345
+ ...
346
+ return handle, "the video's channel"
347
+ ```
348
+
349
+ A fallback can also offer other sources' entries in its place, after it fetches: `instead(target, client)` returns `(source, entry, why)` tuples, like the feed a page links. Within one lookup the client reuses what it fetched, so the source's own `fetch()` doesn't send the request twice. When your entry fails and an offered one works, only the working ones are offered.
350
+
316
351
  ### Thread
317
352
 
318
353
  Targets are fetched concurrently. Keep everything in local variables or on the `Target`; don't mutate shared state on the source instance.
@@ -333,7 +368,7 @@ Then test against it. The `client` fixture from [tests/conftest.py](tests/confte
333
368
  import httpx
334
369
  import respx
335
370
 
336
- from youpdated.registry import get_source
371
+ from youpdated import get_source
337
372
  from .conftest import fixture
338
373
 
339
374
 
@@ -406,5 +441,6 @@ Users then configure it like any built-in source. A plugin that fails to import
406
441
  - [ ] `tags` describe the update type, so `ignore:` rules can match them
407
442
  - [ ] `version` is set on items that are versions, so `versions:` rules can compare them
408
443
  - [ ] Tests cover parsing, both config shapes, and uid stability
444
+ - [ ] Imports only from `youpdated` (besides `claim()` helpers)
409
445
  - [ ] Optional: `claim()` for values only this source can mean, `caches` for namespaces keyed by target
410
446
  - [ ] Registered: `@register` plus an import, or an entry point
@@ -4,6 +4,69 @@ All notable changes to this project are documented here. The format follows [Kee
4
4
 
5
5
  ## [Unreleased]
6
6
 
7
+ ### Added
8
+
9
+ - **13 new sources!** Package registries: `crates` (crates.io), `go` (the Go module proxy), `rubygems`, `packagist`, `nuget`, and `maven` (Maven Central, or any repository with `repository:`). Apps: `sparkle` (a Mac app's Sparkle appcast), `appstore` (Apple's App Store, by app number or bundle id, with `country:`), `flathub`, `fdroid`, and `winget`. Games: `gog` (a game's builds, by product id; `add` looks up a store page's id) and `modrinth` (with `loaders:` and `game_versions:`). Each one's pages are recognized by `youpdated add`, so a bare word such as `express` now lists more sources to pick from. An `.xml` URL with `appcast` or `sparkle` in its path, or one with a final section containing `appcast`, is added as `sparkle`, not `feed`. See [Identifier details](docs/configuration.md#identifier-details).
10
+ - **`youpdated list` command** (#82). Lists watched targets with the latest known version from history, not fetches. An item without a version shows a title, and a `bump:` target shows its highest release. `TEXT` and `-s` to specify, `--sort name|newest` to order, and `--json` output gives the fields of the app's `targets.list` with `stale` and `highest`. A target is flagged `⚠ failing` when its last check failed and it hasn't fetched cleanly in 12 hours. See [the command reference](docs/usage.md#command-reference).
11
+ - **Webhook and command edit support in the apps** (#83). **Settings → Notifications** on Mac and Windows can add, edit, and remove `settings.notify` webhooks (URL, format, headers, priorities, and if it waits for the digest) and commands. **Send test** sends an example update before it is saved. The config is edited in place: only the changed option is rewritten, and a webhook with default options is written as its bare URL. A webhook on **Automatic** keeps following its URL, and a chosen format stays chosen even when it matches the guess. New engine ops `notify.get`, `notify.set`, and `notify.test`, and error code `notify_failed`.
12
+ - **`youpdated add` can now look up further information to find a source.** For a web page or YouTube video it asks before fetching, then shows what it found with the newest item. A page that links a feed offers it, so a blog, Mastodon profile, or Bluesky profile becomes a `feed`, and a page naming a version lists both to pick from. A YouTube video, `youtu.be`, Shorts, or live link adds the channel's `@handle`. Refusing the fetch adds the page as given. Everything else is added as normal, with nothing sent. `-y`/`--yes` fetches without asking and takes the best match, and `--no-check` adds a page as given without asking. Without a terminal, nothing is fetched unless `-y` is passed. The apps' preview (`targets.preview`) does the same lookups and returns the best match's `source` and `entry`. See [the command reference](docs/usage.md#command-reference).
13
+ - **SteamDB pages** (`steamdb.info/app/413150`) are added as their Steam app id.
14
+ - **Library API.** Youpdated can now be used from Python without the CLI, a config file, or a data directory. The names in `youpdated.__all__` are the library API and follow semver from v1.0.0: `parse_config()`/`load_config()`, `State`, `Client`, `run()`, `Update`, the source registry, the helpers for writing a source (`entry_fields()`, `require()`, `parse_iso()`, `url_parts()`, `parse_feed()`, `Fetched`), and the error types, which share the base `YoupdatedError`. Everything else is internal, and a history file written by any 1.x opens in every later 1.x. `youpdated.newer("pypi", "myapp", current="1.2.0")` lists newer releases in one call with no history or baseline, honoring `versions:` rules, so a program can check for its own releases. `Client(product="MyApp/1.2")` puts the program's own token before Youpdated's in the User-Agent. Nothing is read, written, or printed unless asked, and requests are logged to the `youpdated` logger. With a proxy set, `run()` and `newer()` raise `ProxyUnavailable` before any request when it can't be reached. `newer()` raises `FetchError` for any failed fetch, including an answer the source can't read. See [Library](docs/library.md).
15
+ - **Multiple configs** (#84). `youpdated init NAME` creates a named config with its own sources, settings, history, and, optionally, its own passphrase, kept entirely separated from the others. Pick one with `-c NAME` on `check`, `list`, `add`, `rm`, `import`, `edit`, `encrypt`, and `decrypt`, or with `$YOUPDATED_CONFIG`. `youpdated configs` lists them, `configs rm NAME` deletes one and its history, and `check --all-configs` checks the default and then every named config in order. An encrypted named config reads `$YOUPDATED_PASSPHRASE_<NAME>` before `$YOUPDATED_PASSPHRASE`. The desktop apps only use the default config. See [Multiple configs](docs/configuration.md#multiple-configs).
16
+ - **Remove Youpdated from this Mac** (Settings → Advanced), same as the Windows app's Remove Youpdated from this PC. It turns off Start at login, clears notifications, the saved passphrase, and the app's settings, caches, and log, and can delete your config and history too. Then it quits, or moves the app to the Trash and quits.
17
+
18
+ ### Changed
19
+
20
+ - **`youpdated uninstall` also removes desktop app files.** On Mac, app settings, caches, diagnostic log, and the passphrase in your keychain; on Windows, the app's settings and log, Start menu shortcut, starting at sign-in, `youpdated://` links, notification registration and icon, and the passphrase in Credential Manager. The app itself is left in place, and `uninstall` prints its location. `--keep-app` skips all of it. See [Uninstalling](docs/troubleshooting.md#uninstalling).
21
+ - **`Client()` and `PrivacyConfig()` name Youpdated in the User-Agent by default**, same as `user_agent: youpdated`, and configs parsed through the library default to it. The CLI, the engine, and the apps still default to `rotate`. `import youpdated` is now lazy and no longer loads the rest of the package.
22
+ - **For source plugins: import from `youpdated` itself.** `Target`, `Update`, `RunError`, and `PrivacyConfig` now take keyword arguments only, and `ProxyUnavailable` is now a `FetchError`. [ADDING_SOURCES.md](ADDING_SOURCES.md) shows the imports, and which hooks may still change.
23
+ - **Opening encrypted history without a passphrase says one is required**, as an encryption error, instead of calling the file not a history database.
24
+ - **New setups store the config in `configs/default.yaml` and history in `history/default-state.sqlite3`**, beside every named config. An existing `config.yaml` and `state.sqlite3` keep working in the old location, and nothing moves on its own. `youpdated configs migrate` moves them to the updated location. If you use the apps, wait for an app release with this version first.
25
+ - **`youpdated init` writes a shorter config** instead of the full example. Now only each section's header, the basic privacy settings at their defaults, and an example commented-out GitHub entry for Youpdated. It watches nothing until you `add` something. A `sources:` section holding only comments now counts as empty rather than missing, and `edit` saves a config that watches nothing without confirmation.
26
+ - **`-c` accepts a config's name as well as a path.** A value with no `/`, `\`, or `.` is a name. An extensionless file passed as `-c myconf` still works when no config has that name.
27
+ - **`youpdated add` now confirms the source of a single word or number.** `440` shows `source detected: steam` and asks `Add it? [Y/n]`, so a number another source also uses for ids can't land under the wrong one. A word several sources read (`express`) lists them to pick from instead of being refused. `-y`, `--no-check`, and runs without a terminal take the only source detected without asking, and refuse a word several sources read.
28
+ - **Addresses with nothing to watch are refused with alternatives**, by `add` and the apps' preview (`bad_entry`): an account or organization page on GitHub, GitLab, or Codeberg, and Reddit, which tends to refuse automated readers. `youpdated add feed` still adds a Reddit feed when named.
29
+ - **A `steam` entry must be a whole app id or an `app/<id>` link.**
30
+ - **Untitled feed items are titled by their text**, up to 80 characters, instead of "(untitled)". Items already seen aren't reported again.
31
+ - **`github.com/neovim` is no longer read as repo `neovim` with owner `github.com`**, and an address on a file or site host with a forge in its name (`raw.githubusercontent.com`, `*.github.io`, `*.gitlab.io`, `gist.github.com`) isn't considered a repo anymore. A `.json` file on `raw.githubusercontent.com` goes under `json`.
32
+ - **A clearer Mac installer.** The Mac app's `.dmg` now opens to a proper window (unlike the old Apple default one) with the steps for opening it the first time because it isn't notarized.
33
+ - **Checks remember more (for `list`).** Each check now records which targets failed, the item behind a `bump:` target's highest release, and the CLI now keeps the names sources resolve.
34
+
35
+ ### Fixed
36
+
37
+ - **MacOS notification settings** now correctly check actual notification access through System Settings.
38
+
39
+ ## [0.6.0] — 2026-11-14
40
+
41
+ ### Added
42
+
43
+ - **`json` source** (#57). Watches a version in a JSON or YAML document: `youpdated add https://example.com/app/latest.yml`. With only a URL, a lone `version`, `tag_name`, or `latest` key is read, and a document with several versions is refused. `version:` gives the correct path (`latest.release`, `releases[0].tag_name`), and `items:` the path of a list to report each entry of, with `title:`, `link:`, `published:`, and `limit:`. An address ending `.json`, `.yml`, or `.yaml` is added under `json` automatically. See [JSON documents](docs/configuration.md#json-documents).
44
+ - **Filters in the app.** Right-click a followed item to choose which of its versions are reported: every version or only ones like a pattern, without prereleases, only new patch, minor, or major versions, and nothing before a version. Patterns are offered from currently listed options, by prefix (`app-macos-v…`, `v…`) or by line (`v3.13.x`). An entry listed twice, or one that follows several things, is shown but edited in the config. Engine ops `filters.get`, `filters.set`, and `filters.preview`.
45
+ - **`versions: {match: "v3.12.*"}`** reports only versions a pattern fits for any source. A list takes any of its patterns. Unlike `bump` and `min`, a version that doesn't fit is dropped like an ignored update, so it isn't recorded and `bump` compares only the versions that do. When a `git` entry's list of releases has none that fit, up to five more pages are read for the newest that does. See [Filtering by version](docs/configuration.md#filtering-by-version).
46
+ - **Youpdated for Windows (beta).** A notification area app for Windows 10 22H2 and 11, x64, with its own copy of the engine (no Python needed). It shares a config and history with the CLI. See [docs/windows-app.md](docs/windows-app.md). Released on `app-windows-v*` tags. And the Mac app's releases move from `app-v*` to `app-macos-v*`!
47
+ - **`settings.privacy.user_agent: youpdated`** sends `Youpdated/<version> (+https://github.com/Void1-1/youpdated)` instead of a browser string, so sites can know what is sending requests. On an encrypted setup with a proxy, the CLI and the desktop apps ask once before anything is sent, and the CLI warns on every check. See [docs/privacy.md](docs/privacy.md#user-agent).
48
+ - **Fast mode**: `settings.privacy.fast_mode: true`, or `check --fast` for a check. Requests to one host are 0.1 to 0.5s apart instead of `jitter`, and hosts are paced on their own instead of by site. Traffic will look automated, is more likely to be rate limited, and is easier to single out and link to you, even through a proxy, so checks in fast mode print a warning. Off by default.
49
+ - **Privacy in app Settings.** The Mac and Windows apps can now set the proxy (None, Tor, Tor Browser, or a custom address) and fast mode. They also display the other `settings.privacy` options. A new proxy is tested before it's saved. The config is edited in place, comments kept. New engine ops `privacy.get` and `privacy.set`.
50
+ - **Delete Update** in a feed card's right-click menu. It removes the card's updates, read or not, but they stay in seen history. Engine op `inbox.delete`. Stop Following is left out of the menu for a target that's no longer followed.
51
+ - **Settings → Advanced.** *Hide suggestions to watch Youpdated* (off by default) hides offers to follow Youpdated's own releases. The Mac app gained the Windows app's **Save a diagnostic log** (off by default), writing errors, engine output, and notification problems to `~/Library/Logs/Youpdated/app.log` for bug reports.
52
+ - **`youpdated import pyproject.toml`** (#37). Reads `[project]` dependencies, extras, and `[dependency-groups]` under `pypi`, leaving out the project itself. Dependencies uv gets from git, a URL, a path, the workspace, or another index (`[tool.uv.sources]`, `[[tool.uv.index]]`) are skipped or warned. `dynamic` dependencies and Poetry's `[tool.poetry]` tables aren't read, with a warning.
53
+
54
+ ### Changed
55
+
56
+ - **Run-wide options move under `settings:`** (#37). `privacy`, `notify`, `expiry`, `track_latest`, and `editor` now go under a `settings:` section. `ignore:`, `versions:`, and `sources:` stay at the top level. The old top-level keys still work with warnings. `youpdated edit` reformats them, comments included. A duplicate key is an error, and error messages name the new intended location (`settings.privacy.proxy`). Older versions skip `settings:` automatically: update your app download!
57
+ - **The apps follow only their system's releases.** The self-watch entry an app can add now has `versions: {match: "app-[system]-v*"}` (`"app-windows-v*"` or `"app-macos-v*"`). An entry already in a config isn't changed.
58
+ - **Requests are paced per site, not per host.** `github.com` and `api.github.com`, or every `<user>.itch.io` game, share a space. A `429` or error without `Retry-After` now makes every request to that host wait, not only the one that received it, and a host that fails every attempt isn't asked again that check. With `user_agent: rotate`, each site is sent one user agent per check, instead of a different browser every request.
59
+ - **Checks finish sooner.** A host's `jitter` gap no longer holds the run: `concurrency` now caps requests in flight, not targets in progress. Targets asking for one document at once (Brave, Firefox, and Edge channels) share a request. With `track_latest`, a list answered `304` is followed by a request for its latest release only every 12 hours. An encrypted setup derives its two keys side by side and writes the history back under the same key it, a fresh nonce each time. Brave asks GitHub for its 30 newest releases instead of 100. `track_latest` doesn't ask for the latest release of a list that holds every release. Without a proxy, a connection that hasn't opened in 8s is given up and tried once more.
60
+
61
+ ### Fixed
62
+
63
+ - **A long update title widened the Mac menu bar menu.** Its rows are now cut to a fixed width, and the whole title is in the tooltip.
64
+ - **The Mac app centered a target with no updates** when it was picked in Following. It's now placed like the rest of the feed.
65
+ - **YouTube reported old videos as new when its feed was down.** The official feed has outages and the Invidious fallback lists only regular videos, not Shorts or streams. A video not seen before and older than the last check is no longer reported when the channel switches path. The error for every path failing no longer blames blocking or suggests a proxy, which doesn't help.
66
+ - **A YouTube playlist's URL works on its own.** `youpdated add https://www.youtube.com/playlist?list=…` adds it under `youtube` instead of `webpage`, and the URL can be listed under `youtube:` without `playlist:`.
67
+ - **YouTube playlists are shown by their title**, instead of `playlist PL…`. A `name:` on the entry still comes first.
68
+ - **Videos added to the end of a long YouTube playlist are reported.** Only a playlist's first 15 videos were read, and most playlists add new videos at the end. Now its first and last 15 are read, so a new video at either end is found. The official feed shows only the first 15, so a longer playlist is read through Invidious or the Data API. The Data API remembers where the playlist ended, so later checks don't page through it again. The first check of a long playlist already watched may report up to 15 videos from its end as new, once.
69
+
7
70
  ## [0.5.0] — 2026-11-06
8
71
 
9
72
  ### Added
@@ -227,6 +290,7 @@ First release.
227
290
  - Firefox publishes current versions, so it reports one item per channel.
228
291
  - Edge exposes release notes only for the stable and beta channels. (But like, it's Edge, why do you want to know when it updates?)
229
292
 
293
+ [0.6.0]: https://github.com/Void1-1/youpdated/releases/tag/v0.6.0
230
294
  [0.5.0]: https://github.com/Void1-1/youpdated/releases/tag/v0.5.0
231
295
  [0.4.0]: https://github.com/Void1-1/youpdated/releases/tag/v0.4.0
232
296
  [0.3.1]: https://github.com/Void1-1/youpdated/releases/tag/v0.3.1
@@ -7,9 +7,9 @@ Thanks for looking. This is a small project with a few constraints.
7
7
  These are the reasons the tool exists, so a change that breaks one needs a strong argument:
8
8
 
9
9
  1. **No accounts, no required API keys.** Every source works unauthenticated. Keys are read from the environment when present, only to raise rate limits, and are never written to disk.
10
- 2. **Nothing leaves the machine** except requests to the sources the user configured. No telemetry, no crash reporting, no update checks for Youpdated itself.
10
+ 2. **Nothing leaves the machine** except requests to the sources the user configured. No telemetry, no crash reporting, no update checks for Youpdated itself. Youpdated never checks for *its own* updates on its own initiative. A program using it [as a library](docs/library.md) that asks it to check that program's own releases has configured that source itself, so that's allowed.
11
11
  3. **One HTTP path.** Every request goes through `client.get()` in [youpdated/http.py](youpdated/http.py).
12
- 4. **Files stay in the platform's config and data directories.** Nowhere else.
12
+ 4. **Files stay in the platform's config and data directories.** Nowhere else. As a library, Youpdated reads and writes only the paths the calling program gives it, and nothing when it gives none.
13
13
 
14
14
  ## Setting up
15
15
 
@@ -52,7 +52,9 @@ git push -u origin my-change
52
52
  gh pr create --fill
53
53
  ```
54
54
 
55
- CI runs the suite on Linux, macOS, and Windows across Python 3.11–3.14. All 13 jobs must be green, and the branch must be up to date with `main`. No review approvals are required.
55
+ CI runs the suite on Linux, macOS, and Windows across Python 3.11–3.14. All 13 jobs must be green, along with the `skip-actions label` check, and the branch must be up to date with `main`. No review approvals are required.
56
+
57
+ To open a PR before it's ready without running CI on every push, add the `skip-actions` label. CI is skipped while it's on, and the PR can't be merged. Remove the label to run CI.
56
58
 
57
59
  ## Tests
58
60
 
@@ -100,6 +102,8 @@ Publishing is done by [.github/workflows/release.yml](.github/workflows/release.
100
102
  gh release create v0.4.0 --verify-tag --notes-from-tag
101
103
  ```
102
104
 
105
+ A beta uses PEP 440's spelling in `pyproject.toml`, `__version__`, and the tag alike (`0.7.0b1`, tagged `v0.7.0b1`), because `release.yml` compares the tag to `pyproject.toml` as text. Add `--prerelease` to `gh release create`: it still goes to PyPI, where pip and pipx skip it unless asked with `--pre`.
106
+
103
107
  ## Style
104
108
 
105
109
  Match the surrounding code rather than a style guide, but generally:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: youpdated
3
- Version: 0.5.0
3
+ Version: 0.7.0b1
4
4
  Summary: Simple update tracker for games, apps, and packages
5
5
  Author-email: Void1-1 <161782542+Void1-1@users.noreply.github.com>
6
6
  License-Expression: MIT
@@ -67,6 +67,8 @@ Dynamic: license-file
67
67
  <a href="#get-started">Get started</a> ·
68
68
  <a href="#sources">Sources</a> ·
69
69
  <a href="https://github.com/Void1-1/youpdated/blob/main/docs/macos-app.md">Youpdated MacOS App (beta)</a> ·
70
+ <a href="https://github.com/Void1-1/youpdated/blob/main/docs/windows-app.md">Youpdated Windows App (beta)</a> ·
71
+ <a href="https://github.com/Void1-1/youpdated/blob/main/CHANGELOG.md">Changelog</a> ·
70
72
  <a href="#learn-more">Docs</a>
71
73
  </p>
72
74
 
@@ -91,16 +93,32 @@ Dynamic: license-file
91
93
  | `npm` | New versions of a JavaScript package |
92
94
  | `homebrew` | New versions of a Homebrew formula or cask |
93
95
  | `pypi` | New releases of a Python package, and if it's archived or deprecated |
96
+ | `crates` | New releases of a Rust crate on crates.io |
97
+ | `go` | New versions of a Go module |
98
+ | `rubygems` | New releases of a Ruby gem |
99
+ | `packagist` | New releases of a PHP package on Packagist |
100
+ | `nuget` | New releases of a NuGet (.NET) package |
101
+ | `maven` | New versions of a Maven artifact, on Maven Central or another repository |
102
+ | `sparkle` | New releases of a Mac app, from its Sparkle appcast used to check updates |
103
+ | `appstore` | New versions of an Apple App Store app |
104
+ | `flathub` | New releases of a Linux app on Flathub |
105
+ | `fdroid` | New versions of an Android app on F-Droid |
106
+ | `winget` | New versions of a Windows Package Manager package |
94
107
  | `steam` | Patch notes and news for a game |
95
108
  | `itch` | Devlog posts and new builds of an itch.io game |
109
+ | `gog` | New builds of a GOG game |
110
+ | `modrinth` | New versions of a Minecraft mod, plugin, or pack on Modrinth |
96
111
  | `youtube` | New videos on a channel or playlist |
97
112
  | `browser` | New Chrome, Brave, Firefox, and Edge releases |
98
113
  | `feed` | Anything else with an RSS or Atom feed |
114
+ | `json` | A version in a JSON or YAML file |
99
115
  | `webpage` | The version a download page shows, for anything with no feed |
100
116
 
101
117
  ## Get started
102
118
 
103
- On a Mac and want an app version? [Youpdated for Mac](https://github.com/Void1-1/youpdated/blob/main/docs/macos-app.md) is in beta.
119
+ Want an app version? [Youpdated for Mac](https://github.com/Void1-1/youpdated/blob/main/docs/macos-app.md) and [Youpdated for Windows](https://github.com/Void1-1/youpdated/blob/main/docs/windows-app.md) are in beta.
120
+
121
+ > Youpdated CLI v1.0.0 and full App releases are planned for January 1, 2027!
104
122
 
105
123
  ### 1. Install
106
124
 
@@ -125,7 +143,7 @@ youpdated --version
125
143
  youpdated init
126
144
  ```
127
145
 
128
- This creates a starter config file and **prints where it was placed**.
146
+ This creates a short starter config, with the default settings and nothing watched yet, and **prints where it was placed**.
129
147
 
130
148
  ### 3. Add sources to watch
131
149
 
@@ -137,9 +155,9 @@ youpdated add npm react
137
155
  youpdated add youtube @NASA
138
156
  ```
139
157
 
140
- A link or handle that can only work with one source doesn't need to be named: `youpdated add https://github.com/neovim/neovim`. Any other web address goes under `webpage`.
158
+ A link or handle that can only work with one source doesn't need to be named: `youpdated add https://github.com/neovim/neovim`. An address ending `.json`, `.yml`, or `.yaml` goes under `json`. Any other web address can be fetched first, once confirmed: a page that links a feed offers it, and a YouTube video adds its channel. See [usage](docs/usage.md#command-reference).
141
159
 
142
- To watch all dependencies of a project, import its `package.json`, `requirements.txt`, or `Brewfile`: `youpdated import package.json`.
160
+ To watch all dependencies of a project, import its `package.json`, `requirements.txt`, `pyproject.toml`, or `Brewfile`: `youpdated import package.json`.
143
161
 
144
162
  The starter config comes with examples; `youpdated rm` to remove any you don't want.
145
163
 
@@ -172,12 +190,26 @@ youpdated check
172
190
  | An npm package | `express`, `"@types/node"` | The package name on npmjs.com. **Quote names starting with `@`.** |
173
191
  | A Homebrew formula or cask | `wget`, `cask:firefox` | The name after `brew install`. Put `cask:` in front of casks. |
174
192
  | A PyPI package | `httpx` | The name after `pip install`. |
193
+ | A Rust crate | `serde` | The name on crates.io, or after `cargo add`. |
194
+ | A Go module | `github.com/spf13/cobra` | The path after `go get`. A `pkg.go.dev` URL also works. |
195
+ | A Ruby gem | `rails` | The name after `gem install`. |
196
+ | A PHP package | `monolog/monolog` | The `vendor/package` after `composer require`. |
197
+ | A NuGet package | `Newtonsoft.Json` | The id after `dotnet add package`. |
198
+ | A Maven artifact | `com.google.guava:guava` | `group:artifact`, as in a Gradle dependency. |
199
+ | A Mac app with Sparkle | `https://www.iterm2.com/appcasts/final_modern.xml` | The app's appcast URL: `defaults read /Applications/<App>.app/Contents/Info SUFeedURL`. |
200
+ | An App Store app | `284882215` | The number after `id` in its `apps.apple.com` URL. The URL also works. |
201
+ | A Flathub app | `org.mozilla.firefox` | The app id at the end of its `flathub.org/apps/` URL, or after `flatpak install`. |
202
+ | An F-Droid app | `org.fdroid.fdroid` | The package name at the end of its `f-droid.org/packages/` URL. |
203
+ | A winget package | `Mozilla.Firefox` | The id `winget search` shows. |
175
204
  | A Steam game | `440` | The number in the store URL: `store.steampowered.com/app/`**`440`**`/Team_Fortress_2/`. The full store URL also works. |
176
205
  | An itch.io game | `https://user.itch.io/game-name` | The game's page URL, exactly as it appears in the address bar. |
206
+ | A GOG game | `1207658924` | The game's product id. `youpdated add` with its store page URL looks the id up. |
207
+ | A Modrinth project | `sodium` | The name at the end of its `modrinth.com/mod/` URL. The URL also works. |
177
208
  | A YouTube channel | `"@NASA"` | The `@handle` from the channel URL. **Keep the quotes with `@` characters** |
178
- | A YouTube playlist | `playlist: PLxxxx` | The `list=` part of the playlist URL. A full playlist URL also works. |
209
+ | A YouTube playlist | `https://www.youtube.com/playlist?list=PLxxxx` | The playlist's URL, as it appears in the address bar. `playlist: PLxxxx`, with just the `list=` section, also works. |
179
210
  | A browser | `chrome`, `brave`, `firefox`, `edge` | Just the name. |
180
211
  | Anything else | `https://example.com/feed.xml` | Any RSS or Atom feed URL. Many sites publish one at `/feed.xml`, `/releases.atom`, or `/blog/rss`. |
212
+ | A JSON or YAML file | `https://example.com/app/latest.json` | The URL of a file or API answer with the version. See [JSON documents](docs/configuration.md#json-documents). |
181
213
  | Anything without a feed | `https://www.videolan.org/vlc/` | The download page's URL. The version is read off the page. See [Web pages](docs/configuration.md#web-pages). |
182
214
 
183
215
  ## Basic commands
@@ -188,9 +220,10 @@ youpdated check --all # everything, not just what's new
188
220
  youpdated check --since 7d # only things from the last week
189
221
  youpdated check -s steam # only one source
190
222
  youpdated check --test -v # check your config without fetching anything
223
+ youpdated list # everything you watch and its latest version
191
224
  youpdated add npm react # start watching something
192
225
  youpdated remove npm react # stop watching it
193
- youpdated import Brewfile # watch everything a package.json, requirements.txt, or Brewfile lists
226
+ youpdated import Brewfile # watch everything a dependency file lists
194
227
  youpdated edit # open the config in your default editor
195
228
  youpdated uninstall # remove Youpdated and its files
196
229
  ```
@@ -204,10 +237,12 @@ youpdated uninstall # remove Youpdated and its files
204
237
  ## Learn more
205
238
 
206
239
  - [Youpdated for Mac](https://github.com/Void1-1/youpdated/blob/main/docs/macos-app.md): the menu bar app, in beta
240
+ - [Youpdated for Windows](https://github.com/Void1-1/youpdated/blob/main/docs/windows-app.md): the notification area app, in beta
207
241
  - [Configuration](https://github.com/Void1-1/youpdated/blob/main/docs/configuration.md): all options, ignoring update types, and how long history is kept
208
242
  - [Usage](https://github.com/Void1-1/youpdated/blob/main/docs/usage.md): all commands, JSON and RSS output, and running on a schedule
209
243
  - [Notifications](https://github.com/Void1-1/youpdated/blob/main/docs/notifications.md): get updates on your phone, Discord, Slack, or to a script
210
244
  - [Privacy](https://github.com/Void1-1/youpdated/blob/main/docs/privacy.md): proxies, Tor, and details on what information is sent where
211
245
  - [Encryption at rest](https://github.com/Void1-1/youpdated/blob/main/docs/encryption.md): lock your config and history behind a passphrase
212
246
  - [Troubleshooting](https://github.com/Void1-1/youpdated/blob/main/docs/troubleshooting.md): common issues, and more about uninstalling
247
+ - [Library](https://github.com/Void1-1/youpdated/blob/main/docs/library.md): use Youpdated from Python as a dependency tracker or to check for your own program's releases
213
248
  - [Contributing](https://github.com/Void1-1/youpdated/blob/main/CONTRIBUTING.md): installing from source, running the tests, and [adding a source](https://github.com/Void1-1/youpdated/blob/main/ADDING_SOURCES.md)
@@ -20,6 +20,8 @@
20
20
  <a href="#get-started">Get started</a> ·
21
21
  <a href="#sources">Sources</a> ·
22
22
  <a href="https://github.com/Void1-1/youpdated/blob/main/docs/macos-app.md">Youpdated MacOS App (beta)</a> ·
23
+ <a href="https://github.com/Void1-1/youpdated/blob/main/docs/windows-app.md">Youpdated Windows App (beta)</a> ·
24
+ <a href="https://github.com/Void1-1/youpdated/blob/main/CHANGELOG.md">Changelog</a> ·
23
25
  <a href="#learn-more">Docs</a>
24
26
  </p>
25
27
 
@@ -44,16 +46,32 @@
44
46
  | `npm` | New versions of a JavaScript package |
45
47
  | `homebrew` | New versions of a Homebrew formula or cask |
46
48
  | `pypi` | New releases of a Python package, and if it's archived or deprecated |
49
+ | `crates` | New releases of a Rust crate on crates.io |
50
+ | `go` | New versions of a Go module |
51
+ | `rubygems` | New releases of a Ruby gem |
52
+ | `packagist` | New releases of a PHP package on Packagist |
53
+ | `nuget` | New releases of a NuGet (.NET) package |
54
+ | `maven` | New versions of a Maven artifact, on Maven Central or another repository |
55
+ | `sparkle` | New releases of a Mac app, from its Sparkle appcast used to check updates |
56
+ | `appstore` | New versions of an Apple App Store app |
57
+ | `flathub` | New releases of a Linux app on Flathub |
58
+ | `fdroid` | New versions of an Android app on F-Droid |
59
+ | `winget` | New versions of a Windows Package Manager package |
47
60
  | `steam` | Patch notes and news for a game |
48
61
  | `itch` | Devlog posts and new builds of an itch.io game |
62
+ | `gog` | New builds of a GOG game |
63
+ | `modrinth` | New versions of a Minecraft mod, plugin, or pack on Modrinth |
49
64
  | `youtube` | New videos on a channel or playlist |
50
65
  | `browser` | New Chrome, Brave, Firefox, and Edge releases |
51
66
  | `feed` | Anything else with an RSS or Atom feed |
67
+ | `json` | A version in a JSON or YAML file |
52
68
  | `webpage` | The version a download page shows, for anything with no feed |
53
69
 
54
70
  ## Get started
55
71
 
56
- On a Mac and want an app version? [Youpdated for Mac](https://github.com/Void1-1/youpdated/blob/main/docs/macos-app.md) is in beta.
72
+ Want an app version? [Youpdated for Mac](https://github.com/Void1-1/youpdated/blob/main/docs/macos-app.md) and [Youpdated for Windows](https://github.com/Void1-1/youpdated/blob/main/docs/windows-app.md) are in beta.
73
+
74
+ > Youpdated CLI v1.0.0 and full App releases are planned for January 1, 2027!
57
75
 
58
76
  ### 1. Install
59
77
 
@@ -78,7 +96,7 @@ youpdated --version
78
96
  youpdated init
79
97
  ```
80
98
 
81
- This creates a starter config file and **prints where it was placed**.
99
+ This creates a short starter config, with the default settings and nothing watched yet, and **prints where it was placed**.
82
100
 
83
101
  ### 3. Add sources to watch
84
102
 
@@ -90,9 +108,9 @@ youpdated add npm react
90
108
  youpdated add youtube @NASA
91
109
  ```
92
110
 
93
- A link or handle that can only work with one source doesn't need to be named: `youpdated add https://github.com/neovim/neovim`. Any other web address goes under `webpage`.
111
+ A link or handle that can only work with one source doesn't need to be named: `youpdated add https://github.com/neovim/neovim`. An address ending `.json`, `.yml`, or `.yaml` goes under `json`. Any other web address can be fetched first, once confirmed: a page that links a feed offers it, and a YouTube video adds its channel. See [usage](docs/usage.md#command-reference).
94
112
 
95
- To watch all dependencies of a project, import its `package.json`, `requirements.txt`, or `Brewfile`: `youpdated import package.json`.
113
+ To watch all dependencies of a project, import its `package.json`, `requirements.txt`, `pyproject.toml`, or `Brewfile`: `youpdated import package.json`.
96
114
 
97
115
  The starter config comes with examples; `youpdated rm` to remove any you don't want.
98
116
 
@@ -125,12 +143,26 @@ youpdated check
125
143
  | An npm package | `express`, `"@types/node"` | The package name on npmjs.com. **Quote names starting with `@`.** |
126
144
  | A Homebrew formula or cask | `wget`, `cask:firefox` | The name after `brew install`. Put `cask:` in front of casks. |
127
145
  | A PyPI package | `httpx` | The name after `pip install`. |
146
+ | A Rust crate | `serde` | The name on crates.io, or after `cargo add`. |
147
+ | A Go module | `github.com/spf13/cobra` | The path after `go get`. A `pkg.go.dev` URL also works. |
148
+ | A Ruby gem | `rails` | The name after `gem install`. |
149
+ | A PHP package | `monolog/monolog` | The `vendor/package` after `composer require`. |
150
+ | A NuGet package | `Newtonsoft.Json` | The id after `dotnet add package`. |
151
+ | A Maven artifact | `com.google.guava:guava` | `group:artifact`, as in a Gradle dependency. |
152
+ | A Mac app with Sparkle | `https://www.iterm2.com/appcasts/final_modern.xml` | The app's appcast URL: `defaults read /Applications/<App>.app/Contents/Info SUFeedURL`. |
153
+ | An App Store app | `284882215` | The number after `id` in its `apps.apple.com` URL. The URL also works. |
154
+ | A Flathub app | `org.mozilla.firefox` | The app id at the end of its `flathub.org/apps/` URL, or after `flatpak install`. |
155
+ | An F-Droid app | `org.fdroid.fdroid` | The package name at the end of its `f-droid.org/packages/` URL. |
156
+ | A winget package | `Mozilla.Firefox` | The id `winget search` shows. |
128
157
  | A Steam game | `440` | The number in the store URL: `store.steampowered.com/app/`**`440`**`/Team_Fortress_2/`. The full store URL also works. |
129
158
  | An itch.io game | `https://user.itch.io/game-name` | The game's page URL, exactly as it appears in the address bar. |
159
+ | A GOG game | `1207658924` | The game's product id. `youpdated add` with its store page URL looks the id up. |
160
+ | A Modrinth project | `sodium` | The name at the end of its `modrinth.com/mod/` URL. The URL also works. |
130
161
  | A YouTube channel | `"@NASA"` | The `@handle` from the channel URL. **Keep the quotes with `@` characters** |
131
- | A YouTube playlist | `playlist: PLxxxx` | The `list=` part of the playlist URL. A full playlist URL also works. |
162
+ | A YouTube playlist | `https://www.youtube.com/playlist?list=PLxxxx` | The playlist's URL, as it appears in the address bar. `playlist: PLxxxx`, with just the `list=` section, also works. |
132
163
  | A browser | `chrome`, `brave`, `firefox`, `edge` | Just the name. |
133
164
  | Anything else | `https://example.com/feed.xml` | Any RSS or Atom feed URL. Many sites publish one at `/feed.xml`, `/releases.atom`, or `/blog/rss`. |
165
+ | A JSON or YAML file | `https://example.com/app/latest.json` | The URL of a file or API answer with the version. See [JSON documents](docs/configuration.md#json-documents). |
134
166
  | Anything without a feed | `https://www.videolan.org/vlc/` | The download page's URL. The version is read off the page. See [Web pages](docs/configuration.md#web-pages). |
135
167
 
136
168
  ## Basic commands
@@ -141,9 +173,10 @@ youpdated check --all # everything, not just what's new
141
173
  youpdated check --since 7d # only things from the last week
142
174
  youpdated check -s steam # only one source
143
175
  youpdated check --test -v # check your config without fetching anything
176
+ youpdated list # everything you watch and its latest version
144
177
  youpdated add npm react # start watching something
145
178
  youpdated remove npm react # stop watching it
146
- youpdated import Brewfile # watch everything a package.json, requirements.txt, or Brewfile lists
179
+ youpdated import Brewfile # watch everything a dependency file lists
147
180
  youpdated edit # open the config in your default editor
148
181
  youpdated uninstall # remove Youpdated and its files
149
182
  ```
@@ -157,10 +190,12 @@ youpdated uninstall # remove Youpdated and its files
157
190
  ## Learn more
158
191
 
159
192
  - [Youpdated for Mac](https://github.com/Void1-1/youpdated/blob/main/docs/macos-app.md): the menu bar app, in beta
193
+ - [Youpdated for Windows](https://github.com/Void1-1/youpdated/blob/main/docs/windows-app.md): the notification area app, in beta
160
194
  - [Configuration](https://github.com/Void1-1/youpdated/blob/main/docs/configuration.md): all options, ignoring update types, and how long history is kept
161
195
  - [Usage](https://github.com/Void1-1/youpdated/blob/main/docs/usage.md): all commands, JSON and RSS output, and running on a schedule
162
196
  - [Notifications](https://github.com/Void1-1/youpdated/blob/main/docs/notifications.md): get updates on your phone, Discord, Slack, or to a script
163
197
  - [Privacy](https://github.com/Void1-1/youpdated/blob/main/docs/privacy.md): proxies, Tor, and details on what information is sent where
164
198
  - [Encryption at rest](https://github.com/Void1-1/youpdated/blob/main/docs/encryption.md): lock your config and history behind a passphrase
165
199
  - [Troubleshooting](https://github.com/Void1-1/youpdated/blob/main/docs/troubleshooting.md): common issues, and more about uninstalling
200
+ - [Library](https://github.com/Void1-1/youpdated/blob/main/docs/library.md): use Youpdated from Python as a dependency tracker or to check for your own program's releases
166
201
  - [Contributing](https://github.com/Void1-1/youpdated/blob/main/CONTRIBUTING.md): installing from source, running the tests, and [adding a source](https://github.com/Void1-1/youpdated/blob/main/ADDING_SOURCES.md)
@@ -19,7 +19,7 @@ Youpdated is a local CLI that reads public endpoints. The interesting attack sur
19
19
  that turns that content into code execution, a path outside the config/data directories, or a
20
20
  request to an unintended host is in scope. That includes `notify.command`: update fields reach
21
21
  it only as separate arguments, environment variables, and stdin, never through a shell.
22
- - **Privacy leaks.** Youpdated promises that when `privacy.proxy` is set, *every* request goes
22
+ - **Privacy leaks.** Youpdated promises that when `settings.privacy.proxy` is set, *every* request goes
23
23
  through it, and that nothing is sent anywhere except the configured sources and notification
24
24
  webhooks. A path that bypasses
25
25
  the proxy, leaks the config or history off the machine, or attaches identifying data to requests
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "youpdated"
7
- version = "0.5.0"
7
+ version = "0.7.0b1"
8
8
  description = "Simple update tracker for games, apps, and packages"
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.11"
@@ -0,0 +1,102 @@
1
+ """Youpdated, a simple update tracker.
2
+
3
+ The names in ``__all__`` are the library API, see docs/library.md.
4
+ They follow semantic versioning from v1.0.0. (other modules and names are internal and may change in any release)
5
+ """
6
+
7
+ from __future__ import annotations
8
+
9
+ __version__ = "0.7.0b1"
10
+
11
+ from typing import TYPE_CHECKING, Any
12
+
13
+ _EXPORTS: dict[str, str] = {
14
+ "newer": "library",
15
+ "NoVersionsError": "library",
16
+ "parse_config": "library",
17
+ "load_config": "library",
18
+ "Config": "config",
19
+ "PrivacyConfig": "config",
20
+ "ConfigError": "config",
21
+ "State": "state",
22
+ "StateError": "state",
23
+ "StateBusy": "state",
24
+ "Client": "http",
25
+ "Fetched": "http",
26
+ "FetchError": "http",
27
+ "ProxyUnavailable": "http",
28
+ "run": "runner",
29
+ "record": "runner",
30
+ "RunResult": "runner",
31
+ "ProgressReporter": "runner",
32
+ "Update": "models",
33
+ "Target": "models",
34
+ "RunError": "models",
35
+ "Source": "sources.base",
36
+ "ConfigEntryError": "sources.base",
37
+ "entry_fields": "sources.base",
38
+ "require": "sources.base",
39
+ "parse_iso": "sources.base",
40
+ "url_parts": "sources.base",
41
+ "parse_feed": "sources.feed",
42
+ "register": "registry",
43
+ "all_sources": "registry",
44
+ "get_source": "registry",
45
+ "EncryptionError": "crypto",
46
+ "WrongPassphrase": "crypto",
47
+ "YoupdatedError": "errors",
48
+ }
49
+
50
+ __all__ = [
51
+ "__version__",
52
+ "newer", "NoVersionsError", "parse_config", "load_config",
53
+ "Config", "PrivacyConfig", "ConfigError",
54
+ "State", "StateError", "StateBusy",
55
+ "Client", "Fetched", "FetchError", "ProxyUnavailable",
56
+ "run", "record", "RunResult", "ProgressReporter",
57
+ "Update", "Target", "RunError",
58
+ "Source", "ConfigEntryError",
59
+ "entry_fields", "require", "parse_iso", "url_parts", "parse_feed",
60
+ "register", "all_sources", "get_source",
61
+ "EncryptionError", "WrongPassphrase", "YoupdatedError",
62
+ ]
63
+
64
+
65
+ # Hidden from type checkers
66
+ if not TYPE_CHECKING:
67
+
68
+ def __getattr__(name: str) -> Any:
69
+ module = _EXPORTS.get(name)
70
+ if module is None:
71
+ raise AttributeError(f"module 'youpdated' has no attribute {name!r}")
72
+ from importlib import import_module
73
+
74
+ value = getattr(import_module(f".{module}", __name__), name)
75
+ # Later lookups skip this function
76
+ globals()[name] = value
77
+ return value
78
+
79
+
80
+ def __dir__() -> list[str]:
81
+ return sorted({*globals(), *_EXPORTS})
82
+
83
+
84
+ if TYPE_CHECKING:
85
+ from .config import Config, ConfigError, PrivacyConfig
86
+ from .crypto import EncryptionError, WrongPassphrase
87
+ from .errors import YoupdatedError
88
+ from .http import Client, Fetched, FetchError, ProxyUnavailable
89
+ from .library import NoVersionsError, load_config, newer, parse_config
90
+ from .models import RunError, Target, Update
91
+ from .registry import all_sources, get_source, register
92
+ from .runner import ProgressReporter, RunResult, record, run
93
+ from .sources.base import (
94
+ ConfigEntryError,
95
+ Source,
96
+ entry_fields,
97
+ parse_iso,
98
+ require,
99
+ url_parts,
100
+ )
101
+ from .sources.feed import parse_feed
102
+ from .state import State, StateBusy, StateError