semvec/pypi-packages huggingface dataset:
odoo-image-fetcher 0.1.9
A simple utility to fetch images from Odoo via XML-RPC.
Requires Python: >=3.7


# odoo-image-fetcher

Fetch product images from Odoo using session-based authentication.

## Installation

```bash
pip install odoo-image-fetcher
````

## Usage

```python
from odoo_image_fetcher import ImageFetcher

image_bytes = ImageFetcher.fetch_image("/web/image/product.template/17956/image_128")
if image_bytes:
    with open("product_image.png", "wb") as f:
        f.write(image_bytes)
    print("✅ Image saved.")
else:
    print("❌ Image fetch failed.")

```

## Environment Variables

Put these in a `.env` file or your environment:

```
ODOO_BASE_URL=https://your.odoo.instance
ODOO_USERNAME=your@email.com
ODOO_PASSWORD=yourpassword
ODOO_DB=your_db_name
```

Enjoy!
[![PyPI version](https://badge.fury.io/py/odoo-image-fetcher.svg)](https://pypi.org/project/odoo-image-fetcher/)
numworks_env 0.1.1
Port of the NumWorks python environment for PC
Requires Python: >=3.11

# numworks_env

`numworks_env` is a Python package that emulates the **NumWorks calculator environment** and its modules.  
It allows you to experiment with NumWorks code on your PC, giving a decent simulation of the calculator’s behavior, while letting you know **what you can use or not** compared to the real device.

---

**Don't understand English?**  
Check out the [README in French](README_fr.md) for full documentation.

---

## Installation

You can install `numworks_env` using `pip`

```
pip install numworks_env
```

## Usage

See [NumWorks python docs](https://www.numworks.com/manual/python)
gigrator 0.1.0
Add your description here
Requires Python: >=3.6

# Gigrator

Gigrator 是一个 Git 代码仓批量迁移工具，支持众多流行的代码托管平台，包括 GitHub、码云（Gitee）、GitLab、Gitea、Coding、Gogs、腾讯工蜂，同时可以基于本项目进行拓展其他代码托管平台。

## 支持的平台

- [x] [Gitee](https://gitee.com/)
- [x] [GitLab](https://gitlab.com/)
- [x] [GitHub](https://github.com/)
- [x] [Gitea](https://gitea.io/zh-cn/)
- [x] [Coding](https://coding.net/)
- [x] [Gogs](https://gogs.io/)
- [x] [腾讯工蜂](https://code.tencent.com/)
- [ ] [Bitbucket](https://bitbucket.org/)
- [ ] [云效 Codeup](https://codeup.aliyun.com/)

说明：

- 暂不支持迁移至 `Coding`，可从 Coding 迁移至其他 `Git` 服务器
- 由于 `Coding` 的升级，其基础 `API` 不再是 `https://coding.net`，而改为: `https://{username}.coding.net`
- 迁移前请确认已在Git服务器上添加 `SSH Key`
- 只能迁移指定用户下的仓库，即 `{username}/{repo_name}`，不包括参与的或者组织的仓库
- 迁移包括commits、branches和tags，不包括issues、pr和wiki

## 安装

### pip 安装

```bash
pip install gigrator
```

### 源码安装

```shell script
git clone https://github.com/k8scat/gigrator.git
cd gigrator
make
```

## 使用

### 环境要求

- Git
- Python3

### 配置文件

参考 [config.yml](./config.yml)

### 运行

```bash
gigrator -c config.yml
```

## 扩展更多平台

基于 `Git` 类实现其他平台的代码仓迁移

```python
class Git:
    def list_repos(self) -> list:
        raise NotImplementedError

    def create_repo(self, name: str, desc: str, is_private: bool) -> bool:
        raise NotImplementedError

    def is_repo_existed(self, repo_name: str) -> bool:
        raise NotImplementedError
```

## 贡献

<a href="https://github.com/k8scat/gigrator/graphs/contributors">
  <img src="https://contrib.rocks/image?repo=k8scat/gigrator" />
</a>

Note:

* 不支持迁移至 `Coding`, 可从 Coding 迁移至其他 `Git` 服务器
* 由于 `Coding` 的升级, 其基础 `API` 不再是 `https://coding.net`, 而改为: `https://{username}.coding.net`
* 迁移前请确认已在Git服务器上添加 `SSH Key`
* 只能迁移指定用户下的仓库, 即 `{username}/{repo_name}`, 不包括参与的或者组织的仓库
* 迁移包括commits、branches和tags, 不包括issues、pr和wiki

## 环境

* Git
* Python

开发环境: `git version 2.20.1 (Apple Git-117)` + `Python 3.7.2`

## 开发手册

[开发手册](./dev.md)

## 开源协议

[MIT](./LICENSE)
ttcbench 0.1.5
Simple vLLM/OpenAI textgen benchmark with optional GPU telemetry from TTC library
Requires Python: >=3.10
Keywords: vllm, benchmark, openai, chat-completions, gpu, nvml

# ttc_bench

Benchmark for OpenAI/vLLM `/v1/chat/completions` endpoints with optional local GPU telemetry.

## Install

```bash
pip install ttc_bench


# env (optional)
echo 'MODEL_BASE_URL=http://host:3000/v1' > .env
echo 'MODEL_API_KEY=' >> .env
echo 'DEFAULT_MODEL=Qwen2.5-72B-Instruct-GPTQ-Int4' >> .env

# run
ttc_bench run --task textgen --steps 10 --batch 2 --seq-out 128 \
  --base-url "http://host:3000/v1" --model "Qwen2.5-72B-Instruct-GPTQ-Int4"
database-smartools 0.0.4
数据库操作工具包
Requires Python: >=3.11

# database-smartools

#### 介绍
一个功能全面的数据库操作工具包，提供统一接口支持多种数据库系统，简化数据库连接、查询与管理操作。支持连接池管理、事务处理和跨数据库兼容功能，适用于需要与多数据库交互的Python项目。

#### 软件架构
- **核心模块**：
  - `database/db_handler.py`：数据库连接管理核心类
  - `database/*_extend.py`：各数据库类型的扩展实现（MySQL、Oracle、PostgreSQL等）
  - `utils/`：配置解析、日志记录等辅助工具
- **技术栈**：Python 3.11+、SQLAlchemy、DBUtils连接池

#### 支持数据库类型
- MySQL
- Oracle
- PostgreSQL
- 达梦数据库(Dameng)
-  OceanBase

#### 安装教程
```bash
pip install database-smartools
```

#### 使用说明
```python
# 基本使用示例
from database_smartools.database import db_handler as dh
from database_smartools.utils import logger, output
import pandas as pd
import traceback

    if args["db_key"] not in dh.POOL_MAP.keys():
        dh.get_pool_by_key(args["db_key"])

    pool_map = dh.POOL_MAP[args["db_key"]]

    params = {
        "key": "value"
    }

    conn_map, message = dh.get_conn_map(pool_map)
    if not conn_map:
        result = False
        return output.OutputUtil.map(result=result, message=message)

    try:
        conn = conn_map["conn"]
        # conn_map["db_type"] = "oceanbase"
        # print(conn_map)
        # 日期遍历
        result = True
        logger.info("开始执行，执行参数：")
        logger.info(params)
        df, message = dh.select_by_map(conn_map, "select 'database_smartools' as software from dual", params)
        df = pd.DataFrame(df["data"])
        if not r:
            result = False

    except Exception as e:
        conn.rollback()  # 回滚事务
        # 获取完整堆栈的错误信息
        message = f"接口执行失败!\n完整错误堆栈信息:\n{traceback.format_exc()}"
        logger.error(message)
        result = False
    finally:
        conn.commit()
    dh.close_conn(pool_map, conn_map)
    return output.OutputUtil.map(result=result, message=message)
```

#### Debug示例
```python
# 初始化数据库连接
from functions import t_r_299_result_n
from database_smartools.utils import debug

if __name__ == "__main__":
    params = {
        "db_key": "GB_YFDW_DW",
        "p_jgdm": "70380000",
        "p_file_date": "20240101",
        "ind_type": "D",
        "p_data_guid": "test_cqb",
        "p_fund_type": "08",
        "p_fund_category": "01",
        "p_item_table": "",
        "p_fdate": "20240101"
    }
    debug.debug_script(t_r_299_result_n.t_r_299_result_n, params, 'dev')
```


#### 项目依赖
- SQLAlchemy 2.0.40+
- DBUtils 3.0.0+
- 各数据库驱动（mysql-connector-python、oracledb等）

#### 许可证
MIT License