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

Releases: cgrok/cr-async

Miscellaneous new class variables!

29 Nov 15:52
Compare
Choose a tag to compare

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.

30 Oct 11:05
Compare
Choose a tag to compare

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

28 Oct 14:00
Compare
Choose a tag to compare

Added python 3.5 support by removing fstrings, also made error handling better.

Added Shortcuts

28 Oct 03:03
37adb56
Compare
Choose a tag to compare

Added shortcuts for the init.py that uses temporary clients.

Public Release

28 Oct 00:45
Compare
Choose a tag to compare

Bug fixes, new support for constants and multiple clans/profiles and top clans.

Alpha Release

22 Oct 11:06
Compare
Choose a tag to compare

Everything works 🤔