Amazfit Bip 에서 사용할 폰트를 생성합니다. 이 프로그램은 Amazfit Bip Font Creator에서 다운받을 수 있습니다.
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
## resources/message.py | |
from flask_restful import reqparse | |
from conf.firebaseInit import fs | |
from conf.util import Util | |
from events.result import Result | |
from events.select import Select | |
from events.setting import Setting | |
from resources.keyboard import * |
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
## resources/keyboard.py | |
from flask import json, Response | |
from flask_restful import Resource | |
from conf.const import Const | |
class Keyboard(Resource): | |
@classmethod |
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
## evnets/setting.py | |
from firebase_admin import firestore | |
from conf.const import Const | |
from conf.firebaseInit import fs | |
from conf.util import Util | |
from events.args import Args | |
from events.select import Select |
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
## events/select.py | |
import operator | |
from random import shuffle | |
from firebase_admin import firestore | |
from conf.const import Const | |
from conf.firebaseInit import fs | |
from conf.util import Util |
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
## evnets/result.py | |
import operator | |
from conf.const import Const | |
from conf.firebaseInit import fs | |
from conf.util import Util | |
from events.args import Args | |
from events.select import Select |
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
## events/args.py | |
from conf.const import Const | |
import re | |
class Args: | |
def __init__(self, args): | |
self.args = args | |
self.user_key = args.get(Const.ARG_USER_KEY) |
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
## conf/util.py | |
from datetime import datetime, timedelta | |
import re | |
import pytz | |
from flask import json, Response | |
from conf.const import Const | |
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
## conf/firebaseInit.py | |
import os | |
import firebase_admin | |
from firebase_admin import credentials | |
from firebase_admin import firestore | |
FILE_DIR = os.path.dirname(os.path.abspath(__file__)) | |
CONFIG_PATH = os.path.join(FILE_DIR, 'serviceAccount.json') |
NewerOlder