- Now using yarl to improve url formatting and preventing Error 404 when using premium on some endpoints
- Added option to search pokemon by ID
- images, gifs, facts and filters now can be selected with
sr_api.Animal/Gif/filter.<option>
e.g.sr_api.Animal.cat
(this may or may not become required in the future!)
- Fix pokedex sprites and evolution line
- OwOify lyrics with
client.get_lyrics(title, owo=True)
- Pass your own
aiohttp.ClientSession
so you dont have to separately close sr_api's session withclient = sr_api.Client(session=mysession)
- Fixed a typo in the docs
- Add examples
- Fixed the big mistake I made
- gave access to sr_api.InputError and sr_api.PremiumOnly
- Fixed client token error
- Added amongus endpoint
- Client.view_color is no longer a coroutine
- Client.youtube_comment is no longer a coroutine
- Client.filter is no longer a coroutine
Client.filter()
now returns anImage
object
- Added
spin
back because apparently SRA didnt document it.
- Fixed type where you couldn't use the
greyscale
filter - Removed
spin
from filter method, unsure how it even got there
- You can now get the url from methods that return an
Image
object by casting the object tostr
- Fixed passing a key in
Client
- Added "key" to
Client.__slots__
- Renamed
Client.beta()
toClient.filter()
since its no longer a beta feature - Added
whale
andpikachu
toClient.get_image()
- Added
invertgreyscale
,brightness
,threshold
,red
,green
&blue
toClient.filter()
- Added
Client.youtube_comment()
- Added
Client.view_color()
- Added
Client.rgb_to_hex()
- Added
Client.hex_to_rgb()
- Added
Client.get_joke()
- Added support for using premium. Provide your premium key in the Client init like
client = sr_api.Client("key here")
. Dont provide a key if you dont have one. - Removed
Client.get_pikachu()
which is now available inClient.get_image()
- Fixed issue with beta endpoint
- Fixed last update where I forgot to change a crucial part
- Fixed where
Meme.read()
andMeme.save()
usedself.url
in stead ofself.image
- Initial release