Skip to main content

quant helper.

Project description

Quant Friend

背景和目的

在量化回测环境,经常需要购置和试用一些临时的计算资源。这个项目的目的是简化在这过程中的重复操作。

一键购置模块

TBC

汇报模块

这个模块需要被回测应用引入,在相关计算结束后,讲结果汇报给特定关注者,同时通知计算资源供应商,要求停止服务。

email

可以显式调用

from quant_friend import config_email_sender

config_email_sender('sender@my.com', 'smtp.my.com', 465, True, 'sender', 'password')

进行邮箱注册,也可以通过设置环境变量,自动注册。

  • smtp_sender
  • smtp_host
  • smtp_port
  • smtp_ssl
  • smtp_user
  • smtp_password

删除主机

可以显式调用

from quant_friend import register_ucloud

register_ucloud(
    region="",
    private_key="",
    public_key="",
)

进行注册,也可以通过设置环境变量,自动注册。任意 uc- 开头的环境变量都会被自动读取。

from quant_friend import list_and_delete_host

# 删除所有主机
list_and_delete_host('ucloud')
# 按业务组删除主机
list_and_delete_host('ucloud', Tag="你的业务组")

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

quant-friend-0.0.1.tar.gz (6.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

quant_friend-0.0.1-py2.py3-none-any.whl (6.0 kB view details)

Uploaded Python 2Python 3

File details

Details for the file quant-friend-0.0.1.tar.gz.

File metadata

  • Download URL: quant-friend-0.0.1.tar.gz
  • Upload date:
  • Size: 6.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.7

File hashes

Hashes for quant-friend-0.0.1.tar.gz
Algorithm Hash digest
SHA256 5fadc156e73b840884a9f4fd30e90f129f5319de5b393c9ffe6fe6768a483079
MD5 1a210ebbfa6ab01642e1865479fb9ca0
BLAKE2b-256 8d90e02bda931a9d71e4d533ede4d1539d158586c21c346ae9e9242cd30e4343

See more details on using hashes here.

File details

Details for the file quant_friend-0.0.1-py2.py3-none-any.whl.

File metadata

  • Download URL: quant_friend-0.0.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 6.0 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.7

File hashes

Hashes for quant_friend-0.0.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 84856ee1c16ed13f522e478cf5bb938775bc1d88826187c1b7fac2ab2015ad13
MD5 f640969eefe772654ddd2e1acec0fd7b
BLAKE2b-256 8667c8a99edbe3146539c5fa9ae67136ec391a1eac88d8b5936145b1e49c673d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page