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

# polymarket-provider

Polymarket 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 polymarket-provider
```

### uv

```bash
uv add polymarket-provider
# or
uv pip install polymarket-provider
```

## Quick Start

```python
from polymarket_provider import DataProvider

# Create provider with default DB paths
provider = DataProvider()

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

# Query on-chain events
orders = provider.on_chain.order_filled_events(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)
```

## Requirements

- Python 3.11+
- Local DuckDB database files

## Type stubs

Type stubs live next to the package in `crates/provider/polymarket_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
hapless 0.15.1
Run and track processes in background
License: MIT
Requires Python: <4.0,>=3.8
Keywords: cli, job, runner, background, process

## hapless

![Checks](https://github.com/bmwant/hapless/actions/workflows/tests.yml/badge.svg)
[![PyPI](https://img.shields.io/pypi/v/hapless)](https://pypi.org/project/hapless/)
![PyPI - Python Version](https://img.shields.io/pypi/pyversions/hapless)


[![Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json)](https://github.com/astral-sh/ruff)
[![ty](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ty/main/assets/badge/v0.json)](https://github.com/astral-sh/ty)
[![EditorConfig](https://img.shields.io/badge/-EditorConfig-grey?logo=editorconfig)](https://editorconfig.org/)
[![pre-commit](https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit&logoColor=white)](https://github.com/pre-commit/pre-commit)

> **hapless** (*adjective*) - (especially of a person) unfortunate. A developer who accidentally launched long-running process in the foreground.

Simplest way of running and tracking processes in the background.

[![asciicast](https://asciinema.org/a/489924.svg)](https://asciinema.org/a/489924?speed=2)

### Installation

* Install using [uv](https://docs.astral.sh/uv/)

```bash
uv tool install hapless
```

* Install using [pipx](https://pipx.pypa.io/latest/)

```bash
pipx install hapless
```

* Install using [pip](https://pip.pypa.io/en/stable/)

```bash
pip install hapless

# To make sure proper pip is used for the given python executable
python -m pip install hapless

# Install into user-specific directory in case of any permissions-related issues
pip install --user hapless
python -m pip install --user hapless
```

* Install using [brew](https://brew.sh/)

```bash
brew install hapless
```

### Usage

```bash
# Run arbitrary script
hap run -- python long_running.py

# Show summary table
hap

# Display status of the specific process
hap status 1
```

See [USAGE.md](https://github.com/bmwant/hapless/blob/main/USAGE.md) for the complete list of commands and available parameters.

### Contribute

See [DEVELOP.md](https://github.com/bmwant/hapless/blob/main/DEVELOP.md) to setup your local development environment and feel free to create a pull request with a new feature.

### Releases

Changes made in each release can be found on the [Releases](https://github.com/bmwant/hapless/releases) page.

Python versions compatibility:

* `0.11.1` is the last version to support Python `3.7`
* `0.15.1` is the last version to support Python `3.8`

### See also

* [Rich](https://rich.readthedocs.io/en/stable/introduction.html) console UI library.
* [Supervisor](http://supervisord.org/) full-fledged process manager.
* [podmena](https://github.com/bmwant/podmena) provides nice emoji icons to commit messages.

### Support 🇺🇦 Ukraine in the war!

🇺🇦 Donate to [this foundation](https://prytulafoundation.org/en) in case you want to help. Every donation matter!