Skip to content

Releases

v0.4.1

Choose a tag to compare

@lxcode lxcode released this 25 Apr 13:08

What's Changed

Full Changelog: stanfordio/truthbrush@v0.4.0...v0.4.1

v0.4.0

Choose a tag to compare

@lxcode lxcode released this 20 Apr 11:30
21bfe20

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_paginated only attach Authorization: Bearer ... when a token is present — no more Bearer None.

Python 3.14

  • python = "^3.14" in pyproject.toml.
  • Publish workflow bumped to actions/setup-python@v5 with python-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 = None defaults annotated as x: T | None = None.
  • Generator methods correctly typed Iterator[T].
  • pull_statuses result-shape validation reordered so a non-list response breaks the loop instead of crashing in sorted().

Drive-bys

  • search(resolve: bool = 4) default was an int; fixed to True.
  • pull_statuses(username=None, *, user_id=None): either identifier works; supplying user_id skips the lookup(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 Thiel added to authors in pyproject.toml.

Shipped in PR #74.

v0.3.0

Choose a tag to compare

@lxcode lxcode released this 20 Apr 11:01
18fc6cd

What's new

Fixes GitHub issue #71: Cloudflare's "Just a moment..." JS challenge page surfacing as a confusing JSONDecodeError from api.lookup.

Behavior change

  • _get now raises CFBlockException (a LoginErrorException subclass) when the Cloudflare JS challenge page is received, instead of logging Failed to decode JSON: ... and returning None. Callers that relied on the old silent-None path should now catch CFBlockException explicitly.
  • pull_statuses re-raises CFBlockException before its broad except Exception, so CF blocks are no longer silently converted to empty result sets.

TLS/fingerprint hygiene

  • curl_cffi bumped from ^0.14 to ^0.15 to pick up the chrome146 impersonation profile.
  • IMPERSONATE_TARGET set to chrome146 and USER_AGENT updated to the matching reduced-UA string (macOS 10_15_7, Chrome 146.0.0.0). Applied at all three call sites in lockstep so the declared UA and TLS/JA3 fingerprint do not drift.

Tooling

  • Dev dependencies swapped: black and pylint removed; ruff and ty added. ruff format applied across the package; drive-by lint fixes (__all__ in __init__, != None → is not None, Optional[X] → X | None, raise ... from None/e).

Dependency floors bumped

click, loguru, python-dotenv, pytest moved to current minors. poetry.lock regenerated.

v0.2.5

Choose a tag to compare

@lxcode lxcode released this 01 Feb 12:06

v0.2.4

Choose a tag to compare

@lxcode lxcode released this 21 Jan 11:54

What's Changed

New Contributors

Full Changelog: stanfordio/truthbrush@v0.2.3...v0.2.4

v0.2.3

Choose a tag to compare

@lxcode lxcode released this 12 Nov 15:18

v0.2.2

Choose a tag to compare

@lxcode lxcode released this 07 Nov 12:35

What's Changed

New Contributors

Full Changelog: stanfordio/truthbrush@v0.2.0...v0.2.2

v0.2.1

Choose a tag to compare

@lxcode lxcode released this 13 Oct 11:20

What's Changed

New Contributors

Full Changelog: stanfordio/truthbrush@v0.1.9...v0.2.1

v0.1.9

Choose a tag to compare

@lxcode lxcode released this 06 Oct 18:25

What's Changed

Full Changelog: stanfordio/truthbrush@v0.1.8...v0.1.9

v0.1.8

Choose a tag to compare

@lxcode lxcode released this 13 May 18:01

What's Changed

New Contributors

Full Changelog: stanfordio/truthbrush@v0.1.6...v0.1.8