Releases: cgrok/cr-async
Miscellaneous new class variables!
Breaking Change
card.decklink
is now changed to card.deck_link
More Class Variables
profile.deck_link
card.key
card.image_url
Documentation
Docs should be completed now at https://cgrok.github.io/cr-async/#/
Use pip install -U crasync
to update!
Major Release.
Hey! crasync v2.0.0 is out!
This is a major update for the library with many new features. We removed fstrings to make this Python 3.5 compatible and smashed a ton of bugs! Thanks for reporting!
Constants
Constants were added to the library
constants await client.get_constants()
constants.cards
is now a dict, do constants.cards['knight']
to get card object for Knight
Temporary sessions!
p = await crasync.get_profile('tag')
# or
async with crasync.Client() as client:
p = await crasync.get_profile('tag')
Less efficient so use Client when possible, things like profile.get_clan()
(outside the with statement) wont work if you use this.
Better Error Handling
Returns None if profile doesnt have a clan and you do profile.clan_tag or similar and raises a ValueError if you try to profile.get_clan() someone without a clan. Requests to the api also have better error handling as well.
Unfinished docs at https://grokkers.github.io/crasync
Use pip install -U crasync
to update!
Python 3.5 Support
Added python 3.5 support by removing fstrings, also made error handling better.
Added Shortcuts
Added shortcuts for the init.py that uses temporary clients.
Public Release
Bug fixes, new support for constants and multiple clans/profiles and top clans.
Alpha Release
Everything works 🤔