Skip to main content

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

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.8.4
File Size Uploaded Provenance Actions
workos-0.8.4.tar.gz 11.3 kB Without provenance Details for workos-0.8.4.tar.gz

Built distribution (wheel)

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

Total release size: 27.5 kB

Release files / workos-0.8.4.tar.gz

Download URL workos-0.8.4.tar.gz
Size 11.3 kB
Tags Source
SHA-256 checksum
How to use checksums
16ea063ab5de6b5f19979d11d5f38c82d4860d9a7747a184919ed1f8372a065b
BLAKE2b-256 checksum
How to use checksums
66640bd51df6e4b160494eb28a8073fd109d0dcf8b0f46719d1537df4a6a3069
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.56.2 CPython/3.8.2

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

Download URL workos-0.8.4-py3-none-any.whl
Size 16.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
928d406ae3947f388f49c90bcfab61a2e062e9e0e8935077bbb21153d6f4149e
BLAKE2b-256 checksum
How to use checksums
31f178fc6f9e216b94f047deeac89a483009cbf9f9b3cac6170aed7b5114e456
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.56.2 CPython/3.8.2

Security for workos 0.8.4

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