Repository navigation
Releases
Releases · w2rc/truthbrush
v0.4.1
What's Changed
- Fix search() skipping every other page (#48) by @lxcode in https://github.com/stanfordio/truthbrush/pull/77
- Add
created_beforeupper bound to pull_statuses (#49) by @lxcode in https://github.com/stanfordio/truthbrush/pull/78
Full Changelog: stanfordio/truthbrush@v0.4.0...v0.4.1
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.
v0.3.0
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
_getnow raisesCFBlockException(aLoginErrorExceptionsubclass) when the Cloudflare JS challenge page is received, instead of loggingFailed to decode JSON: ...and returningNone. Callers that relied on the old silent-None path should now catchCFBlockExceptionexplicitly.pull_statusesre-raisesCFBlockExceptionbefore its broadexcept Exception, so CF blocks are no longer silently converted to empty result sets.
TLS/fingerprint hygiene
curl_cffibumped from^0.14to^0.15to pick up the chrome146 impersonation profile.IMPERSONATE_TARGETset tochrome146andUSER_AGENTupdated 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:
blackandpylintremoved;ruffandtyadded.ruff formatapplied 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
Full Changelog: stanfordio/truthbrush@v0.2.4...v0.2.5
v0.2.4
What's Changed
- Fix type mismatch between post["id"] and since_id by @plummm in https://github.com/stanfordio/truthbrush/pull/60
- Chase OAuth endpoint change
New Contributors
- @plummm made their first contribution in https://github.com/stanfordio/truthbrush/pull/60
Full Changelog: stanfordio/truthbrush@v0.2.3...v0.2.4
v0.2.3
Full Changelog: stanfordio/truthbrush@v0.2.2...v0.2.3
v0.2.2
What's Changed
- Update api.py by @dttran-glo in https://github.com/stanfordio/truthbrush/pull/56
- Update README.md to enhance installation instructions by @TO19 in https://github.com/stanfordio/truthbrush/pull/59
New Contributors
- @TO19 made their first contribution in https://github.com/stanfordio/truthbrush/pull/59
Full Changelog: stanfordio/truthbrush@v0.2.0...v0.2.2
v0.2.1
What's Changed
- Remove SystemExit raise in api.py by @pr-maia in https://github.com/stanfordio/truthbrush/pull/47
- add function to collect truths from a given hashtag by @dale-wahl in https://github.com/stanfordio/truthbrush/pull/51
- Update pyproject.toml by @dttran-glo in https://github.com/stanfordio/truthbrush/pull/55
New Contributors
- @pr-maia made their first contribution in https://github.com/stanfordio/truthbrush/pull/47
- @dale-wahl made their first contribution in https://github.com/stanfordio/truthbrush/pull/51
- @dttran-glo made their first contribution in https://github.com/stanfordio/truthbrush/pull/55
Full Changelog: stanfordio/truthbrush@v0.1.9...v0.2.1
v0.1.9
What's Changed
- Added functionality to pull posts from a group's timeline. by @Ashleydai2003 in https://github.com/stanfordio/truthbrush/pull/33
- Bump certifi from 2024.2.2 to 2024.7.4 by @dependabot in https://github.com/stanfordio/truthbrush/pull/35
- Retrieve replies to specified post (Medhya goel) by @medhyaGoel in https://github.com/stanfordio/truthbrush/pull/34
Full Changelog: stanfordio/truthbrush@v0.1.8...v0.1.9
v0.1.8
What's Changed
- Support pulling pinned statuses by @dhjw in https://github.com/stanfordio/truthbrush/pull/25
- Bump black from 22.12.0 to 24.3.0 by @dependabot in https://github.com/stanfordio/truthbrush/pull/26
- add optional arg "limit" to trending() method by @field-cady in https://github.com/stanfordio/truthbrush/pull/28
- Return list of users who liked a post by @medhyaGoel in https://github.com/stanfordio/truthbrush/pull/29
- Added new group methods. by @Ashleydai2003 in https://github.com/stanfordio/truthbrush/pull/30
- Updated README and expanded search functionality to allow searching for groups. by @Ashleydai2003 in https://github.com/stanfordio/truthbrush/pull/31
New Contributors
- @dhjw made their first contribution in https://github.com/stanfordio/truthbrush/pull/25
- @field-cady made their first contribution in https://github.com/stanfordio/truthbrush/pull/28
- @medhyaGoel made their first contribution in https://github.com/stanfordio/truthbrush/pull/29
- @Ashleydai2003 made their first contribution in https://github.com/stanfordio/truthbrush/pull/30
Full Changelog: stanfordio/truthbrush@v0.1.6...v0.1.8