WorkOS Python Client
Project description
workos-python
Pyhon SDK to conveniently access the WorkOS API.
Installation
To install from PyPi, run the following:
pip install workos
To install from source, clone the repo and run the following:
python setup.py install
Getting Started
The package will need to be configured with your api key at a minimum and project id if you plan on utilizing SSO:
import workos
workos.api_key = sk_abdsomecharactersm284
workos.project_id = project_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
client.sso.get_authorization_url(
domain='customer-domain.com',
redirect_uri='my-domain.com/auth/callback',
state={
'stuff': 'from_the_original_request',
'more_things': 'ill_get_it_all_back_when_oauth_is_complete',
}
)
# Get the WorkOSProfile for an authenticated User
client.get_profile(oauth_code)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file workos-0.4.1.tar.gz.
File metadata
- Download URL: workos-0.4.1.tar.gz
- Upload date:
- Size: 9.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.24.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.8.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
64f3de40bd1801cc8b00e1fcbdfc9da710e51efc52c701757f5cc6b153a0a0ab
|
|
| MD5 |
9b9b32d3454c741efb663afec95b4db3
|
|
| BLAKE2b-256 |
162708c18833127d33c311c3cafde93be47e5eaf5f89b475223079b1d887648a
|
File details
Details for the file workos-0.4.1-py3-none-any.whl.
File metadata
- Download URL: workos-0.4.1-py3-none-any.whl
- Upload date:
- Size: 13.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.24.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.8.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bce1355368959e1d7d60823e5f8798f7bcb52442cfa746d39f12a887bb843cca
|
|
| MD5 |
5665562f37a61b73627faaab276a82b9
|
|
| BLAKE2b-256 |
fe391bfa66dda54a5db4d49b5a765e9fd0043dc2f279160de610511666aecf82
|