Skip to main content

安装环境

基础环境安装

conda create --name quantguard python=3.10.6
conda activate quantguard

安装poetry包管理工具

pip install poetry

# 解决 poetry publish 问题
pip install urllib3==1.26.6

安装项目依赖

poetry install

开发过程中安装具体某个包

poetry add xxx包名

发布

poetry build
poetry publish

启动项目

本地测试

请在config目录下创建settings.local.yml填写自己的配置

启动

quantguard server

生成环境安装

pip install quantguard==0.1.24 -i https://pypi.Python.org/simple 

安装superset

卸载本地安装的pandas,因为安装superset容易产生冲突(测试只支持pandas 2.0.3)

poetry remove pandas
poetry add apache-superset

初始化db

设置 superset SECRET_KEY, 详见superset_config.py文件

Create an admin user in your metadata database (use admin as username to be able to load the examples)

export FLASK_APP=superset superset db upgrade superset fab create-admin

Load some data to play with

superset load_examples

Create default roles and permissions

superset init

To start a development web server on port 8088, use -p to bind to another port

superset run -p 8088 --with-threads --reload --debugger

Metadata

Release files for quantguard 0.1.38

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for quantguard 0.1.38
File Size Uploaded
quantguard-0.1.38.tar.gz 16.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for quantguard 0.1.38
File Interpreter ABI Platform
quantguard-0.1.38-py3-none-any.whl Python 3 none any Details

Total release size: 41.6 kB

Release files / quantguard-0.1.38.tar.gz

Download URL quantguard-0.1.38.tar.gz
Size 16.9 kB
Tags Source
SHA-256 checksum
How to use checksums
5ffd83c98a8e5dfdea8c9a8a5e2d01d835ee0957c36533f4a91e5936b4f3636e
BLAKE2b-256 checksum
How to use checksums
29b21fc7525e69e556d2bbe5007138be397882aa9347cb10974c86f01a86bd34
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.3 CPython/3.10.6 Darwin/23.2.0

Release files / quantguard-0.1.38-py3-none-any.whl

Download URL quantguard-0.1.38-py3-none-any.whl
Size 24.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
00d8977a3082b209648f9f225e116f2697455af7867a1862651f3e9d028ad99d
BLAKE2b-256 checksum
How to use checksums
14fea7594d6a05ee5fff3afa233c4a79951c30008d99327556813842aa33311e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.3 CPython/3.10.6 Darwin/23.2.0
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page