Changelog

This page keeps a detailed, human-friendly rendering of what’s new and changed in specific versions.

v0.1.3

  • Hot fix for cases where None was no longer accepted, even though it was the default.

  • Fixed the wrong or no repr appearing for osme models.

v0.1.2

  • Added support for bottom_text parameter in CanvasMemes.no_bitches() method.

  • Fixed a bug where the aiohttp session could be closed when passed by the user. The library will always recreate a new session if that’s the case.

  • Hotfix for Python 3.14 compatibility. The wrapper now supports Python 3.11 to 3.14.

  • Other Miscellaneous fixes and improvements internally. For example, the type checking implementation was improved to handle more edge cases and be less error-prone.

  • Improve error messages for some exceptions, like missing keyword arguments or passing positional arguments when only keyword arguments are accepted.

Full Changelog: GitHub Diff

v0.1.1

Just for PyPi because v0.1.0 already uploaded to PyPi but something went wrong with it.

Full Changelog: GitHub Diff

v0.1.0

Big update! Lots of QoL changes.

New Features

Removals

  • Support for Python 3.9 and 3.10 was removed. The library now requires Python 3.11 or higher.

  • Client.generate_bot_token() no longer takes a bot_id parameter. This is because the API no longer supports this feature.

  • Client.dictionary was removed. The API no longer has this feature.

  • The class LyricsLinks was removed. The API no longer has this feature.

  • AnimuClient.face_palm was removed. The API no longer has this feature.

Bug Fixes

  • Fixed a bug where PremiumClient.rankcard() did not use the correct endpoint.

  • Fixed a bug where the random color from the library would be less than 6 characters long.

Miscellaneous

Full Changelog: GitHub Diff

v0.0.8

  • Add debug logging to the http client and endpoints validation. This will log the request and response data if the logger is set to debug. Here is how to enable it:

    import logging
    
    # http
    sra_http_logger = logging.getLogger("somerandomapi.http")
    sra_http_logger.setLevel(logging.DEBUG)
    # endpoints validation
    sra_endpoints_logger = logging.getLogger("somerandomapi.endpoints")
    sra_endpoints_logger.setLevel(logging.DEBUG)
    
  • Corrected the font range for the welcome cards to be between 0 and 7. It was previously between 0 and 10. To prevent a breaking change, the library sets the font to 7 if the provided font is greater than 7.

    Affected classes and methods:
  • Added a new method to the AnimalClient class to help with trying all available animal endpoints in order to get an image and a fact or just one of them. The method is called AnimalClient.get_image_or_fact() and takes all the available animal names and endpoints and tries to get an image and a fact from each one until it succeeds. It returns an instance of AnimalImageOrFact with two optional attributes: image and fact. If the method fails to get an image and a fact, it will return None for both attributes.

    import somerandomapi
    
    client = somerandomapi.Client(...)
    image_fact = await client.animal.get_image_or_fact(<enum or str>) # Example: "cat" or somerandomapi.Animal.PIKACHU
    print(image_fact.image, image_fact.fact) # <image url or None> <fact or None>
    

Full Changelog: GitHub Diff

v0.0.7

It would previously raise an error if the discriminator was provided.

  • Fix an internal error when the API returns an unexpected status code.

  • Fix unparsed TypingError.

Sometimes it would send “_UnionGenericAlias” in the error message instead of the actual field type. This was fixed by always parsing the field’s type.

Full Changelog: GitHub Diff

v0.0.6

Full Changelog: GitHub Diff

v0.0.5

  • Fix: Exceptions not being accessed from the main namespace (somerandomapi...).

  • Fix: Link to API in README.

Full Changelog: GitHub Diff

v0.0.4

  • Urgent Fix: Base URL for requests to the API changed from https://some-random-api.ml/ to https://some-random-api.com/.

Full Changelog: GitHub Diff

v0.0.3

  • Correct base API URL. URL changed from https://some-random-api.ml/ to https://some-random-api.com/.

  • Fix mistake in AnimalClient.get_image_and_fact

  • Fix enum conversion errors

  • Fix link to API in documentation.

Full Changelog: GitHub Diff

v0.0.2

  • Fix: Critical NameError in Client.

v0.0.1

  • Initial Release!