Repository navigation
v0.4.0
What's new
Public/unauthenticated mode (closes #32)
Api(require_auth=False)now lets you call Truth Social's public-readable endpoints without credentials.truthbrush --no-auth <command>from the CLI for the same thing.- The default stays strict (
require_auth=True), so existing callers see no behavior change. - Internally:
_get/_get_paginatedonly attachAuthorization: Bearer ...when a token is present — no moreBearer None.
Python 3.14
python = "^3.14"inpyproject.toml.- Publish workflow bumped to
actions/setup-python@v5withpython-version: "3.14". ruff target-version = "py314"; downstream UP017/UP037 rewrites already applied (timezone.utc→UTC, unquoted PEP-604 annotations).
Typing hygiene
ty check truthbrush/now reports zero diagnostics, down from 35 pre-existing.x: T = Nonedefaults annotated asx: T | None = None.- Generator methods correctly typed
Iterator[T]. pull_statusesresult-shape validation reordered so a non-list response breaks the loop instead of crashing insorted().
Drive-bys
search(resolve: bool = 4)default was an int; fixed toTrue.pull_statuses(username=None, *, user_id=None): either identifier works; supplyinguser_idskips thelookup(username)roundtrip, useful in public mode when lookup may be gated.
Tooling / docs
- README gains a "Public mode (no credentials)" section; stale "format with black" replaced with the ruff/ty workflow.
David Thieladded toauthorsinpyproject.toml.
Shipped in PR #74.