Skip to content

Releases: nexy7574/top.py

2.0.0a1

22 Jun 22:44
1bb2de8
Compare
Choose a tag to compare
2.0.0a1 Pre-release
Pre-release

This is the first alpha for v2.0.0. It is largely untested outside of unit tests.

  • Installed unit tests
  • Utilise dataclasses for response validation - should result in more predictable returns, and enables better OOP
  • Improve ratelimiter
  • Remove webhook server (will be re-implemented at a later date)
  • Remove is_weekend function (now undocumented)

Full Changelog: 1.4.1...2.0.0a1

v1.4.1

26 Aug 18:25
Compare
Choose a tag to compare

1.4.1 except fixed version number and tests

v1.4.0

26 Aug 18:12
Compare
Choose a tag to compare

Full Changelog: 1.3.2...1.4.0

Breaking changes:

  • Vote was split up into ServerVote and BotVote. See the docs.

v1.3.2

11 Jun 14:53
f616323
Compare
Choose a tag to compare

What's Changed

Full Changelog: 1.3.1...1.3.2

v1.3.1

27 Oct 11:39
77261ee
Compare
Choose a tag to compare
  • Fixed NameError in Client.__init__. That's all.

v1.3.0a3

14 Oct 18:13
Compare
Choose a tag to compare
v1.3.0a3 Pre-release
Pre-release

Remove pre1's database stuff, we aren't using it

Main change being how the project is installed - from the legacy setup.py to the new and shiny and ugly setup.cfg

Full Changelog: 1.2.0...1.3.0a3

v1.2.0

15 Aug 15:48
Compare
Choose a tag to compare

Not much changed, however it may be notable for some users:

  • Anything that took a user ID, now takes a user object. (If you only have the ID, you can just wrap it in discord.Object(id), it works the same)
  • lower-level control of the ratelimiter has been removed. This means you cannot toggle the ratelimiter off, be it per-function or for the entire instance.
  • The toppy.errors.Ratelimited error is now always raised on ratelimit, and you cannot automatically wait it out instead (confusing behaviour)
  • Client.post_stats no-longer allows an override
  • every request now fires a new event: on_toppy_request, with key-word arguments url:str and method:str. This is meant to help people debug if they're firing lots of requests.

1.1.3-pre.1

25 May 15:48
Compare
Choose a tag to compare
1.1.3-pre.1 Pre-release
Pre-release

Pre release, not fully tested.

Changes this version:

Not much, just improved some behind the scenes stuff.

Major changes:

  • Added the Socials model
  • Added docstrings to most things
  • Fixed up the vote server

v1.1.0

17 Mar 18:58
Compare
Choose a tag to compare

TL;DR:

Basically bugfixes, more class-based objects, aliases and more bug fixes.

Changelog:

Added

  • Added missing fetch_user function
  • Added alias for ColourOptions (=> ColorOptions)
  • Added typehints for most, if not all, data models (thank me later)
  • Added Vote data class for vote webhooks

Changed

DEPRECATIONS & MAJOR

  • fetch_bot, fetch_user and fetch_stats will soon use discord.Object and discord.User over raw integers. This will be changed in v1.3
  • toppy.server has been completely re-written to be aiohttp native (untested). Nothing is the same as it was before.

Bug Fixes

  • KeyError with the User model (for the "socials" field)
  • avatar (and similar) fields not actually being the URL

General changes

  • The vote webhook server now dispatches an event when someone votes.

This update has passed the global-function check. All functions in the Client have suceeded without error before this publish.
As always, if you find an error, please open an issue!

v1.0.1

07 Mar 12:37
Compare
Choose a tag to compare

Updates:

  • Fixed a "KeyError" when fetching votes - This was due to an undisclosed API change on behalf of top.gg
  • Add new "in-house" ratelimiting, hopefully avoiding those dreaded 429's.
  • Added examples to the README

Below are attached a source dist (top.py-1.0.1.tar.gz) and pre-built wheel (top.py-1.0.1-py3-none-any.whl)