semvec/pypi-packages huggingface dataset:
polymarket-trade-executor 0.1.3
Trade executor for Polymarket CLOB API - supports orders, split, merge, redeem
Requires Python: >=3.10
Keywords: clob, crypto, polymarket, prediction-market, trading

# Polymarket Trade Executor

Trade execution library for Polymarket CLOB API.

## Installation

```bash
pip install polymarket-trade-executor
```

For merge/split/redeem (gasless transactions):

```bash
pip install polymarket-trade-executor[relayer]
```

## Quick Start

```python
import asyncio
from polymarket_trade_executor import TradeExecutor, OrderSide

async def main():
    executor = TradeExecutor(
        host="https://clob.polymarket.com",
        private_key="0x...",
        funder="0x...",  # optional
        # For merge/split/redeem (optional)
        builder_api_key="xxx",
        builder_secret="xxx",
        builder_passphrase="xxx",
    )
    
    # Get balance
    balance = await executor.get_balance()
    print(f"Balance: ${balance:.2f}")
    
    # Place market order
    result = await executor.place_market_order(
        asset_id="token_id_here",
        side=OrderSide.BUY,
        amount=10.0,
    )
    
    if result:
        print(f"Order: {result.order_id} - {result.size_matched} tokens @ ${result.price}")

asyncio.run(main())
```

## Features

| Feature | Requires Builder API |
|---------|---------------------|
| `place_order` / `place_market_order` | ❌ |
| `post_orders` (batch) | ❌ |
| `get_balance` / `get_token_balance` | ❌ |
| `buy_market` / `sell_all` (with retry) | ❌ |
| `split_positions` | ✅ |
| `merge_positions` / `merge_all` | ✅ |
| `redeem_positions` | ✅ |

## Simulation Mode

```python
from polymarket_trade_executor import SimulateTradeExecutor

executor = SimulateTradeExecutor(starting_balance=1000.0)
# Same API as TradeExecutor, no real API calls
```

## License

MIT
cc-ai-tracker 0.2.0
Track AI-generated vs human-made code changes in git repos
Requires Python: >=3.11
Keywords: ai, analytics, claude, code-tracking, developer-tools, git

# AI Tracker

Track what percentage of code changes in git repos are AI-generated (via Claude Code) vs human-made.

## Installation

### Option 1: uvx (recommended)

No installation needed - runs directly from PyPI:

```bash
uvx cc-ai-tracker stats
```

### Option 2: Local install

Install globally with uv:

```bash
uv tool install cc-ai-tracker
```

Or install from source:

```bash
cd ai-tracker
uv tool install .
```

Then run directly:

```bash
ai-tracker stats
```

## Setup

After installation, set up the hooks to start tracking:

```bash
ai-tracker install    # Install all hooks (Claude Code + git)
```

Or with uvx:
```bash
uvx cc-ai-tracker install
```

## Usage

**With uvx:**
```bash
uvx cc-ai-tracker stats           # All-time stats
uvx cc-ai-tracker stats --graph   # Stats + chart for last 7 days
uvx cc-ai-tracker stats --chart --days 14  # Custom chart period
```

**With local install:**
```bash
ai-tracker stats           # All-time stats
ai-tracker stats --graph   # Stats + chart for last 7 days
ai-tracker stats --chart --days 14  # Custom chart period
ai-tracker stats --repo my-project  # Filter by repo
```

## How It Works

1. **Claude Code Hooks** (`PostToolUse`) - Logs every Edit/Write operation with line-level counts
2. **Git Post-commit Hook** - Attributes committed changes to AI or human based on the edit log
3. **CLI Stats** - Queries SQLite database and displays statistics with Rich formatting

## Architecture

```
~/.config/ai-tracker/
├── tracker.db          # SQLite database (WAL mode)
├── cache/              # Temporary cache for Write tool pre-capture
└── git-hooks/
    └── post-commit     # Global git hook (delegates to local hooks)
```

## Database

Data is stored in `~/.config/ai-tracker/tracker.db` using SQLite with WAL mode for concurrent access.

### Custom Database Path

For multi-agent deployments (e.g., agent-swarm workers), you can configure a custom database path:

```bash
export AI_TRACKER_DB_PATH="/path/to/custom/tracker.db"
```

This allows each agent to have its own isolated database file.

### Query the Database

```bash
# View recent edits
sqlite3 ~/.config/ai-tracker/tracker.db "SELECT * FROM edits ORDER BY timestamp DESC LIMIT 10"

# View commits with attribution
sqlite3 ~/.config/ai-tracker/tracker.db "SELECT * FROM commits ORDER BY timestamp DESC LIMIT 10"
```

## Uninstall

```bash
ai-tracker uninstall    # Remove all hooks (Claude Code + git)
```
todoist_api_python 3.2.1
Official Python SDK for the Todoist API.
Requires Python: ~=3.9
Keywords: api, python, rest, sync, todoist

# Todoist API Python Client

This is the official Python SDK for the Todoist API.

## Installation

```bash
pip install todoist-api-python
```

Or add the project as a dependency in `pyproject.toml`:

```toml
dependencies = [
  "todoist-api-python>=3.1.0,<4",
]
```

### Supported Python Versions

Python version 3.9 and above.

## Usage

Here's an example of initializing the API client, fetching a task, and paginating through its comments:

```python
from todoist_api_python.api import TodoistAPI

api = TodoistAPI("YOUR_API_TOKEN")

task = api.get_task("6X4Vw2Hfmg73Q2XR")
print(f"Task: {task.content}")

comments_iter = api.get_comments(task_id=task.id)
for comments in comments_iter:
    for comment in comments:
        print(f"Comment: {comment.content}")
```

## Documentation

For more detailed reference documentation, have a look at the [SDK documentation](https://doist.github.io/todoist-api-python/) and the [API documentation](https://developer.todoist.com).

## Development

To install Python dependencies:

```sh
$ uv sync
```

To install pre-commit:

```sh
$ uv run pre-commit install
```

You can try your changes via REPL by running:

```sh
$ uv run python
```

You can then import the library as described in [Usage](#usage) without having to create a file.
If you decide to use `TodoistAPIAsync`, please keep in mind that you have to `import asyncio`
and run `asyncio.run(yourmethod())` to make your async methods run as expected.

### Releases

This API client is public, and available in a PyPI repository.

A new update is automatically released by GitHub Actions, by creating a release with a tag in the format `vX.Y.Z` (`v<Major>.<Minor>.<Patch>`).

Users of the API client can then update to the new version in their `pyproject.toml` file.

## Feedback

Any feedback, bugs, questions, comments, etc., can be reported as *Issues* in this repository.

### Contributions

We would love contributions! *Pull requests* are welcome.
hrcl-jobs 1.8.2
Runs python functions on worker threads with main thread communicating with sql/postgresql db
Requires Python: >=3.8

# Hierarchical Python Jobs (hrcl_jobs)
This package provides a simple way to run hierarchical jobs in Python.
Leveraging a SQL or PostgreSQL database, it allows users to create MPI jobs
that distribute tasks from a main thread to multiple worker threads for
high-throughput computation. 

# Installation
```bash 
pip install hrcl-jobs
```
**NOTE** if you are using macos, you might need to do the following to install with pip
```bash 
brew install mpich
sudo find / -name mpicc
```
And then run the pip install with the path to your mpicc
```bash
env MPICC=/yourpath/mpicc pip3 install hrcl-jobs
```

# Example Usage