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)
Metadata
Release files for workos 0.4.2
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.4.2.tar.gz | 9.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| workos-0.4.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 23.1 kB
Release files / workos-0.4.2.tar.gz
| Download URL | workos-0.4.2.tar.gz |
|---|---|
| Size | 9.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fc5d685e20c2d27ea2c809c3c51519fdc9bbee51ff5d3cbdae2cbb18896cc152
|
|
BLAKE2b-256 checksum How to use checksums |
470552c74abcbadf0d77d2f802fea3b65f04f1ab8b46d82591440f42fda1babc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / workos-0.4.2-py3-none-any.whl
| Download URL | workos-0.4.2-py3-none-any.whl |
|---|---|
| Size | 13.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1541de8e208a552cbc9c3690af0f75e7e4cc9d6a8c119147bcbee4d5706b37e8
|
|
BLAKE2b-256 checksum How to use checksums |
56fb3b93eca468dc09cb80d2f8dace0908d946a8e87c4fd760eee552eee97bcb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|