Python SDK changelog
Release history for `easylabs (pip package)`.
Synced from CHANGELOG.md on the latest publish.
This is the canonical release history for easylabs (pip package).
0.1.1
Removed
-
The
dev=Truekeyword argument onClient(...)and the matchingEASY_API_URL_DEVconstant ineasylabs._api_url. The internal Easy Labs dev environment URL is no longer baked into the public package. Internal callers who genuinely need to point at a non-public host should passinternal_api_url="https://..."toClient(...).Migration: replace
Client(api_key=..., dev=True)withClient(api_key=..., internal_api_url="https://...")if you were using it. The standardsk_test_→ sandbox /sk_live_→ production routing is unchanged.
0.1.0
First published release of the Python SDK, mirroring @easylabs/node@0.1.0.
Added
easylabs.Client— instance-style API client (mirrorscreateClientin the Node SDK) with namespaced resources (client.customers.create(...)).- HTTP transport built on
httpx, supporting query encoding, JSON bodies, optionalIdempotency-Keyheader, andskipAuthfor embedded-checkout public endpoints (validate/confirm). - Sandbox / production URL routing — keys prefixed
sk_test_route tohttps://sandbox-api.itseasy.co/v1/api; everything else routes tohttps://api.itseasy.co/v1/api. Aninternal_api_url=override is available for tests and self-hosted setups. - Full resource surface (~80 methods across 21 namespaces): customers, payment instruments, transfers (incl. refunds), disputes, settlements, products, product prices, orders, subscriptions (incl. items, discounts, usage, one-time charges, proration preview, pause/resume), checkout, payment links, embedded checkout (incl. config + crypto status), webhook endpoints (incl. delivery listings), invoices, coupons, promotion codes, authorizations, analytics, compliance forms, dunning config, and revenue recovery automations.
easylabs.Webhooks.construct_event(...)— verifies HMAC-SHA256 webhook signatures withhmac.compare_digestand parses the payload into a typedWebhookEventPydantic model.EASY_EVENT_TYPESconstant — full catalog of webhook event types.- Error class hierarchy under
easylabs.error.EasyErrorwith HTTP-status subclasses (AuthenticationError,PermissionError,NotFoundError,ConflictError,RateLimitError,InvalidRequestError,ServerError) plusstatus,code,details,retry_after_seconds, andrawfields. - Pydantic v2 response models with
extra="allow"for forward compatibility.