Skip to content

Commit dab75bd

Browse files
gjtorikianclaude
andcommitted
remove legacy types/, compat layer, and handwritten service modules
Delete the entire legacy stack that the generated code replaces: - All 10 _compat.py bridge files - All handwritten service modules (sso.py, connect.py, etc.) - Old client.py, async_client.py, _base_client.py, _client_configuration.py - Entire types/ directory (~170 files of Pydantic models) - typing/ directory (legacy type helpers) - utils/ directory (legacy HTTP client, request helpers) - exceptions.py (replaced by _errors.py) - All legacy test files and fixtures The generated _resource.py + _client.py + models/ are now the sole implementation. Update __init__.py to export from the generated _client.py. Add new conftest.py with workos/async_workos fixtures for the generated test suite. 436 tests pass, 0 failures. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent f57e7cc commit dab75bd

228 files changed

Lines changed: 55 additions & 26860 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

src/workos/__init__.py

Lines changed: 44 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,45 @@
1-
from workos.client import SyncClient as WorkOSClient
2-
from workos.async_client import AsyncClient as AsyncWorkOSClient
1+
"""WorkOS Python SDK."""
32

4-
__all__ = ["WorkOSClient", "AsyncWorkOSClient"]
3+
from ._client import AsyncWorkOS, WorkOS
4+
from ._errors import (
5+
WorkOSError,
6+
AuthenticationError,
7+
BadRequestError,
8+
ConflictError,
9+
ConfigurationError,
10+
ForbiddenError,
11+
NotFoundError,
12+
RateLimitExceededError,
13+
ServerError,
14+
UnprocessableEntityError,
15+
WorkOSConnectionError,
16+
WorkOSTimeoutError,
17+
)
18+
from ._pagination import AsyncPage, SyncPage
19+
from ._types import RequestOptions
20+
21+
# Backward-compatible aliases
22+
WorkOSClient = WorkOS
23+
AsyncWorkOSClient = AsyncWorkOS
24+
25+
__all__ = [
26+
"AsyncWorkOS",
27+
"AsyncWorkOSClient",
28+
"WorkOS",
29+
"WorkOSClient",
30+
"RequestOptions",
31+
"WorkOSError",
32+
"AuthenticationError",
33+
"BadRequestError",
34+
"ConflictError",
35+
"ConfigurationError",
36+
"ForbiddenError",
37+
"NotFoundError",
38+
"RateLimitExceededError",
39+
"ServerError",
40+
"UnprocessableEntityError",
41+
"WorkOSConnectionError",
42+
"WorkOSTimeoutError",
43+
"AsyncPage",
44+
"SyncPage",
45+
]

src/workos/_base_client.py

Lines changed: 0 additions & 156 deletions
This file was deleted.

src/workos/_client_configuration.py

Lines changed: 0 additions & 12 deletions
This file was deleted.

src/workos/api_keys.py

Lines changed: 0 additions & 77 deletions
This file was deleted.

0 commit comments

Comments
 (0)