an async Python wrapper for the starlight.kirara API
Project description
Async-Kirara
An async port of pyKirara, that's about it
Usage
import asyncKirara
import asyncio
async def cards(loop):
client = asyncKirara.Kirara()
cards = await client.get_id('card_t', 'uzuki', card_rarity='ssr') # Get all SSR card IDS for Uzuki
stuff = await client.get_cards(cards, en_translate=True) # Converts IDS into card objects
for card in stuff: # Print the cards' attributes
print('='*30)
print(card.title)
print(card.lead_skill.name)
print(card.skill.name)
print('\n')
await client.close()
if __name__ == '__main__': # Async loop stuff
loop = asyncio.get_event_loop()
loop.run_until_complete(cards(loop))
Requirements
- Python 3.6+ (Mabye I'll backport it to 3.5, if I feel like it)
- aiohttp library
License
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
asyncKirara-1.2.0.tar.gz
(6.9 kB
view hashes)
Built Distribution
Close
Hashes for asyncKirara-1.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | af77f03696b5de64fa42fa54cb42329659cea5a5aa87170bce213d09c923bae2 |
|
MD5 | 4010350b7dc20ff75ee652fdf60b3edb |
|
BLAKE2b-256 | 119f4e8a32b664f45d8253147d1ef6160cca99a35e6390a0c1582c56b9da0403 |