Skip to content
This repository has been archived by the owner on Aug 19, 2018. It is now read-only.

Major Release.

Compare
Choose a tag to compare
@kyb3r kyb3r released this 30 Oct 11:05
· 50 commits to master since this 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!