Skip to content

Releases: BruceCodesGithub/yarsaw

v2.1.0

27 Mar 04:38
Compare
Choose a tag to compare

Hello! This new amazing release sets up the stage for the next major release - v3.0! v3.0 will come with a sync client, so hope you are excited. The code will become better and more readable too. Anyways, enough about the next release. This release brings ...

Changelog

  • Updated get_anime_gif() and get_joke() to accommodate the latest changes in the API. With this, YARSAW supports all 8 endpoints again!
  • Removed get_safe_joke(). You may blacklist tags instead.
  • Remove nested return type from get_animal_image() and get_anime_gif()
  • Edit dataclasses.
    • Dataclasses now have more pythonic parameters for ease of use.
    • Replaced headers with APIInfo, a nested dataclass with information about the response.
  • Various code changes and refactors.

Full Changelog: v2.0.1...v2.1.0

2.0.1

27 Jan 16:28
Compare
Choose a tag to compare

This is a small release with minor changes

Changes

  • Added support for /weather
  • Parameter base was removed from class Client
  • Error handling for incorrect API keys was improved

v2.0.0

08 Jan 08:29
Compare
Choose a tag to compare

This is a major change! As many of you might know, Random Stuff API went though a major change - including shifting completely to RapidAPI to make payment and development easier.
However, YARSAW updated its build accordingly to welcome the change. And now, working with YARSAW is better than ever because otherwise, working with the API would be very hard.

Changes

Aside from the functions being rewritten, some more changes are:

  • Docs were updated
    • Uses the ReadTheDocs theme for documentation
    • The documentation is no longer a single page, but a collection of pages.
  • Since the API now has more use of headers than ever (it returns the number of daily requests left), all methods return headers along with other data.
  • The Client class has one for initial parameter for the RapidAPI Key,
  • The generate_uid and format_joke methods are no longer async - them being async was useless.
  • New Docstrings and comments
  • RawClient was terminated.

And much more!

Full Changelog: 1.3...2.0

1.3

12 Dec 12:17
Compare
Choose a tag to compare
1.3

Changes

  • The Client class now returns objects which are easier to work with.
  • RawClient class can be used to return the raw JSON response from the API.

This is a major release because it uses dataclasses and objects and makes working with the API way easier. Also fixes a lot of mistakes.

1.2

14 Nov 13:17
Compare
Choose a tag to compare
1.2

1.2

A new stable version for YARSAW

Changes

  • Updated Docs - now view it here
    • Uses ReadTheDocs.
    • Uses Sphinx instead of MKDocs
    • Updated the docs to be more readable.
    • Is updated automatically with docstrings.
    • Covers all the methods. Fixed minor mistakes.
  • Created a Utils class, added format_joke() and generate_uid() to the Utils.
  • Added docstrings to all the methods.
  • Better code style.
  • Updated many other things.

Full Changelog: 1.0.1...1.2

1.0.1

09 Nov 04:42
Compare
Choose a tag to compare

Backend changes

(No need to update docs)

  • Moved constants to utils.py
  • Make a single client session in HTTPClient
  • Fixed mistake - said "yes" when API key was not provided
  • Renamed private vars from __var__ format to _var format.
  • Readme.md updates

1.0

09 Nov 02:38
ec8ea49
Compare
Choose a tag to compare
1.0

The first stable release of YARSAW.