--- id: polar-sdk version: "0.32.0" license: MIT license_treatment: permissive maintenance: active --- # polar-sdk — Polar SDK for Python License: permissive · Maintenance: active · Downloads: 143.0K/mo ## What it is and what it does Polar-sdk is a Python client library for the Polar API, generated to provide type-safe access to Polar's resources and operations. It supports both synchronous and asynchronous request patterns, allowing you to list, create, update, and delete resources like organizations, benefits, and checkout links. The SDK includes built-in webhook signature validation to safely process incoming events. The package depends on httpx for HTTP transport, pydantic for data validation, and standardwebhooks for webhook verification. It's designed for modern Python versions (3.9.2 and later) and includes pagination support, custom error handling, and configurable server selection. The SDK is actively maintained and suitable for integrating Polar's payment and subscription platform into Python applications. Use it for: - Automate organization and benefit management in a Polar-powered SaaS platform. - Process incoming webhook events from Polar with built-in signature verification. - Build async-first applications that interact with Polar's checkout and subscription APIs. - Validate and handle unknown webhook event types safely across SDK version upgrades. - Manage paginated API responses when listing large sets of organizations or benefits. ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. Python SDK for interacting with the Polar API, providing synchronous and asynchronous methods to manage organizations, benefits, checkouts, and other Polar resources, plus built-in webhook validation. Yes. The SDK is actively maintained, has low install friction, carries no known vulnerabilities, uses a permissive MIT license, and provides a well-structured interface to Polar's API with both sync and async support. Install it if you're integrating with Polar's platform. ## Install pip install polar-sdk uv add polar-sdk poetry add polar-sdk ## Installing polar-sdk Before you install: Low install friction with a pure-wheel distribution. Actively maintained with a release within the last month and recent commits. Depends on standard HTTP and validation libraries (httpx, pydantic, httpcore). License in practice: MIT license permits commercial and private use with minimal restrictions; you must include a copy of the license and copyright notice in distributions. Quickstart: pip install polar-sdk from polar_sdk import Polar with Polar(access_token="") as polar: res = polar.organizations.list_organizations(page=1, limit=10) Requires Python >= 3.9.2; bearer token authentication required for API access. Verify before relying: - Whether all resource operations (benefits, checkouts, subscriptions, etc.) are fully implemented and stable in version 0.32.0. - Rate limiting, retry behavior, and timeout defaults for API calls. - Whether webhook validation works with frameworks other than Flask. ## Package facts - License: MIT (permissive) - Python support: supports_current - Install friction: low - Maintenance: active - Downloads: 143.0K/month (top 15,000 on PyPI) - Known vulnerabilities: none known ## Tags polar api client python, polar sdk, webhook validation python, async http client library, rest api python sdk, api-client, async-support, webhook-validation [View on SkillFed](https://skillfed.io/packages/polar-sdk) · [View on PyPI](https://pypi.org/project/polar-sdk/)