Skip to main content

Python builder signing sdk

Project description

py-builder-signing-sdk

Python SDK for Polymarket builder authentication and signing.

Installation

pip install py-builder-signing-sdk

Usage

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"}')

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

py_builder_signing_sdk-0.0.2.tar.gz (6.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

py_builder_signing_sdk-0.0.2-py3-none-any.whl (9.1 kB view details)

Uploaded Python 3

File details

Details for the file py_builder_signing_sdk-0.0.2.tar.gz.

File metadata

  • Download URL: py_builder_signing_sdk-0.0.2.tar.gz
  • Upload date:
  • Size: 6.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.10

File hashes

Hashes for py_builder_signing_sdk-0.0.2.tar.gz
Algorithm Hash digest
SHA256 27fa4401944220c51809f549a263c6e53b5cd981fca98eda7ef6f21944e6bf94
MD5 318b82e93f6da54ffc20039305af2d91
BLAKE2b-256 18e3fab3253021a4d766345f491f00e40d89c7c5640bf6d20d9f5a3182b482de

See more details on using hashes here.

File details

Details for the file py_builder_signing_sdk-0.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for py_builder_signing_sdk-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 114b9d57bec228177d759ce15c475589f47db2252ed1fd67cac3c9b0640abe76
MD5 45e7ec93ccca6c87b7be4f609acbf948
BLAKE2b-256 57fb23c68c8f6356a50f959e2df2ae80e8344c3ff8ccca92943848a57a495928

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page