semvec/pypi-packages huggingface dataset:
lopay-sdk 0.1.1
The World's First AI-Native Payment Gateway on Solana
Requires Python: >=3.7

# LO-Pay SDK for AI Agents 🤖💸

**LO-Pay**는 AI 에이전트가 블록체인(Solana)을 통해 스스로 경제 활동을 할 수 있게 돕는 세계 최초의 라이브러리입니다.

## Installation
```bash
pip install lopay-sdk

Quick Start
단 3줄의 코드로 당신의 AI에게 지갑을 선물하세요.

from lopay import LOPayAgent

# 1. AI 지갑 생성 (자동 저장)
agent = LOPayAgent()

# 2. 잔액 확인
print(f"My Balance: {agent.check_balance()} SOL")

# 3. 결제하기
agent.pay("상점_지갑_주소", 0.002)

Features
🚀 Zero Config: 복잡한 설정 없이 바로 사용 가능
💾 Auto Persistence: 지갑 정보 자동 저장 및 복구
⚡ Powered by Solana: 초고속, 초저가 수수료
flake8-absolute-import 1.0.0.3
flake8 plugin to require absolute imports
Requires Python: >=3.10
Keywords: flake8, flake8-plugin, linting, absolute-imports, relative-imports

## flake8-absolute-import: A flake8 plugin to require absolute imports

#### Current Development Version

[![GitHub Workflow Status][workflow badge]][workflow link target]

#### Most Recent Stable Release

[![PyPI Version][pypi badge]][pypi link target]
![Python Versions][python versions badge]

#### Info

[![MIT License][license badge]][license link target]
[![black formatted][black badge]][black link target]
[![PePY stats][pepy badge]][pepy link target]

----

### Don't like relative imports?

#### Lint 'em out!

`flake8-absolute-import` uses a direct check of the AST for each
`from x import y` statement to flag relative imports.
Specifically, it checks for a nonzero _level_ attribute on each
[`ImportFrom`] node.

Relative imports raise the `ABS101` error code:

```py
    from foo import bar   # OK
    from .foo import bar  # ABS101
```

----

Available on [PyPI][pypi link target] (`pip install flake8-absolute-import`).
`flake8` should automatically detect and load the plugin. `flake8`>=5.0 is
required.

Source on [GitHub][gh repo]. Bug reports and feature requests are welcomed at
the [Issues][gh issues] page there.

Copyright (c) Brian Skinn 2019-2025

The `flake8-absolute-import` documentation (currently docstrings and README) is
licensed under a [Creative Commons Attribution 4.0 International License][cc-by]
(CC-BY). The `flake8-absolute-import` codebase is released under the [MIT
License]. See [`LICENSE.txt`] for full license terms.

[`ImportFrom`]: https://docs.python.org/3/library/ast.html#ast.ImportFrom
[`LICENSE.txt`]: https://github.com/bskinn/flake8-absolute-import/blob/main/LICENSE.txt

[black badge]: https://img.shields.io/badge/code%20style-black-000000.svg
[black link target]: https://github.com/psf/black

[cc-by]: http://creativecommons.org/licenses/by/4.0/

[gh issues]: https://github.com/bskinn/flake8-absolute-import/issues
[gh repo]: https://github.com/bskinn/flake8-absolute-import

[license badge]: https://img.shields.io/github/license/mashape/apistatus.svg
[license link target]: https://github.com/bskinn/flake8-absolute-import/blob/stable/LICENSE.txt

[MIT License]: https://opensource.org/licenses/MIT

[pepy badge]: https://pepy.tech/badge/flake8-absolute-import/month
[pepy link target]: https://pepy.tech/projects/flake8-absolute-import?timeRange=threeMonths&category=version&includeCIDownloads=true&granularity=daily&viewType=line&versions=1.0.0.3%2C1.0.0.2%2C1.0.0.1%2C1.0

[pypi badge]: https://img.shields.io/pypi/v/flake8-absolute-import.svg?logo=pypi
[pypi link target]: https://pypi.org/project/flake8-absolute-import

[python versions badge]: https://img.shields.io/pypi/pyversions/flake8-absolute-import.svg?logo=python

[workflow badge]: https://img.shields.io/github/actions/workflow/status/bskinn/flake8-absolute-import/all_core_tests.yml?branch=main&logo=github
[workflow link target]: https://github.com/bskinn/flake8-absolute-import/actions
iflow-mcp_mcp-server-12306 0.1.0
MCP服务器用于12306车票查询
Requires Python: >=3.10

# 🚄 12306 MCP Server

![screenshot](https://img.shields.io/badge/12306-MCP-blue?logo=railway) ![FastAPI](https://img.shields.io/badge/FastAPI-async-green?logo=fastapi) ![License: MIT](https://img.shields.io/badge/license-MIT-blue.svg)

---

## ✨ 项目简介

12306 MCP Server 是一款基于 Model Context Protocol (MCP) 的高性能火车票查询后端，支持官方 12306 余票、车站、经停、换乘查询以及智能时间工具，适配 AI/自动化/智能助手等场景。界面友好，易于集成，开箱即用。

---

## 🚀 功能亮点

- 实时余票/车次/座席/时刻/换乘一站式查询
- 全国车站信息管理与模糊搜索
- 官方经停站、一次中转方案全支持
- 智能时间工具，支持相对日期计算，避免日期输入错误
- Streamable HTTP传输协议，支持MCP 2025-03-26标准
- FastAPI异步高性能，秒级响应
- MCP标准，AI/自动化场景即插即用

---

## 🛠️ 快速上手

### 环境要求
- Python 3.10+
- [uv](https://astral.sh/uv/)（推荐包管理器）

### 本地一键部署
```bash
# 克隆项目
git clone https://github.com/drfccv/mcp-server-12306.git
cd mcp-server-12306

# 安装依赖
uv sync

# 更新车站信息（必须先执行）
uv run python scripts/update_stations.py

# 启动服务器
uv run python scripts/start_server.py
```

### Docker 部署
```bash
# 直接拉取已构建镜像
 docker pull drfccv/mcp-server-12306:latest

# 运行容器（映射8000端口）
 docker run -d -p 8000:8000 --name mcp-server-12306 drfccv/mcp-server-12306:latest
```

> 如需自定义开发或本地修改后再打包，可用如下命令自行构建镜像：
> ```bash
> docker build -t drfccv/mcp-server-12306:latest .
> ```

### 配置
复制 `.env.example` 为 `.env` 并按需修改：
```bash
cp .env.example .env
```

---

## 🤖 API & 工具一览

### MCP 客户端配置示例
```json
{
  "mcpServers": {
    "12306": {
      "url": "http://localhost:8000/mcp"
    }
  }
}
```

### 支持的主流程工具
| 工具名                    | 典型场景/功能描述                 |
|--------------------------|----------------------------------|
| query_tickets            | 余票/车次/座席/时刻一站式查询     |
| search_stations          | 车站模糊搜索，支持中文/拼音/简拼   |
| get_station_info         | 获取车站详情（名称、代码、地理等） |
| query_transfer           | 一次中转换乘方案，自动拼接最优中转 |
| get_train_route_stations | 查询指定列车经停站及时刻表         |
| get_current_time         | 获取当前时间与相对日期，帮助用户准确选择出行日期 |

---

## 📚 工具文档

本项目所有主流程工具的详细功能、实现与使用方法，均已收录于 [`/docs`](./docs) 目录下：

- [query_tickets.md](./docs/query_tickets.md) — 余票/车次/座席/时刻一站式查询
- [search_stations.md](./docs/search_stations.md) — 车站模糊搜索
- [get_station_info.md](./docs/get_station_info.md) — 获取车站详情
- [query_transfer.md](./docs/query_transfer.md) — 一次中转换乘方案
- [get_train_route_stations.md](./docs/get_train_route_stations.md) — 查询列车经停站
- [get_current_time.md](./docs/get_current_time.md) — 获取当前时间与相对日期

每个文档包含：
- 工具功能说明
- 实现方法
- 请求参数与返回示例
- 典型调用方式

如需二次开发或集成，建议先阅读对应工具的文档。

---

## 🧩 目录结构

```
src/mcp_12306/    # 主源代码
  ├─ server.py    # FastAPI主入口
  ├─ services/    # 业务逻辑（车票/车站/HTTP）
  ├─ models/      # 数据模型
  ├─ utils/       # 工具与配置
scripts/          # 启动与数据脚本
```

---

## 🧪 测试
```bash
uv run pytest
```

---

## 📦 镜像发布与拉取

- 镜像仓库：[drfccv/mcp-server-12306](https://hub.docker.com/r/drfccv/mcp-server-12306)
- 拉取镜像：
  ```bash
  docker pull drfccv/mcp-server-12306:latest
  ```
- 运行镜像：
  ```bash
  docker run -d -p 8000:8000 --name 12306-mcp-server drfccv/mcp-server-12306:latest
  ```

---

## 📄 License
MIT License

---

## ⚠️ 免责声明

- 本项目仅供学习、研究与技术交流，严禁用于任何商业用途。
- 本项目不存储、不篡改、不传播任何 12306 官方数据，仅作为官方公开接口的智能聚合与转发。
- 使用本项目造成的任何后果（包括但不限于账号封禁、数据异常、法律风险等）均由使用者本人承担，项目作者不承担任何责任。
- 请遵守中国法律法规及 12306 官方相关规定，合理合规使用。

---
QtFactor 0.1.3
A client for the QtFactor API
Requires Python: >=3.6

# QtFactor

QtFactor 是面向量化研究的数据访问库，统一封装了 Tushare 与 QMT 的接口，支持以同一种调用方式获取多源数据，覆盖基础资料、行情、资金、财务与高频逐笔等核心数据场景。

## 能获取哪些数据

- Tushare 系列（完整兼容原始 39 个接口）
  - 基础资料：股票列表、行业/地域、上市/退市、交易日历等
  - 行情与指标：日线/周线/月线、复权、技术指标、资金面等
  - 财务相关：利润表、资产负债表、现金流量、财务指标等
  - 指数/期货/基金等常用板块数据
- QMT 系列（实时/高频）
  - `get_market_data_ex`：按周期获取 K 线、复权因子等，原始字典返回，其中包含 `DataFrame`
  - `get_full_tick`：获取全量逐笔 tick 原始数据（字典格式，不做转换）
- 特殊处理
  - `pro_bar`：遵循官方约定，走 `ts.pro_bar` 特殊通道，保持与 Tushare 标准一致

## 返回格式说明

- Tushare 接口：统一返回 `pandas.DataFrame`
- QMT `get_market_data_ex`：返回字典，字典中某些键对应 `DataFrame`
- QMT `get_full_tick`：返回原始字典，不做任何格式转换

## 安装

```bash
pip install QtFactor
```

## 导入与快速上手

```python
from QtFactor import QtFactor

# 使用授权码初始化（无授权码联系管理员：微信 QUANT0808）
q = QtFactor("YOUR_LICENSE_CODE")

# 示例1：获取股票基础信息（Tushare）
df_basic = q.stock_basic(fields='ts_code,name,area,industry')
print(df_basic.head())

# 示例2：获取 K 线行情（QMT）
data_kline = q.get_market_data_ex(stock_code='600519.SH', period='1d', count=5)
print(type(data_kline), list(data_kline.keys()))

# 示例3：获取全量逐笔（QMT）
tick = q.get_full_tick(stock_list=['000001.SZ'])
print(type(tick))
```

## 使用前提

- 该包为客户端组件，需要有可访问的服务端实例；服务端地址通过包内 `SERVER_URL` 配置
- QMT 数据获取需本机启动 MiniQMT，并按要求先订阅后拉取（`get_market_data_ex` 已在服务端内置顺序）
chronograf 0.1.0
Chronograf (RGC): Robot temporal synchronization and manifest builder.
Requires Python: >=3.8

Universal Temporal Kernel for Embodied AI & Robotics

Chronograf is the temporal synchronization subsystem of embodied AI.
It defines how a robot perceives, measures, dilates, and distributes time, through the Robot ChronoGraph Specification (RGC).

This repository includes:

The Chronograf Python CLI (chronograf)

The full RGC Specification

time_kernel.rcg – physical & cognitive time model

time_channels.rcg – canonical temporal channel map

time_topology.rcg – directed temporal dependency graph

Tools for manifest hashing, integrity validation, and spec regeneration

Chronograf is the temporal backbone for robotics, distributed AI systems, and inter-agent cognition.

🛠️ Installation

Chronograf is available on PyPI:

pip install chronograf

🚀 Basic Usage

Rebuild and synchronize the robot’s temporal manifest:

chronograf sync --spec-dir spec/00_core/chronograf


This command automatically:

Regenerates chronograf_manifest.rcg

Computes fresh SHA256 checksums

Updates timestamps

Validates structure & consistency

Ensures runtime integrity before deployment

📂 Repository Structure
chronograf/
 ├── src/robotchronograf/            # Python CLI & runtime
 │
 ├── spec/
 │   └── 00_core/
 │       └── chronograf/
 │           ├── layers/             # RGC temporal definition files
 │           │   ├── time_kernel.rcg
 │           │   ├── time_channels.rcg
 │           │   └── time_topology.rcg
 │           │
 │           ├── manifest/
 │           │   └── chronograf_manifest.rcg
 │           │
 │           └── tools/
 │               ├── build_chronograf.py
 │               └── validate_chronograf.py
 │
 ├── LICENSE
 ├── README.md
 └── pyproject.toml

🧪 Status

Chronograf RGC v0.1.0 — Public Draft
Suitable for research, prototyping, simulation, and academic robotics.

📜 License

Polyform Noncommercial License 1.0.0
This software is free for noncommercial use.
Commercial integration requires a separate license agreement.

© 2025 – Pasquale Ranieri (RobotChronograf)