This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# deps of sqlalchemy and pandas | |
# python -m pip install sqlalchemy==1.4.39 pandas | |
import sqlalchemy as sa | |
import pandas as pd | |
# the hash at the end of the connection string changes, so this isn't the exact connection string | |
eng = sa.create_engine( | |
"sqlite:///C:\Program Files\Wizards of the Coast\MTGA\MTGA_Data\Downloads\Raw\Raw_CardDatabase_hash_here.mtga" | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from __future__ import division | |
from webthing import Action, Event, Property, SingleThing, Thing, Value, WebThingServer | |
from mycroft_bus_client import MessageBusClient, Message | |
import logging | |
import time | |
import uuid | |
class QuestionAction(Action): | |
def __init__(self, thing, input_): |