This file contains hidden or 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
import trio | |
import sys | |
import time | |
import httpx | |
from outcome import Error | |
import traceback | |
# Can't use PySide2 currently because of | |
# https://bugreports.qt.io/projects/PYSIDE/issues/PYSIDE-1313 | |
from PyQt5 import QtCore, QtWidgets |
This file contains hidden or 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
""" | |
Convert a CFFI cdata structure to Python dict. | |
Based on http://stackoverflow.com/q/20444546/1309774 with conversion of | |
char[] to Python str. | |
Usage example: | |
>>> from cffi import FFI | |
>>> ffi = FFI() |