Skip to main content

WorkOS Python Client

Project description


Python SDK to conveniently access the WorkOS API.


To install from PyPi, run the following:

pip install workos

To install from source, clone the repo and run the following:

python install

Getting Started

The package will need to be configured with your api key at a minimum and client id if you plan on utilizing SSO:

import workos

workos.api_key = sk_abdsomecharactersm284
workos.client_id = client_b27needthisforssotemxo

For your convenience, a client is available as an entry point for accessing the WorkOS feature set:

from workos import client

# URL to redirect a User to to initiate the WorkOS OAuth 2.0 workflow
        'stuff': 'from_the_original_request',
        'more_things': 'ill_get_it_all_back_when_oauth_is_complete',

# Get the WorkOSProfile for an authenticated User

Project details

Release history Release notifications | RSS feed

This version


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

workos-0.8.3.tar.gz (11.2 kB view hashes)

Uploaded Source

Built Distribution

workos-0.8.3-py3-none-any.whl (17.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page