semvec/pypi-packages huggingface dataset:
nextpoly-data-provider 0.10.1
Data provider for Python - Query data from local DuckDB
License: MIT
Requires Python: >=3.11
Keywords: duckdb, prediction-market

# nextpoly-data-provider

NextPoly data provider for Python, built with Rust and PyO3.

## Features

- Query Polymarket on-chain data (order filled events, FPMM transactions)
- Query Polymarket off-chain data (markets, market tokens)
- Query timeseries data for trading analysis
- Time-travel queries with `simulation_time` parameter
- Built on DuckDB for fast local queries
- Python 3.11+ support with abi3 compatibility

## Installation

```bash
pip install nextpoly-data-provider
```

### uv

```bash
uv add nextpoly-data-provider
# or
uv pip install nextpoly-data-provider
```

## Quick Start

```python
from data_provider import DataProvider

# Create provider with default data directory
provider = DataProvider()
# Or specify a custom data directory
# provider = DataProvider(data_dir="path/to/data")
# Optional: limit DuckDB memory per connection
# provider = DataProvider(memory_limit="4GB")
# Optional: set spill directory + threads per connection
# provider = DataProvider(temp_directory="/tmp/duckdb", threads=4)

# Query markets
markets = provider.off_chain.list_markets(limit=10)
for market in markets:
    print(f"{market.raw_data.get('question')}")

# Query on-chain events
orders = provider.on_chain.list_orders(limit=10)

# Query time series data
ts = provider.trading.get_timeseries(token_id="...")
```

## Time Travel Queries

```python
from datetime import datetime, timezone

# Query data as of a specific time
ts = int(datetime(2024, 1, 1, tzinfo=timezone.utc).timestamp())
provider = DataProvider(simulation_time=ts)

# Or set it later
provider.set_simulation_time(ts)
```

## Development

### Building from source

```bash
cd crates/data-provider
uv sync
uv run maturin develop
```

### Running tests

```bash
# Install test dependencies
uv pip install pytest duckdb --python .venv/bin/python

# Run all tests
.venv/bin/python -m pytest tests/ -v

# Run specific test file
.venv/bin/python -m pytest tests/test_queries.py -v
```

### Code quality

```bash
# Lint with ruff
ruff check tests/

# Type check with ty
uv tool run ty check tests/
```

## Requirements

- Python 3.11+
- Local DuckDB database files

## Type stubs

Type stubs live next to the package in `crates/data-provider/data_provider/*.pyi`.

To build the extension with maturin and verify stubs against runtime objects:

```bash
uv --version
cargo run -p xtask -- stub-check
```

`stub-check` uses `uv run` in `crates/provider`, creating `.venv` if needed and installing
`maturin`, `mypy`, `ruff`, and `ty` automatically.
Pass `--debug` to skip `--release`.

## Publishing

```bash
maturin publish --release
```

## License

MIT
xukaaaa-redmine-mcp 0.1.4
MCP Server for Redmine - Manage tasks, log time, update status via Claude/AI assistants
License: MIT
Requires Python: >=3.10
Keywords: ai, automation, claude, mcp, project-management, redmine

# Redmine MCP Server

MCP (Model Context Protocol) Server for Redmine - Manage tasks, log time, update status via Claude/AI assistants.

## Features

- **List Tasks** - View tasks assigned to you with status filtering
- **Task Details** - Get detailed information about specific issues
- **Log Time** - Record time entries with comments
- **Update Status** - Change issue status (in progress, resolved, etc.)
- **Update Progress** - Set completion percentage (0-100%)
- **Add Notes** - Add comments to issues
- **Daily Summary** - Check today's logged hours
- **Time Logs Range** - View logged hours within a date range

## Installation

```bash
pip install xukaaaa-redmine-mcp
```

Or install from source:

```bash
git clone https://github.com/xukaaaa/redmine-mcp-server.git
cd redmine-mcp-server
pip install -e .
```

## Configuration

Set the following environment variables:

```bash
export REDMINE_URL="https://your-redmine-instance.com"
export REDMINE_API_KEY="your-api-key"
```

### Getting your Redmine API Key

1. Log in to your Redmine instance
2. Go to **My Account** (top right)
3. Find **API access key** on the right sidebar
4. Click **Show** or **Reset** to get your key

## Usage with Claude Desktop

Add to your Claude Desktop config (`~/.config/claude/claude_desktop_config.json` on Linux/Mac or `%APPDATA%\Claude\claude_desktop_config.json` on Windows):

```json
{
  "mcpServers": {
    "redmine": {
      "command": "redmine-mcp-server",
      "env": {
        "REDMINE_URL": "https://your-redmine-instance.com",
        "REDMINE_API_KEY": "your-api-key"
      }
    }
  }
}
```

## Available Tools

| Tool | Description |
|------|-------------|
| `list_my_tasks` | List tasks assigned to you (filter: open/closed/status name) |
| `get_issue_details` | Get detailed info about a specific issue |
| `log_time` | Log time entry with hours and comment |
| `update_issue_status` | Change issue status |
| `update_progress` | Update completion percentage |
| `add_note` | Add a comment to an issue |
| `get_today_logs` | View today's time entries and total hours |
| `get_time_logs_range` | View time logs within a date range (from_date, to_date) |
| `clear_cache` | Clear cached metadata |

## Examples

Ask Claude:

- "Show me my open tasks"
- "What's the status of issue #123?"
- "Log 2 hours on task #456 for code review"
- "Mark issue #789 as resolved"
- "Update task #101 to 80% complete"
- "How many hours have I logged today?"
- "Show me my time logs from 2025-12-23 to 2025-12-27"

## Development

```bash
# Clone the repo
git clone https://github.com/xukaaaa/redmine-mcp-server.git
cd redmine-mcp-server

# Install in development mode
pip install -e .

# Run the server
redmine-mcp-server
```

## License

MIT License - see [LICENSE](LICENSE) for details.

## Author

**xukaaaa** - [GitHub](https://github.com/xukaaaa)