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.3.0.tar.gz
(6.9 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file asyncKirara-1.3.0.tar.gz.
File metadata
- Download URL: asyncKirara-1.3.0.tar.gz
- Upload date:
- Size: 6.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.38.0 CPython/3.8.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3edaa4bb7300ac18fd252de211aea81e2b40e4e1e5b855496164444d9c2b5512
|
|
| MD5 |
711817e9fec7a4f2f5cbe823ba78f938
|
|
| BLAKE2b-256 |
310d29d3526957ec21db48c76e3a1f670f542462fe65829bdcfd083149f84f85
|
File details
Details for the file asyncKirara-1.3.0-py3-none-any.whl.
File metadata
- Download URL: asyncKirara-1.3.0-py3-none-any.whl
- Upload date:
- Size: 8.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.38.0 CPython/3.8.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6a30c1f64e17ed86e79ed73909ff3d544d9bbcd24aeb05a75e44d13379d34bd7
|
|
| MD5 |
402905b2074e7148a8d65a0c110e7041
|
|
| BLAKE2b-256 |
b8e8d18920fb3f7e5f144ed6927d60a6c6a653457af70527a87d48fb1472135d
|