Releases: nexy7574/top.py
2.0.0a1
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
v1.4.0
v1.3.2
What's Changed
- Restyle Remove dependency on discord.py by @restyled-io in #7
- Remove dependency on discord.py by @EEKIM10 in #6
Full Changelog: 1.3.1...1.3.2
v1.3.1
v1.3.0a3
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
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 argumentsurl:str
andmethod:str
. This is meant to help people debug if they're firing lots of requests.
1.1.3-pre.1
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
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
andfetch_stats
will soon usediscord.Object
anddiscord.User
over raw integers. This will be changed in v1.3toppy.server
has been completely re-written to be aiohttp native (untested). Nothing is the same as it was before.
Bug Fixes
KeyError
with theUser
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
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)