semvec/pypi-packages huggingface dataset:
vnpy-da 1.18.2.1
DA International gateway for VeighNa quant trading framework.
License: MIT
Requires Python: >=3.7
Keywords: quant, quantitative, investment, trading, algotrading

# VeighNa框架的直达期货交易接口
<p align="center">
  <img src ="https://vnpy.oss-cn-shanghai.aliyuncs.com/vnpy-logo.png"/>
</p>

<p align="center">
    <img src ="https://img.shields.io/badge/version-1.18.2.1-blueviolet.svg"/>
    <img src ="https://img.shields.io/badge/platform-windows-yellow.svg"/>
    <img src ="https://img.shields.io/badge/python-3.10|3.11|3.12-blue.svg" />
    <img src ="https://img.shields.io/github/license/vnpy/vnpy.svg?color=orange"/>
</p>

## 说明

基于DAApi的1.18.2.0版本封装开发的直达期货交易接口。

## 安装

安装环境推荐基于3.9.0版本以上的【[**VeighNa Studio**](https://www.vnpy.com)】。

直接使用pip命令：

```
pip install vnpy_da
```


或者下载源代码后，解压后在cmd中运行：

```
pip install .
```

## 使用

以脚本方式启动（script/run.py）：

```
from vnpy.event import EventEngine
from vnpy.trader.engine import MainEngine
from vnpy.trader.ui import MainWindow, create_qapp

from vnpy_da import DaGateway


def main():
    """主入口函数"""
    qapp = create_qapp()

    event_engine = EventEngine()
    main_engine = MainEngine(event_engine)
    main_engine.add_gateway(DaGateway)
    
    main_window = MainWindow(main_engine, event_engine)
    main_window.showMaximized()

    qapp.exec()


if __name__ == "__main__":
    main()
```
exceptdrucker 0.10
Module for colorful printing and error handling.
License: MIT
Keywords: error, exception


# Module for colorful printing and error handling.

## pip install exceptdrucker

### Tested against Windows 10 / Python 3.11 / Anaconda


```PY
    Module for colorful printing and error handling.
    Handle and display errors in a customizable format.

    Args:
        *args: Variable length argument list.
        **kwargs: Arbitrary keyword arguments.
            debug (bool): Indicates whether debugging is enabled. Defaults to True.
            symbol_top (str): Symbol to print at the top of the error message. Defaults to "╦".
            symbol_bottom (str): Symbol to print at the bottom of the error message. Defaults to "╩".
            len_top (str): Length of the top symbol line. Defaults to "60".
            len_bottom (str): Length of the bottom symbol line. Defaults to "60".
            color_top (str): Color of the top symbol line. Defaults to "YELLOW_DARK".
            color_bottom (str): Color of the bottom symbol line. Defaults to "RED_DARK".
            print_to_stderr (bool): Whether to print to stderr. Defaults to False.
            color_exception (str): Color of the exception message. Defaults to "CYAN".

    Example:
        from exceptdrucker import errwrite, config

        try:
            print("hello" / 2)
        except Exception:
            errwrite()

        try:
            print("hello" / 2)
        except Exception:
            errwrite(
                debug=True,
                symbol_top="V",
                symbol_bottom="A",
                len_top="40",
                len_bottom="40",
                color_top="YELLOW",
                color_bottom="RED",
                choosen_color="BLUE",
                print_to_stderr=False,
                color_exception="WHITE",
            )

        try:
            print("hello" / 2)
        except Exception:
            errwrite(
                debug=False,
            )

        config.debug = False
        try:
            print("hello" / 2)
        except Exception:
            print("nothing")
            errwrite()
```