semvec/pypi-packages huggingface dataset:
hg-oap 0.1.14
A library to faciliate building order and pricing strategies
License: MIT
Requires Python: >=3.12
Keywords: forward propogating graph, fpg, functional reactive programming, graph, oms, order, pricing, reactive, time series

# HGraph Orders and Pricing Library

Provides a library, based on the hgraph functional reactive framework to
support creating order and pricing logic.

The core components of the library include:

* instruments
* positions
* portfolios
* orders
* pricing

This library is currently very green and is expected to have significant changes.


## Development

This project now uses the uv package manager for dependency management and running tasks.

- uv homepage and install instructions: https://docs.astral.sh/uv/

Once you have checked out the project, you can set up a local virtual environment and install dependencies as follows:

1) Create or reuse a virtual environment with Python 3.11 (recommended):

```bash
uv venv -p 3.11
```

2) Activate the virtual environment (example for bash/zsh):

```bash
source .venv/bin/activate
```

3) Install the project and all development dependencies (tests, docs, etc.):

```bash
uv sync --all-extras --all-groups
```

Notes:
- `uv sync` reads pyproject.toml and uv.lock and installs the project in editable mode along with dependencies.
- If you only want runtime dependencies, omit `--all-groups`.
- If you don't need optional extras, omit `--all-extras`.

To see where the Python interpreter lives for IDE configuration (e.g., PyCharm), after activating the venv you can run:

```bash
which python
```

PyCharm can be pointed at the `.venv` interpreter in the project root.

### Run Tests

```bash
# No Coverage
uv run pytest
```

```bash
# Generate Coverage Report
uv run pytest --cov=hg_oap --cov-report=xml
```
hg-systematic 0.0.46
A library and examples to show how HGraph can be used for systematic trading.
License: MIT
Requires Python: >=3.12
Keywords: forward propogating graph, fpg, frp, functional, functional reactive programming, graph, reactive, strategy, systematic, time series, time-series, trading

# HG Systematic

This is a library of utilities and examples to highlight how HGraph can be used to implement
systematic trading strategies.


See [this](https://hgraph.readthedocs.io/en/latest/) for more information.

## Development

This project uses uv for environment and dependency management.
See https://docs.astral.sh/uv/ for installation instructions.

Here are some useful commands:

Create a local virtual environment in the project directory (./.venv) with Python 3.12:

```bash
uv venv --python 3.12
```

Install the project and its dependencies:

```bash
# Base dependencies
uv sync

# Include documentation dependencies
uv sync --extra docs

# Install all optional extras (e.g. tests, adaptors)
uv sync --all-extras --all-groups
```

PyCharm can use the interpreter from ./.venv (created by uv) to set up the project.
Recent versions of PyCharm support uv, use the "uv" interpreter type.

### Run Tests

```bash
# No Coverage
uv run pytest
```

```bash
# Generate Coverage Report
uv run pytest --cov=hg_systematic --cov-report=xml
```
py-work-weixin-utils 1.0.3
郭磊开发的企业微信工具库
License: MIT
Requires Python: >=3.0

# py_work_weixin_utils

### 介绍

郭磊开发的企业微信工具库

### 安装

```shell
pip install py_work_weixin_utils
```

### 演示

#### Webhook

##### [官方文档](https://developer.work.weixin.qq.com/document/path/91770#%E5%A6%82%E4%BD%95%E4%BD%BF%E7%94%A8%E6%B6%88%E6%81%AF%E6%8E%A8%E9%80%81)

```python
from datetime import datetime
from py_work_weixin_utils.webhook import MessagePusher

key = "your key"
message_pusher_inst = MessagePusher(key=key)

# 发送信息
state, _, _ = message_pusher_inst.send(
    json=message_pusher_inst.msgtype_text_formatter(f"测试消息 {datetime.now()}"))
if state:
    print("发送成功")
else:
    print("发送失败")

# 上传文件
state, media_id, _ = message_pusher_inst.upload_media(
    files={
        "file": ("requirements.txt", open("requirements.txt", "rb"))
    }
)
if state:
    print("上传成功", media_id)
else:
    print("上传失败", media_id)

# 发送文件
if state:
    print("上传成功", media_id)
    state, _, _ = message_pusher_inst.send(
        json=message_pusher_inst.msgtype_file_formatter(media_id=media_id))
    if state:
        print("发送文件成功")
    else:
        print("发送文件失败")

```

#### Server API

##### [官方文档](https://developer.work.weixin.qq.com/document/path/90664)

```python
import diskcache

import os
from datetime import datetime
from py_work_weixin_utils.server import Api as ServerApi

diskcache_default_inst = diskcache.Cache(
    directory=os.path.join(os.getcwd(), "runtime", "cache", "diskcache", "default"))

agentid = "agentid"
corpid = "corpid"
corpsecret = "corpsecret"
server_api_inst = ServerApi(
    agentid=agentid,
    corpid=corpid,
    corpsecret=corpsecret,
    cache_inst=diskcache_default_inst
)
# 发送信息
state, _, _ = server_api_inst.refresh_access_token().message_send(
    json={
        "touser": "guolei",
        "msgtype": "text",
        "agentid": server_api_inst.agentid,
        "text": {
            "content": f"test {datetime.now()}"
        },
    }
)
if state:
    print("发送成功")
else:
    print("发送失败")
```
py-brhk-utils 1.0.3
郭磊开发的博瑞皓科云音箱云喇叭工具库
License: MIT
Requires Python: >=3.0

# py_brhk_utils

#### 介绍

郭磊开发的博瑞皓科云音箱云喇叭工具库

#### 安装

```shell
pip install py_brhk_utils
```

#### 演示

#### [官方文档](https://www.yuque.com/lingdutuandui/ugcpag)

```python
from py_brhk_utils import Speaker

speaker_inst = Speaker(
    token="",
    id=""
)
state, _, _ = speaker_inst.notify(message="小朱小朱，呼噜噜")
if state:
    print("发送成功")
else:
    print("发送失败")
```