semvec/pypi-packages huggingface dataset:
solanace 0.0.2
A high-level Python library to effortlessly interact with the Solana blockchain (wip)
License: MIT
Requires Python: <4.0,>=3.10

# solanace
A high-level Python library to effortlessly interact with the Solana Blockchain (work in progress).

### Features
- Simplistic syntax
- Full support for Asyncio & Gevent (but can also run synchronous)
- Fallback clients
- Swapping functionality using Jupiter Aggregator (raydium, orca, etc.)
- High performance (uses solders, written in Rust, under the hood)
- Meaningful error messages
- RPC Performance Testing & Profiling
- Full support for Type Hints

For support, drop me a DM on my [X](https://x.com/eliahilse).

_Following is the goal, this library is WIP_
### Get Started

```python
from solanace import Tokens, Metrics
from solanace import Wallet, Client

my_wallet = Wallet.from_private_key("xyzxyzxyz")  # base58 encoded private key
my_client = Client("https://sola.na/rpc", "https://mainnet-beta.solana.com/rpc")

# send and recieve solana & spl tokens
my_client.get_balance()
my_client.send_sol(wallet=my_wallet, to="bob.sol", amount=0.1)
my_client.send_token(wallet=my_wallet, token=Tokens.USDC, to="bob.sol", amount=2)
my_wallet_address = my_wallet.address()

# swap 0.1 solana to usdc
my_client.swap(wallet=my_wallet, from_currency=Tokens.Solana, to_currency=Tokens.USDC, amount_from_currency=0.1)
my_client.swap(wallet=my_wallet, from_currency=Tokens.Solana, to_currency=Tokens.USDC, amount_to_currency=5)

# nft utility
my_client.send_nft(wallet=my_wallet, nft_address="xyz", to="abc")
my_client.burn_nft(wallet=my_wallet, nft_address="uvw")

# test rpcs
Metrics.test(urls=["rpc1", "rpc2", "rpc3"], limit=10)
```

### Upcoming Features
- Mint NFTs
- Mint Tokens
- List, Buy & Bid on NFTs
- Whitelist Wallets & Limit amounts sent
python-mcp 1.0.1
MCP提示词管理服务
License: MIT
Requires Python: >=3.8

# Python MCP提示词服务

基于Model Context Protocol的Python SDK实现的提示词管理服务。

## 功能

- 连接Cloudflare Worker API获取提示词数据
- 提供MCP接口供Claude等AI助手调用
- 包含可靠的重试、超时和缓存机制

## 安装

1. 创建虚拟环境

```bash
python -m venv venv
source venv/bin/activate  # Linux/Mac
# 或者 venv\Scripts\activate  # Windows
```

2. 安装依赖

```bash
pip install -r requirements.txt
```

## 使用方法

### 直接测试API连接

运行direct_test.py测试直接连接到Cloudflare Worker API:

```bash
python direct_test.py
```

### 启动MCP服务器

```bash
python mcp_server.py
```

或使用MCP CLI工具:

```bash
mcp dev mcp_server.py
```

### 在Claude Desktop中安装

```bash
mcp install mcp_server.py --name "提示词管理服务"
```

### 测试MCP客户端

```bash
python test_client.py
```

## 配置选项

可以在mcp_server.py文件中修改以下配置项:

- WORKER_URL - Cloudflare Worker API的URL
- API_TIMEOUT - API请求超时时间（秒）
- RETRIES - 重试次数

## 代理配置

如需使用代理，可设置以下环境变量:

```bash
# Linux/Mac
export HTTP_PROXY=http://127.0.0.1:7890
export HTTPS_PROXY=http://127.0.0.1:7890

# Windows
set HTTP_PROXY=http://127.0.0.1:7890
set HTTPS_PROXY=http://127.0.0.1:7890
```