semvec/pypi-packages huggingface dataset:
entropec-quantumoperator-test 0.1.2
A client for submitting DMRG calculation tasks and polling results
Requires Python: >=3.7

# DMRG Task Client

A Python client for submitting DMRG calculation tasks to a server and polling results.

## Installation

```bash
pip install entropec-quantumoperator-test
```

## Usage Example

```python
from entropec_quantumoperator_test import DMRGClient

# Initialize client with server URL
client = DMRGClient(api_base="http://192.168.124.22:12805")

# Define task parameters
task_id = "9528"
params = {
    "CaseParams": {
        "Geometry": "OBC",
        "Lx": 3,
        "Ly": 4,
        "t": 1.0,
        "t2": -0.2,
        "J": 3.0,
        "J2": 1.0,
        "phi": 0.1,
        "mu": 0,
        "NumHole": 2,
        "Sweeps": 5,
        "Dmin": 10,
        "Dmax": 10,
        "CutOff": 1e-9,
        "LanczErr": 1e-9,
        "MaxLanczIter": 70,
        "Threads": 2,
        "noise": [0.1, 0.01],
        "Perturbation": 0.0,
        "BondSingletPairPerturbation": 0.0,
        "wavelength": 4
    }
}

# Submit task
try:
    response = client.submit_job(task_id, params)
    print("Task submitted successfully:", response)
    
    # Fetch result (with max 20 retries)
    result = client.fetch_result(task_id, max_retries=20)
    print("Calculation result:", result)
except Exception as e:
    print("Error:", str(e))
```

## API Reference

### DMRGClient

#### `__init__(api_base, timeout=10, retry_interval=5)`
Initialize a new DMRG client.

- `api_base`: Base URL of the DMRG server
- `timeout`: Request timeout in seconds (default: 10)
- `retry_interval`: Interval between result polling attempts (default: 5)

#### `submit_job(task_id, params)`
Submit a DMRG calculation task.

- `task_id`: Unique identifier for the task
- `params`: Dictionary containing calculation parameters
- Returns: Server response JSON

#### `fetch_result(task_id, max_retries=None)`
Poll for calculation results.

- `task_id`: Task identifier to fetch results for
- `max_retries`: Maximum number of retries (None for infinite)
- Returns: Calculation result text

## License
MIT License
OsmRouteScreenLib 0.0.5
Open Street Map route screenshot
Requires Python: >=3.10
Keywords: osm route screenshot

## Описание

Библиотека для создания скриншотов маршрута в Open Street Map

`pip install OsmRouteScreenLib`

Написана на основе статьи: https://smyt.ru/blog/statc-osm-map-with-python/

### Использование

<pre>
import OsmRouteScreenLib.startup as st
import OsmRouteScreenLib.options as o

options = o.make_options('http://tile-server.domain.com/{zoom}/{x}/{y}.png',
               'https://route.domain.com/route/v1/driving/{startPoint};{endPoint}?overview=full&geometries=geojson')

st.get_route_screen_by_points((47.232565,56.141757), (47.220063,56.139836), options)
</pre>

Доступны следующие опции:

* url_tile: str - путь к тайловому серверу;
* url_routing: str - путь к серверу для получения маршрута;
* padding: float - отступ карты от краёв маршрута в процентах от 0 до 1;
* zoom: int - zoom карты;
* output: str - путь к выходному файлу;
* line_width: int - ширина линии;
* marker_text: str - метки;
* show_geodesic: bool - отображать метку с пройденной дистанцией (км);
* split_line: bool - цветовое разделение маршрута.

## Сборка Ubuntu 22.04

Устанавливаем дополнительные библиотека: `sudo apt install libcairo2-dev pkg-config python3-dev`

<pre>
python3 -m venv routing-service
source routing-service/bin/activate
pip install -r requirements.txt
</pre>

### Публикация пакета

Устанавливаем библиотеки для публикации в pypi.org
<pre>
pip install setuptools wheel twine
</pre>

Выполняем в корне проекта
<pre>
python setup.py sdist bdist_wheel
twine upload --repository pypi dist/*
</pre>
CyMySQL 1.1.1
Python MySQL Driver using Cython
Keywords: MySQL

========
CyMySQL
========

What's CyMySQL
--------------

This package contains a python MySQL client library.

It is a fork project from PyMySQL https://pymysql.readthedocs.io/en/latest/.

CyMySQL is accerarated by Cython.

Documentation on the MySQL client/server protocol can be found here:
http://dev.mysql.com/doc/internals/en/client-server-protocol.html

Requirements
-------------

- Python 3.10+
- MySQL 5.7 or higher, MariaDB

Installation
--------------

With cythonize

::

   $ pip install cymysql

Or without cythonize

::

   $ NO_CYTHON=1 pip instal cymysql

Example
---------------

Python Database API Specification v2.0
+++++++++++++++++++++++++++++++++++++++++

https://peps.python.org/pep-0249/

::

   import cymysql
   conn = cymysql.connect(host='127.0.0.1', user='root', passwd='', db='database_name')
   cur = conn.cursor()
   cur.execute('select foo, bar from baz')
   for r in cur.fetchall():
      print(r[0], r[1])

asyncio
++++++++++++++++++++++++++++++++++++++

You can use asyncio to write the following.

Use connect
::

   import asyncio
   import cymysql

   async def conn_example():
       conn = await cymysql.aio.connect(
           host="127.0.0.1",
           user="root",
           passwd="",
           db="database_name",
       )
       cur = conn.cursor()
       await cur.execute("SELECT 42")
       print(await cur.fetchall())
   asyncio.run(conn_example())

Use pool
::

   import asyncio
   import cymysql

   async def pool_example(loop):
       pool = await cymysql.aio.create_pool(
           host="127.0.0.1",
           user="root",
           passwd="",
           db="database_name",
           loop=loop,
       )
       async with pool.acquire() as conn:
           async with conn.cursor() as cur:
               await cur.execute("SELECT 42")
               print(await cur.fetchall())
       pool.close()
       await pool.wait_closed()

   loop = asyncio.get_event_loop()
   loop.run_until_complete(pool_example(loop))
   loop.close()
xhs-auto-mcp 0.1.1
小红书自动化工具mcp服务器，提供小红书内容发布及交互功能
Requires Python: >=3.12

# 自动化小红书MCP服务器

这是一个基于MCP的小红书内容创作和管理工具，可以帮助你自动化小红书内容平台的操作，包括搜索笔记、发布笔记、评论等功能。

## 功能特点

- 🔍 搜索小红书笔记内容
- 📝 发布图文/视频笔记
- 💬 自动评论笔记
- 🏠 获取首页推荐内容
- 🔐 支持账号登录与验证

## 快速开始

### 1. 环境要求
 * node.js
 * python 3.12
 * uv (pip install uv)

### 2. 安装依赖
```sh
git clone https://github.com/fancyboi999/xhs-auto-mcp.git

cd xhs-auto-mcp
uv venv
source .venv/bin/activate
uv pip install -e .
```

### 3. 获取小红书的cookie
[打开网页端小红书](https://www.xiaohongshu.com/explore)
登录后，获取内容平台的cookie，将cookie配置到MCP服务的 XHS_COOKIE 环境变量中
![获取cookie教程](docs/get_cookies.png)

### 4. 配置MCP服务

有两种方式可以配置和启动MCP服务，环境变量JSON_PATH 是用于存储创作平台token与cookie，因此请填写绝对路径：

#### 方式一：使用stdio协议（直接连接）

在Claude配置中添加以下内容：

```json
{
    "mcpServers": {
        "xhs-auto-mcp": {
            "command": "uvx",
            "args": ["xhs-auto-mcp", "--transport", "stdio"],
            "env": {
                "XHS_COOKIE": "xxxx",
                "JSON_PATH": "your_token_save_path"
            }
        }
    }
}
```

#### 方式二：使用HTTP协议

1. 启动HTTP服务：

```sh
env XHS_COOKIE=xxxx JSON_PATH=your_token_save_path uvx xhs-auto-mcp --transport http --port 8080
```

2. 在Claude配置中添加以下内容：

```json
{
    "mcpServers": {
        "xhs-auto-mcp": {
            "type": "http",
            "url": "http://localhost:8080/mcp"
        }
    }
}
```

## 工具使用说明

本项目提供了多种工具来操作小红书平台：

![可用工具](docs/available_tools.png)

### 内容平台工具
- **检查cookie有效性**: 验证当前cookie是否有效
- **获取首页推荐笔记**: 获取小红书首页推荐内容
- **搜索笔记**: 根据关键词搜索笔记
- **获取笔记内容**: 获取指定笔记的详细内容
- **获取笔记评论**: 获取指定笔记的评论
- **发表评论**: 对指定笔记发表评论

### 创作平台工具
- **登录**: 通过手机号和验证码登录小红书创作平台
- **发布图文笔记**: 创建并发布包含图片的笔记
- **发布视频笔记**: 创建并发布包含视频的笔记

## 示例视频

查看演示视频了解如何使用本工具：[演示视频](docs/demo.mp4)

## 免责声明
本项目仅用于学习交流，禁止用于其他用途，任何涉及商业盈利目的均不得使用，否则风险自负。