1 Star 1 Fork 54

子非鱼/codo-dns

forked from opendevops/codo-dns 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
startup.py 902 Bytes
一键复制 编辑 原始数据 按行查看 历史
ss1917 提交于 2020-04-04 13:05 . 完善了一些云解析
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Contact : 191715030@qq.com
Author : shenshuo
Date : 2019年5月6日
Desc : 启动文件
"""
import fire
from tornado.options import define
from websdk.program import MainProgram
from settings import settings as app_settings
from biz.applications import Application as DNSApi
from biz.domain_program import Application as DNSCron
define("service", default='api', help="start service flag", type=str)
class MyProgram(MainProgram):
def __init__(self, service='dns', progress_id='dns'):
self.__app = None
settings = app_settings
if service == 'dns':
self.__app = DNSApi(**settings)
elif service == 'dns_cron':
self.__app = DNSCron(**settings)
super(MyProgram, self).__init__(progress_id)
self.__app.start_server()
if __name__ == '__main__':
fire.Fire(MyProgram)
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/fumingjian/codo-dns.git
git@gitee.com:fumingjian/codo-dns.git
fumingjian
codo-dns
codo-dns
master

搜索帮助