Skip to main content

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.7.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for workos 0.7.0
File Size Uploaded Provenance Actions
workos-0.7.0.tar.gz 10.8 kB Without provenance Details for workos-0.7.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for workos 0.7.0
File Interpreter ABI Platform Actions
workos-0.7.0-py3-none-any.whl Python 3 none any Details for workos-0.7.0-py3-none-any.whl

Total release size: 26.2 kB

Release files / workos-0.7.0.tar.gz

Download URL workos-0.7.0.tar.gz
Size 10.8 kB
Tags Source
SHA-256 checksum
How to use checksums
ef6f788a625d8416bb90ee25ed6ad26ec125371dc83d3ded091a57ee944d543d
BLAKE2b-256 checksum
How to use checksums
da8c770174e40f6968f06497977664667d0e68717beec1d9861ac956ebcfc396
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.49.0 CPython/3.8.2

Release files / workos-0.7.0-py3-none-any.whl

Download URL workos-0.7.0-py3-none-any.whl
Size 15.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
52d4182d70ce7dfff131fd1a01bb33c6ece2067c9a63f4ae3326bee05e476323
BLAKE2b-256 checksum
How to use checksums
34ed50163885265976ede5be90ed5b91af5066cb1a174379b1cb6e81391367c0
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.49.0 CPython/3.8.2

Security for workos 0.7.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.7.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page