Asynchronous Python client for the Scryfall API
Project description
This is an early work in progress. I am currently in the phase of getting all of the features in place. Once everything is in place, I will clean up the API and add some abstraction layers and documentation on top.
For now, the API is very low level and you will need to read the Scryfall API and the code to figure out how to use it.
You will need Python >= 3.11 (I may change this to support earlier versions in the future) and you will need to use aiohttp.
A minimal use case to get yourself started:
import asyncio
import aiohttp
import aioscryfall.cards
async def get_bolt():
async with aiohttp.ClientSession() as session:
card_list = await aioscryfall.cards.search(session, "lightning bolt")
return card_list.data[0]
bolt = asyncio.run(get_bolt())
print(bolt)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
aioscryfall-0.1.1.tar.gz
(19.0 kB
view hashes)
Built Distribution
Close
Hashes for aioscryfall-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6da87a4724c27a82cc29c781551fb77394da0f2712801ca15b2801037d7b0265 |
|
MD5 | 23c9231273e9b1bf0b841fd19a751e71 |
|
BLAKE2b-256 | a772dbd30cc67c66cf21b6d096cd2b8cebc71a2b75a3119383f9d93722be7da3 |