Releases: BruceCodesGithub/yarsaw
v2.1.0
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()
andget_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()
andget_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
This is a small release with minor changes
Changes
- Added support for
/weather
- Parameter
base
was removed from classClient
- Error handling for incorrect API keys was improved
v2.0.0
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
andformat_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
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
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
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
The first stable release of YARSAW.