workos
WorkOS Python Client
Decision gist · record as of 2026-08-14
Yes. The library is actively maintained (release 3 days old), has low install friction, carries no known vulnerabilities, and uses a permissive MIT license. It is well-suited for any Python application integrating WorkOS services. The only constraint is Python 3.10+; if your project targets an older version, you cannot use it.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.10 or later.
- Low install friction with a pure-Python wheel.
- Actively maintained with a release 3 days old.
License · maintenance · safety
MIT (permissive) — MIT license is permissive; you can use this library in commercial and proprietary projects with minimal restrictions.
last release 2026-08-11 (3 days)
0 known vulnerabilities (OSV.dev, 2026-08-14) · 5,685,385 downloads/mo, #2,054 on PyPI
Alternatives
Verify before relying
pip install workos
from workos import WorkOSClient
client = WorkOSClient(api_key="sk_1234", client_id="client_1234")
page = client.organizations.list_organizations()
for org in page.auto_paging_iter():
print(org.name)- Whether the auto-retry behavior (up to 3 times on 429/5xx) and exponential backoff meet your application's resilience needs.
- Whether the 60-second default HTTP timeout is appropriate for your use case or if you'll need per-request overrides.
What it is and what it does
WorkOS is a typed Python client for the WorkOS platform, which provides enterprise identity, organization, and authorization infrastructure. It wraps the WorkOS REST API with a namespace-based interface (e.g., client.sso, client.organizations, client.user_management) and supports both synchronous and asynchronous HTTP calls via httpx. The library handles pagination automatically, includes typed exception classes for different HTTP error codes, and ships with full type annotations for IDE support and static type checking.
The client reads credentials from environment variables or explicit parameters, automatically retries requests with exponential backoff on transient failures, and attaches idempotency keys to POST requests. It covers a broad API surface—SSO, user and organization management, directory sync, audit logs, fine-grained authorization (FGA), feature flags, webhooks, MFA, and more—making it suitable for applications that need to integrate WorkOS services without building HTTP calls by hand.
Use it for
- Integrate WorkOS SSO into a Python web application to authenticate users via SAML, OAuth, or other enterprise protocols.
- Build an admin panel that creates, lists, and manages organizations and their memberships using the organizations and organization_membership namespaces.
- Implement directory sync to pull users and groups from an external directory (LDAP, Active Directory) into your application.
- Set up fine-grained authorization (FGA) to define roles, permissions, and access checks for multi-tenant or complex permission models.
- Verify webhook signatures and process WorkOS events (e.g., user created, organization updated) in your application.
- Generate feature flags and manage targeting rules for A/B testing or gradual feature rollouts.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
The library is actively maintained (release 3 days old), has low install friction, carries no known vulnerabilities, and uses a permissive MIT license. It is well-suited for any Python application integrating WorkOS services. The only constraint is Python 3.10+; if your project targets an older version, you cannot use it.
Install
workos on PyPI
Before you install
Low install friction with a pure-Python wheel. Actively maintained with a release 3 days old. Requires Python 3.10+. Dependencies are all stable, widely-used libraries (cryptography, httpx, pyjwt, typing-extensions).
Requires Python 3.10 or later.
License in practice
MIT license is permissive; you can use this library in commercial and proprietary projects with minimal restrictions.
Quickstart
pip install workos
from workos import WorkOSClient
client = WorkOSClient(api_key="sk_1234", client_id="client_1234")
page = client.organizations.list_organizations()
for org in page.auto_paging_iter():
print(org.name)
Verify before relying
- Whether the auto-retry behavior (up to 3 times on 429/5xx) and exponential backoff meet your application's resilience needs.
- Whether the 60-second default HTTP timeout is appropriate for your use case or if you'll need per-request overrides.
Package facts
| License | MIT permissive |
| Python support | Supports the current Python release >=3.10 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 4 packagescryptographyhttpxpyjwttyping-extensions |
| Maintenance | Actively maintained 3 days since the last release |
| First released | |
| Downloads | 5,685,385 / month, #2,054 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
Evidence: workos-10.2.0-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “workos api client”
- workosA Python client library for the WorkOS API that provides typed access…
- codewords-clientA Python client library for the Codewords API with built-in FastAPI…
- twentyc.rpcA client library for consuming 20c's RESTful API, built on top of the…
Give your agent the search over MCP, or paste the wish link into any chat.
More WWW/HTTP packages
urllib3 is an HTTP client library that provides thread-safe connection pooling, SSL/TLS verification, multipart file uploads, request retries, compression support, and proxy handling for Python applications.
Requests is a Python HTTP library that simplifies sending HTTP/1.1 requests with automatic handling of headers, authentication, cookies, and response parsing.
h11 is a pure-Python HTTP/1.1 protocol implementation that handles parsing and serializing HTTP messages without any built-in I/O, letting you integrate it with any network layer you choose.
HTTPX is a fully featured HTTP client library for Python that provides both sync and async APIs, with support for HTTP/1.1 and HTTP/2, plus an integrated command-line client.
Install it if you are building new projects or modernizing existing ones that rely on HTTP.
A minimal low-level HTTP client library that sends HTTP requests with thread-safe and task-safe connection pooling, supporting HTTP/1.1, HTTP/2, proxies, and both sync and async interfaces.
aiohttp is an async HTTP client and server framework built on asyncio, supporting both WebSockets and middleware-based routing for building concurrent web applications.
Install it if you need async HTTP client or server capabilities in asyncio-based applications.
See also pipedream · onfido-python · python-freeipa · globus-sdk · python-openid · propelauth-py · pyxero · requests-oauthlib · egnyte · pydiscourse