semvec/pypi-packages huggingface dataset:
dpyhr 0.1.1
dpyhr. A discord.py module reloader written in pure python!
License: MIT
Requires Python: >=3.8,<4.0

# dpyhr
dpyhr is a hot cog reloader (that uses discord.py cog's implementation) to reload anytime you wanted to save!

## Setup

1. Install dpyhr with pip (`pip install dpyhr`)
2. Import dpyhr and run it with

```py
import dpyhr

dpyhr.run(
    *paths: str,
    bot: commands.Bot = None,
    selection: Selection = Selection.normal,
    reloader: typing.Callable = None,
    conditional: typing.Callable = None,
    recursive: bool = False,
    **kwargs
)
```

`dpyhr.run` have a documentation as this

> Run dphyr in another thread.  

>    Args:  
>        *paths (str): Paths you want to watch for cogs. Supply those as argument  
>        bot (commands.Bot, Optional): For reloading extensions (if reloader doesn't exists)  
>        selection (Selection, optional): Observer selection. Defaults to Selection.normal.  
>        reloader (typing.Callable, optional): Reload module with your own function. Defaults to None.  
>        conditional (typing.Callable, optional): Conditional when event is triggered. Defaults to None.  
>        recursive (bool, optional): Recursive reloading. Defaults to False.  
>        **kwargs: Other arguments for observer.  
>    Returns:  
>        None: No returns.  

## Caution

dpyhr wouldn't work if you called your bot outside of the entrypoint starter so nested path wouldn't work in this case. you need to run it inside directory where you want python file to run else reloader might get wrong path and spits errors out.

## Why you don't shipped discord.py with this package?

Because dpyhr is trying to be able to compatible with any discord.py versions that have `discord.ext.commands` (other discord.py forks should works if they have `commands.Bot.reload_extension` and their package name is `discord`)
vnpy-okex-pro 2023.4.14.4
OKEX gateway for vn.py quant trading framework.
License: MIT
Keywords: quant,quantitative,investment,trading,algotrading,ctp

# vnpy-okex-pro

继承自[KandyYe的vnpy_okex](https://github.com/KandyYe/vnpy_okex)

获取交易产品历史K线数据改为使用OKX接口
```html
GET /api/v5/market/history-candles
```

## 安装

安装需要基于2.2.0版本以上的[VN Studio](https://www.vnpy.com)。

直接使用pip命令：

```
pip install vnpy_okex_pro
```

下载解压后在cmd中运行

```
python setup.py install
```

## 使用

以脚本方式启动（script/run.py）：

```python
import vnpy_crypto

vnpy_crypto.init()
from vnpy.event import EventEngine
from vnpy.trader.engine import MainEngine
from vnpy.trader.ui import MainWindow, create_qapp

# 上面固定不动
# ——————————————————————————————————————————————————
# Gateway
from vnpy_okex_pro import OkexGateway
# App
from vnpy_datamanager import DataManagerApp


def main():
    """主入口函数"""
    qapp = create_qapp()
    event_engine = EventEngine()
    main_engine = MainEngine(event_engine)
    # ——————————————————————————————————————————————————
    # Gateway
    main_engine.add_gateway(OkexGateway)
    # App
    main_engine.add_app(DataManagerApp)
    # ——————————————————————————————————————————————————
    main_window = MainWindow(main_engine, event_engine)
    main_window.showMaximized()

    qapp.exec()


if __name__ == "__main__":
    main()
```
you-livep 1.2.0
A站/B站/斗鱼/快手/抖音 直播视频录制
License: MIT

you-live
===========================
![](https://img.shields.io/badge/Python-3-green.svg) ![](https://img.shields.io/badge/require-requests-green.svg)![](https://img.shields.io/badge/require-PyExecJS-green.svg)
### Live Recorder
A live recorder focus on China mainland livestream sites.   
Brother Repo of [BilibiliLiveRecorder](https://github.com/nICEnnnnnnnLee/BilibiliLiveRecorder)(java)  

    
****
## :dolphin:Installation
```
Linux/debian:

    sudo apt-get install python3-pip
    pip3 install you-livep --upgrade --user
    add ~/.local/bin to your PATH

Windows:

    install python3 from python.org
    pip install --upgrade you-livep

Other Linux: please follow debian

Other OS: please DIY.
```

## :dolphin:Usage
```
you-livep [-h] [-qn QN] [-debug] [-check] [-delete] [-save_path SAVE_PATH] [-check_path CHECK_PATH]
                [-format FORMAT] [-time_format TIME_FORMAT] [-cookies COOKIES] [-cookies_path COOKIES_PATH]
                liver id

B站/斗鱼/快手/抖音 直播视频录制

positional arguments:
  liver                 要录制的直播源，如 bili,douyu,kuaishou,acfun,douyin
  id                    要录制的房间号，可以从url中直接获取

optional arguments:
  -h, --help            show this help message and exit
  -qn QN, -q QN         录制的清晰度，可以后续输入
  -debug                debug模式
  -check                校准时间戳
  -delete, -d           删除原始文件
  -save_path SAVE_PATH, -sp SAVE_PATH
                        源文件保存路径
  -check_path CHECK_PATH, -chp CHECK_PATH
                        校正后的FLV文件保存路径
  -format FORMAT, -f FORMAT
                        文件命名格式
  -time_format TIME_FORMAT, -tf TIME_FORMAT
                        时间格式
  -cookies COOKIES, -c COOKIES
                        cookie, 当cookies_path未指定时生效
  -cookies_path COOKIES_PATH, -cp COOKIES_PATH
                        指定cookie文件位置
  -save_mp4, -mp4       保存为mp4文件
```

### Example0
Record a live from <https://live.bilibili.com/6>
```
you-livep bili 6
```

### Example1
Record a live from <https://www.douyu.com/593392>, correct the timestamp error and delete the origin files.
```
you-livep -check -d douyu 593392
```
**Notice**:The record on this site(douyu) uses PyExecJS.  
You may need some extra installation about the JS Environment for linux OS.  
Here’s the guide for [Node.js installation](https://github.com/nodesource/distributions)  


**Notice**:You may need logged-in cookies to get high quality videos

### Example2
Record a live from <https://live.kuaishou.com/u/ZFYS8888>, speicify the file name you want.
```
you-livep -format "{name}-{shortId} 的{liver}直播{startTime}" kuaishou ZFYS8888
```
**Notice**:You may need cookies(may not logged-in, just skip the captha test) to get room detail information


## :dolphin:LICENSE
MIT