Repository navigation
v1.8.2
1.8.2
Fixed
- Fixed the
requests.get()parameter typing in the upcoming-games store client. - Completed the lint, mypy, and test quality gates required for package publishing.
1.8.1
Added
- Added
AsyncSteamClient.get_player_count()as an async facade for
Steam's concurrent-player count API, including timeout translation
consistent with the rest of the async client. - Added public upcoming-games catalogue browsing through
AsyncSteamClient.get_upcoming_games(). Results support calendar
periods, country/language selection, stable pagination, and compact
table-ready rows containing release, review, price, store URL, and
image data. - Added the
steam.upcoming_gamesMCP tool with validated input and
output models. It supports today, this/next week, this/next month,
and the current year's popular upcoming games.
Fixed
- QR authentication now requests a Steam Client platform token instead
of a Web Browser token, matching the token audience required by
login_with_token(). - Changed the default QR authorized-device name to
pysteam-client MCPand clarified that browser User-Agent spoofing
does not apply to the CM protocol login.
Tests
- Added coverage for player-count forwarding, upcoming-store parsing
and pagination, MCP tool registration, and QR platform-token
selection.
1.8.0
Added
- Steam QR authentication support in the async client flow.
Fixed
- Tightened QR/session handling and type-safety fixes for the local async Steam client surface.
1.7.9
Fixed
.gitignoresilently ignoring top-level docs. The file
starts with*(deny-all) and had no allowlist entries for
README.*/SECURITY.md/CHANGES.md/LICENSE.*.
Files tracked before this rule (LICENSE,CHANGES.md) kept
working, but any new top-level doc was silently swallowed β
which is exactly what happened toREADME.rstin 1.7.8: the
commit strippedREADME.mdand referencedREADME.rstin
pyproject.toml, but git never addedREADME.rstbecause
the*rule ignored it.poetry buildin the release
workflow then failed withNo such file or directory: README.rst. Fix: explicit allowlist entries for all top-level
docs.- README ships in BOTH
.rstand.mdso both platforms
render their preferred format β GitHub picksREADME.md(with
the mermaid architecture diagram + rendered badges); PyPI reads
README.rstas declared inpyproject.tomlreadme =.
Content is mirrored between the two.
Fixed (from 1.7.8's uncommitted queue)
- 4 Pylance findings on the async surface β none were runtime
bugs, all type-check-only:events()return-type widened toAsyncGenerator[..., None]
(wasAsyncIterator) so callers canawait agen.aclose().prometheus_hookuseslabelnames=kwarg for
prometheus_clientstability across stub versions; the
lazy import carries a
# type: ignore[import-not-found, unused-ignore]that keeps
both Pylance (when the pkg is absent) and mypy (when it's
present) quiet.- TaskIQ integration test casts the
FakeBrokertoAnyat
theregister_steam_clientboundary β the fake intentionally
implements only the two-method subset the helper touches.
1.7.8
Changed
- Reverted README format
.mdβ.rst. 1.7.7's markdown
conversion was done for the mermaid diagram (Markdown renders
it natively on GitHub, RST doesn't), but the format switch
lost more than it gained..rststays the canonical Python
README; if we want the architecture diagram back, we'll render
mermaid to SVG and reference the image, not swap the whole
file format. pyproject.tomlreadme = "README.rst"restored.
Added
- MCP tools badge in the README badge row β
[MCP tools included]in Anthropic-purple, linking to the
MCP wiki page <https://github.com/H47R15/steam/wiki/MCP>_. Sits between
the Python-versions and License badges.
Fixed
- 4 Pylance findings on the async surface β none were real
runtime bugs, all were type-check-only:events()return-type widened toAsyncGenerator(was
AsyncIterator) so callers canawait agen.aclose().prometheus_hooknow useslabelnames=kwarg for
prometheus_client stability across stub versions.prometheus_clientlazy import carries an
import-not-found, unused-ignoretype-ignore that keeps
both Pylance (when the pkg is absent) and mypy (when it's
present) quiet.- TaskIQ integration test casts the
FakeBrokertoAny
at theregister_steam_clientboundary β the fake
intentionally implements only the two-method subset the
helper touches.
1.7.7
Changed
- README rewritten β smaller, focused on architecture +
quick-start. Everything detailed now lives in the
Wiki with an organised
link tree in the README so users find the right page fast. - README format
.rstβ.mdso GitHub renders the new
architecture diagram natively (mermaid). PyPI accepts markdown
too β verified viareadme_renderer[md]. pyproject.tomlreadme = "README.md"updated to match.
Added
- Mermaid architecture diagram at the top of the README showing
the two-thread model (asyncio-sidesteam.aio/steam.mcp
vs. the background gevent-hub daemon thread running the sync
SteamClient), the libev async-watcher bridge between them,
and the outbound CM / WebAPI / CDN paths. Renders natively on
GitHub; PyPI shows the mermaid source as a code block (still
readable) with a click-through to the GitHub view.
Fixed
.github/workflows/scorecard.ymlβ the step nameUpload artifact (retention: 5 days)had a second colon inside the
parenthetical that YAML parsed as a nested mapping-value
marker. Result: "workflow file issue" β the run failed
instantly at parse time with zero logs and the OpenSSF
Scorecard workflow never got to score the repo. Quoted the
name so the colon is a literal character; all four workflow
files now parse clean.
1.7.6
Fixed
-
Skip
tests/test_webapi.py::TCwebapi(7 tests) and
tests/test_steamid.py::steamid_functions::test_steam64_from_url
when running under urllib3 2.x. Their VCR cassettes
(vcr/webapi.yaml,vcr/steamid_community_urls.yaml) were
recorded against urllib3 1.x; vcrpy 8.3 can't replay the
requests under 2.x because urllib3 changed enough at the
connection layer that the recorded signature no longer matches
(CannotOverwriteExistingCassetteExceptionfrom
vcr/stubs/__init__.py).The 1.7.5 upgrade to urllib3 2.7.0 (to close five CVEs β see
1.7.5 notes) exposed this β nothing insteam.aioor
steam.mcpis affected, and neither is the WebAPI runtime
code itself; only the test-replay path.Skip reason surfaces in
pytest -voutput so nobody
quietly misses the coverage regression. Follow-up work
tracked: re-record cassettes viapoetry run vcr-webapi
(needsSTEAM_API_KEY) and an interactive session against
livesteamcommunity.comfor the vanity URL test.
1.7.5
Fixed
poetry.lockregenerated with--regenerateso
urllib3moves to 2.7.0 β 1.7.4's plainpoetry lock
preserved 1.26.20 (still satisfied the new ">=1.26,<3"
constraint) and CI failed on the same five CVEs a second
time. Every release from here on uses--regeneratewhen
a constraint changes.
Added
SECURITY.mdβ vulnerability reporting policy with a
copy-paste report template, supported-versions table, response
commitments (48 h ack, 5 business-day triage, 30/60/90-day fix
per severity, 90-day coordinated-disclosure embargo),
safe-harbour clause for good-faith researchers, and explicit
in-scope / out-of-scope lists.banditPython-native SAST wired into CI as a fifth
quality gate ([tool.bandit]inpyproject.toml; scoped
tosteam.aio+steam.mcp; medium severity and above;
B101/B110skipped for documented intentional patterns
in cleanup paths + type-narrowing asserts). Runs on every push,
PR, and release.- CodeQL workflow (
.github/workflows/codeql.yml) β
GitHub-native semantic SAST with cross-file dataflow analysis.
Runs on push + PR + weekly cron. Results in the repo's
Security tab. Complements bandit's single-file pattern scan. - OpenSSF Scorecard workflow β automated repository-posture
scoring; badge inREADME.rstrenders the public score from
api.securityscorecards.dev. - Dependabot config (
.github/dependabot.yml) β weekly
grouped dep-update PRs for pip + GitHub Actions, plus immediate
security-update PRs whenever a CVE lands on a dep. - README security section + badges β CI, CodeQL, OpenSSF
Scorecard, PyPI version, supported Python versions. - Publish workflow gated on
bandittoo β a failing SAST
finding blocks the PyPI upload.
1.7.4
Fixed
- urllib3 CVEs. Relax the
urllib3 = "<2"pin to
">=1.26,<3". The previous<2pin forced CI's fresh
poetry venv onto urllib3 1.26.20, which pip-audit flagged with
five open CVEs (PYSEC-2026-141 / -1994 / -1996 / -1998 / -1999)
β all fixed in urllib3 2.x. The fork has zero direct urllib3
imports (requestsis the only consumer); the earlier
comment claiming "cert-verification breakage in the fork under
urllib3 2.x" was unsourced and nothing in the tree exercises
the code path. New constraint matchesrequests's own
accepted range. - Regenerated
poetry.locksopip-auditsees the newer
urllib3.
1.7.3
Fixed
- Add
pydantic >= 2.0as a runtime dependency.steam.mcp.tools
imports it at module-top for the MCP tool input/output schemas, so
it can't be lazy β 1.7.1 / 1.7.2 shipped without declaring it and
every CI job that touchedsteam.mcpfailed with
ModuleNotFoundError: No module named 'pydantic'. Pydantic is
already present in every FastAPI / TaskIQ / MCP-SDK stack, so
promoting it to a hard dep costs almost nothing. deptryconfig:taskiq+prometheus_clientare now in
BOTH theDEP001(missing-from-deps) andDEP003
(transitive) ignore lists. 1.7.1 only hadDEP003β that
passed locally where they were transitively installed but tripped
DEP001in a fresh CI venv where they were absent.- Regenerated
poetry.lockto match.
1.7.2
Fixed
- Regenerated
poetry.locksopoetry installsucceeds
against the 1.7.1pyproject.tomlβ the 1.7.1 release
addedruff/black/mypy/pip-auditas
dev dependencies but shipped without a matching lock-file
refresh, so every CI job failed with "pyproject.toml
changed significantly since poetry.lock was last generated".
1.7.1 never made it past the quality gate to PyPI; 1.7.2
is the effective 1.7.1 release with a working install.
1.7.1
Added
- CI quality gates β the
Publishworkflow now runs
ruff + black + mypy (strict, onsteam.aio+steam.mcp)- deptry + pip-audit BEFORE building the wheel. A failing
lint / type-check / test blocks the PyPI upload.
- deptry + pip-audit BEFORE building the wheel. A failing
- The
CIworkflow (renamed from the oldTestsworkflow)
runs the same gates on every push + PR as four independent
jobs, so the GitHub UI shows which specific gate failed.
Concurrency-cancel is on β pushing a fix doesn't wait for
the previous build. [tool.black]/[tool.ruff]/[tool.mypy]sections
inpyproject.toml, scoped to the new modules so we can
ratchet toward strict lint incrementally without rewriting the
whole legacy tree in one go.ruff,black,mypy,pip-auditadded as dev
dependencies sopoetry install --with devbootstraps
everything CI runs.- Cover image at the top of README.rst β rendered on both GitHub
and PyPI via the absoluteraw.githubusercontent.comURL. - CI quality gates β¦
Changed
steam.aio.integrations.taskiqnow registers its
startup / shutdown handlers withTaskiqEvents.WORKER_STARTUP
/TaskiqEvents.WORKER_SHUTDOWN(the correct enum), not
the bare"startup"/"shutdown"strings. Fixes a
latent bug β the string form was rejected by newer TaskIQ
versions. Test updated to match.- Every
steam/aio/**/*.pyandsteam/mcp/**/*.pyfile
now passesmypy --strictandruff check/black --check. Type annotations tightened (generic params on
list/dict/Queue/Future/itertools.cycle,
narrowed return types in the FastAPIDependsproviders). - New black formatting applied to
steam/aio+steam/mcp- async tests. No functional change; diffs are purely
whitespace + import ordering.
- async tests. No functional change; diffs are purely
1.7.0
Added
- Production hardening for
steam.aio:client.statusβ JSON-serialisableClientStatusdataclass
(connected, logged_on, cell_id, reconnect state / attempts,
last_activity_at, uptime). Safe to return from a FastAPI
/healthhandler directly.metrics_hook=constructor argument onAsyncSteamClient
firing onclient.started/client.closed/cm.connected
/cm.disconnected/reconnect.started/
reconnect.succeeded/reconnect.failed/rpc.started/
rpc.succeeded/rpc.failed. Callback-based β the library
stays free of Prometheus / StatsD deps. A raising hook is
caught + logged so a broken metrics implementation never
takes down the RPC path.prometheus_hook()factory insteam.aio.statusβ one call
returns a ready-madeMetricsHookbacked by
prometheus_clientcounters + histograms.prometheus_client
imported lazily.asynciocancellation now kills the underlying gevent
greenlet β a cancelledasyncio.wait_for(client.get_product_info(...))
actually stops the sync work instead of orphaning a socket
read.
steam.aio.AsyncSteamPoolβ multi-account pool.
Concurrent bringup, round-robin selection,acquire(account_id),
per-member failure isolation,replace_member()for post-start
recovery.AsyncSteamPool+PoolMember+PoolMemberStatus
exported fromsteam.aio.steam.aio.integrations.fastapiβsteam_client_lifespan
/steam_pool_lifespancontext managers +get_steam_client
/get_steam_poolDependsproviders. FastAPI imported
lazily.steam.aio.integrations.taskiqβregister_steam_client/
register_steam_poolwire startup + shutdown hooks onto a
TaskIQ broker and return a sync dependency function for
TaskiqDepends. TaskIQ imported lazily.steam.mcppackage β exposeAsyncSteamClientas
Model-Context-Protocol tools an LLM agent can call.
Framework-agnostic tool definitions (Pydantic input / output
schemas + async handlers) atsteam.mcp.tools; FastMCP
adapter atsteam.mcp.server. Three built-in tools:
steam.status,steam.get_product_info,steam.send_um.
Adapter works with the officialmcpSDK
(mcp.server.fastmcp.FastMCP) and the standalonefastmcp
package β both imported lazily.- Extensive new test coverage β status snapshot, metrics hook
fires on the right events, hook exceptions don't kill RPCs,
cancellation kills the greenlet, pool concurrent bringup /
round-robin / failure isolation, FastAPI lifespan wiring,
TaskIQ dependency registration, MCP tool schemas + FastMCP
registration. 120 mocked + 1 live smoke test. - Wiki pages:
AsyncSteamClient,Pool,FastAPI-Integration,
TaskIQ-Integration,MCP.
Changed
AsyncSteamClientpublic API grew β newstatusproperty,
metrics_hook=kwarg. No breaking changes to existing methods._require_ready()now runs BEFORE dereferencingself._sync
in every public method, so a call beforestart()raises the
typedSteamNotStartedErrorinstead ofAttributeError.- README updated with async / FastAPI / MCP quick-start snippets
and a fresh source-tree layout.
1.6.0
Added
- New
steam.aiopackage β asyncio facade for use inside FastAPI /
Starlette / any asyncio app. The sync gevent client runs on a
dedicated daemon thread with its own isolated gevent hub; the
asyncio process is never monkey-patched, sohttpx/uvicorn/
motorkeep working. Public surface:AsyncSteamClientβstart,anonymous_login,login,
logout,disconnect,get_product_info,send_um_and_wait,
close, pluslogged_on/connected/username/cell_id
proxy properties. Full async context manager support.ReconnectPolicyβ auto-reconnect + relogin on CM disconnect,
with exponential-backoff retry and observability events
(aio.reconnecting/aio.reconnected/aio.reconnect_failed).
Enabled by default; disable with
AsyncSteamClient(reconnect=ReconnectPolicy(enabled=False)).- Async event bridge:
await client.wait_event(name, timeout=...)
for single-shot waits,async for evt in client.events(*names)
for streaming subscription with bounded internal buffer. - Typed exception hierarchy (
steam.aio.errors):
AsyncSteamError,SteamNotStartedError,SteamClosedError,
SteamLoginError(carriesEResult),SteamReconnectError
(carries attempt count),SteamRPCTimeoutError(carries
deadline). Backwards-compatible with pre-1.6 callers catching
RuntimeError/TimeoutError.
- Live-network integration smoke test (
tests/test_aio_integration.py),
gated byRUN_LIVE=1β anonymous login +get_product_info(apps=[440])
against a real Steam CM. Skipped in normal CI, catches upstream
Steam protocol changes on demand.
Fixed
- Silence false-positive Pylance
reportArgumentTypewarning on
the generated_builder.BuildServices(...)call in every
*_pb2.py. Type-check-only change; runtime behaviour is
unchanged. Thepb_compilepost-processor now applies the
suppression automatically on future protobuf rebuilds.
1.6.0
Added
steam.aio.AsyncSteamClientβ asyncio facade around
SteamClientfor use inside FastAPI / Starlette / any asyncio
app. Runs the sync client on a dedicated daemon thread with
its own isolated gevent hub; the asyncio process is never
monkey-patched, sohttpx/uvicorn/motorkeep working.
Coversanonymous_login,login,logout,disconnect,
get_product_info, andclose, pluslogged_on/connected
/username/cell_idproxy properties. Full async context
manager support (async with AsyncSteamClient() as client:).
Background greenlets (recv loop, CM heartbeat) keep running
between requests β the connection stays warm without any
polling on the caller side.
Fixed
- Silence false-positive Pylance
reportArgumentTypewarning on
the generated_builder.BuildServices(...)call in every
*_pb2.py. Type-check-only change; runtime behaviour is
unchanged. Thepb_compilepost-processor now applies the
suppression automatically on future protobuf rebuilds.
1.5.1
Fixed
- Silence false-positive Pylance
reportArgumentTypewarning on
the generated_builder.BuildServices(...)call in every
*_pb2.py. Type-check-only change; runtime behaviour is
unchanged. Thepb_compilepost-processor now applies the
suppression automatically.