Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

Polar Python SDK

The official Python client for the Polar API.

Installation

The SDK requires Python 3.11 or later.

uv add polar-sdk

or, with pip:

pip install polar-sdk

Quick Start

Create an organization access token and use the client for the current API version:

from polar.v2026_04 import Polar

polar = Polar("polar_oat_xxx")

customer_state = polar.customers.get_state_external("customer_external_id")
print(customer_state)

The client uses the production environment by default. To use the sandbox, pass environment="sandbox" when creating the client. Sandbox and production access tokens are separate.

Keep organization access tokens on the server and never expose them in browser or client-side code.

Download files

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

Source Distribution

polar_sdk-1.0.0a11.tar.gz (101.5 kB view details)

Uploaded Source

Built Distribution

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

polar_sdk-1.0.0a11-py3-none-any.whl (130.3 kB view details)

Uploaded Python 3

File details

Details for the file polar_sdk-1.0.0a11.tar.gz.

File metadata

  • Download URL: polar_sdk-1.0.0a11.tar.gz
  • Upload date:
  • Size: 101.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.29 {"installer":{"name":"uv","version":"0.11.29","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for polar_sdk-1.0.0a11.tar.gz
Algorithm Hash digest
SHA256 05c10348787e8bb532fd0e6bfdb337e7a27263ec0f300abe98179fdb30e54528
MD5 73687705ea06d47f1bc5baab48327479
BLAKE2b-256 d7bc1ad79781ebed66bb19df764d877af6b8496f4f002e087777da74e95581d7

See more details on using hashes here.

File details

Details for the file polar_sdk-1.0.0a11-py3-none-any.whl.

File metadata

  • Download URL: polar_sdk-1.0.0a11-py3-none-any.whl
  • Upload date:
  • Size: 130.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.29 {"installer":{"name":"uv","version":"0.11.29","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for polar_sdk-1.0.0a11-py3-none-any.whl
Algorithm Hash digest
SHA256 af9dbab21cf774ae98a12515c26dcc0789ad024f6f6814f08e10efbde765d1d1
MD5 61cf77af84d18ba338b88b622eb6d9f8
BLAKE2b-256 10354e44a3173f119751e6426dc88080fe9e923ae9cf37643d1765ae1a0d0f62

See more details on using hashes here.

Release history Release notifications | RSS feed

Supported by

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