semvec/pypi-packages huggingface dataset:
py-builder-signing-sdk 0.0.2
Python builder signing sdk
Requires Python: >=3.9

# py-builder-signing-sdk

Python SDK for Polymarket builder authentication and signing.

## Installation

```bash
pip install py-builder-signing-sdk
```

## Usage

```python
from py_builder_signing_sdk import BuilderConfig, BuilderApiKeyCreds, RemoteBuilderConfig

# Local signing
creds = BuilderApiKeyCreds(
    key="your-api-key",
    secret="your-secret", 
    passphrase="your-passphrase"
)
config = BuilderConfig(local_builder_creds=creds)

# Remote signing
remote_config = RemoteBuilderConfig(
    url="http://localhost:3000/sign",
    token="your-auth-token"  # optional
)
config = BuilderConfig(remote_builder_config=remote_config)

# Generate signed headers
headers = config.generate_builder_headers("POST", "/order", '{"data": "example"}')
```