workos-python
Python 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 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
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)
Metadata
Release files for workos 0.8.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| workos-0.8.5.tar.gz | 11.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| workos-0.8.5-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 27.9 kB
Release files / workos-0.8.5.tar.gz
| Download URL | workos-0.8.5.tar.gz |
|---|---|
| Size | 11.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4accc665c12bac77b4dd3510411c306c46c2a39a15af403f7f03f6f85dfcecbd
|
|
BLAKE2b-256 checksum How to use checksums |
8e4857cba3899fa6c3dc1fa773f53c500b92f033df11548dd6a0017a3c7956af
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.7.0 requests/2.25.1 setuptools/51.0.0 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.9.1
|
Release files / workos-0.8.5-py3-none-any.whl
| Download URL | workos-0.8.5-py3-none-any.whl |
|---|---|
| Size | 16.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3aef13a694ef1521211a3b07d5f2ea3384404693ac8c464ac020ff6ea57e4b6f
|
|
BLAKE2b-256 checksum How to use checksums |
38f38507832ccfe989246808763164696abf558d2c4793b00a490ff3b9d781f1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.7.0 requests/2.25.1 setuptools/51.0.0 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.9.1
|