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.1.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.1-py3-none-any.whl (9.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: py_builder_signing_sdk-0.0.1.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.1.tar.gz
Algorithm Hash digest
SHA256 a07412ee9bbbfff67b2af00859a223d632acc11eb03b2643ccc9adedc4cf56e9
MD5 caae172bf5488350bd4c18954d313a2a
BLAKE2b-256 1f07db3ce6eda7da43aedc50a8d7ce78ce2da59e849f3e5d008d8a6c4bfc1e47

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for py_builder_signing_sdk-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 28d67bfada52fe733f204f497d6b7d0201725fc4aed5f5d6bff694610dc0d45f
MD5 4a8b4e0aff0c2b6d4130f48627e56b9d
BLAKE2b-256 7e78dd804a7867a01e23b65f707bdc9e4e4ffcea3cff31c9bf20454e7fd3011e

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