Git Product home page Git Product logo

quantaxis_webserver's Introduction

QUANTAXIS_WEBSERVER

quantaxis_webserver

QUANTAXIS的后端基类 BASE ON TORNADO

current version: 2.0


2.0 支持了 tornado 6.1, 方便兼容 jupyterlab 3

2.0是一个不兼容更新, 删除了 1.x 的诸多 handlers, 如需使用之前的版本, 请指定版本安装 pip install quantaxis_webserver<2

-- support tornado 6.1

-- 支持 apschedule

选择直接 use template 创建 fork

自行修改你的 schedule

COMPONENTS

  • QAWebServer.basehandlers.QABaseHandler

    • 支持 get/ post 的复写
    class xxx(QABaseHander):
        def get(self):
            pass
    
        def post(self):
            pass
  • QAWebServer.basehandlers.QAWebSocketHandler websocket 基类

  • QAWebServer.schdeulehandler.QASchedulerHandler 定时任务基类

    • 本项目使用 TornadoScheduler, 基于 mongodb存储 job 信息
    • 使用 qaenv 获取 mongodb_ip, mongodb_port 如需修改地址
      • 使用 docker-compose 预制在系统变量中
      • 如未使用 docker-compose 自行修改系统环境变量
        • MONGODB ==> ip 默认 "127.0.0.1"
        • MONGODBPORT ==> port 默认 27017

    在初始化 init_scheduler 后, scheduler(Tornado Scheduler)是一个全局变量 可以直接使用(已经初始化在 start_server 函数中)

    复写QASchedulerHandler, 并放置到 handlers 句柄中

quantaxis_webserver's People

Contributors

yutiansut avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

quantaxis_webserver's Issues

QUANTAXIS_WEBSERVER 2.0 启动失败

我通过 qawebserver 命令 成功启动了server
[QAScheduler Init]Scheduler has been started
========WELCOME QUANTAXIS_WEBSERVER 2.0 ============
QUANTAXIS VERSION: 2.0.0.dev33
QUANTAXIS WEBSERVER is Listening on: http://0.0.0.0:8010
请打开浏览器/使用JavaScript等来使用该后台, 并且不要关闭当前命令行窗口

但是访问 http://0.0.0.0:8010
只是返回
{"status": 200, "message": "This is a welcome page for quantaxis backend", "url": ["/", "/command/run", "/command/runws", "/command/runbacktest", "/scheduler/map/?", "/scheduler/query", "/qifi", "/qifis", "/qifirealtime", "/user"]}

同时,81级8888等端口都无法访问,返回 无法访问此网站

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.