Skip to content

Python SDK

pip install scalekit-sdk-python
2.4.16 Pydantic v2 Type Hints
Updated 1 day ago
Initialize the client
from scalekit import ScalekitClient
scalekit_client = ScalekitClient(
environment_url=os.getenv("SCALEKIT_ENVIRONMENT_URL"),
client_id=os.getenv("SCALEKIT_CLIENT_ID"),
client_secret=os.getenv("SCALEKIT_CLIENT_SECRET")
)

2.4.16

What's Changed

New Contributors

Domain API Changes - Release Notes

Enhanced Domain Management

Domain Type Support

  • Added support for domain types to distinguish between different domain configurations:
    • ALLOWED_EMAIL_DOMAIN: Trusted domains used to suggest organizations in the organization switcher during sign-in/sign-up
    • ORGANIZATION_DOMAIN: SSO discovery domains used to route users to the correct SSO provider and enforce SSO
    • UNSPECIFIED: Default type for backward compatibility

API Enhancements

create_domain()

  • Added optional domain_type parameter (accepts string or DomainType enum)
  • When not specified, defaults to ORGANIZATION_DOMAIN for backward compatibility
  • Supports flexible input: strings like "ALLOWED_EMAIL_DOMAIN" or enum values

list_domains()

  • Added optional domain_type parameter for filtering domains by type
  • When not specified, returns all domains regardless of type
  • Enables targeted queries for specific domain configurations

Full Changelog: v2.4.14...2.4.16

v2.4.14

What's Changed

  • Update pyjwt requirement from <2.10,>=2.8 to >=2.8,<2.11 in #48
  • Library Upgrades & minor performance improvements in #112

Full Changelog: v2.4.13...v2.4.14

v2.4.13

What's Changed

New sdk methods

  • Add upsert_user_management_settings sdk method to OrganizationClient by @dhaneshbs in #110

v2.4.12

What's Changed

  • Add AuthClient for updating login user details and generate proto files to support given_name and family_name in user object in #109

Full Changelog: v2.4.11...v2.4.12

v2.4.9

Full Changelog: v2.4.8...v2.4.9

  • Refresh Expired Client Access Token

v2.4.8

What's Changed

  • add RevokeAllUserSessions method and enhance getUserSessions with filter options by @dhaneshbs in #100

Full Changelog: v2.4.7...v2.4.8

v2.4.4

What's Changed

  • Generated proto files - rename invited_by to inviter_email

Full Changelog: v2.4.3...v2.4.4