Skip to content

v1.0.0rc2

Pre-release
Pre-release

Choose a tag to compare

@arrayyandn arrayyandn released this 25 May 22:26
· 9 commits to main since this release

dankmemer.py v1.0.0rc2

This release candidate adds the new DankAlert stream endpoint and improves the client internals ahead of the stable 1.0 release.

Highlights

  • Added client.stream for the /dank/stream endpoint.
  • Added StreamData and TrendingGame response models.
  • Parsed stream lastModified values into timezone-aware datetime objects.
  • Added shared internal route cache and filtering helpers to reduce duplicated route code.
  • Added configurable retry handling for rate limits, temporary server errors, timeouts, and connection errors.
  • Added cache controls:
    • client.clear_cache()
    • client.clear_route_cache(...)
    • route-level clear_cache()
    • route-level cache_info()
  • Added support for disabling cache with cache_ttl_hours=0 or None.
  • Added session ownership support for user-provided aiohttp.ClientSession objects.
  • Added configurable logging modes:
    • logging_mode="default"
    • logging_mode="null"
    • logging_mode="inherit"
    • logger=custom_logger
  • Updated supported Python versions to Python 3.11+.
  • Updated README and Sphinx docs.
  • Added more automated tests and a manual maintainer smoke script.

Install

pip install --upgrade dankmemer

or:

pip install --upgrade dankmemer.py

Notes

This is still a release candidate. The package has not yet had a stable 1.0.0 release, so this version is intended for final testing before promoting the API to stable.

Full Changelog: v1.0.0rc1...v1.0.0rc2