Python components of Kirara
Go to file
Henry 86de89fda9 Fix batch string sometimes being null when cards are missing data 2020-10-23 20:32:34 +01:00
jaken Fix batch string sometimes being null when cards are missing data 2020-10-23 20:32:34 +01:00
README.md Add animesoul client & rpc server 2020-10-23 12:00:36 +01:00
requirements.txt Add animesoul client & rpc server 2020-10-23 12:00:36 +01:00

README.md

jaken

Python component of Kirara, responds to RPC

Setup

python3 -m venv env
./env/bin/pip install -r requirements.txt

# running the server
./env/bin/python -m jaken

RPC directory

soul

Searching for cards:

rpc.remote.soul.search_cards("blake").then((cards) => {
    // `cards` is an array of cards
});

Fetching a specific card by ID:

rpc.remote.soul.get_card("5f2b3701a5a84e32a258df1b", /* with_users: */ true)
    .then((data) => {
        // `data.card` is a Card
        // if with_users is true, `data.users` is an array of users
    });