Skip to main content

Rust-backed Okta SQL querying for Python

Project description

overcast-sql

Python bindings for querying Okta data with SQL, powered by a Rust engine.

Installation

pip install overcast-sql

Quick start

from overcast_sql import Client

client = Client(
    base_url="https://your-org.okta.com",
    ssws_token="your-ssws-token",
)

rows = client.query("SELECT id, status FROM okta_users LIMIT 5")
print(rows)

Example: applications assigned per user

Runnable in this notebook.

df_direct_user_apps = client.query(
    "SELECT "
    "  user.login AS user_login, "
    "  application.label AS app_label, "
    "  app_user.status AS assignment_status "
    "FROM okta_app_users app_user "
    "JOIN okta_users user ON user.id = app_user.id "
    "JOIN okta_applications application ON application.id = app_user.app_id "
    "ORDER BY user.login, application.label"
)
print(df_direct_user_apps.head(20))

Supported formats:

  • json
  • jsonl
  • table
  • pandas

Using a .env file

Credential loading is handled by your application, not the library. Example:

import os
from dotenv import load_dotenv
from overcast_sql import Client

load_dotenv()

client = Client(
    base_url=os.environ["OKTA_BASE_URL"],
    ssws_token=os.environ["OKTA_SSWS_TOKEN"],
)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

overcast_sql-0.1.2.tar.gz (62.9 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

overcast_sql-0.1.2-cp310-abi3-win_amd64.whl (2.5 MB view details)

Uploaded CPython 3.10+Windows x86-64

overcast_sql-0.1.2-cp310-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl (5.4 MB view details)

Uploaded CPython 3.10+macOS 10.12+ universal2 (ARM64, x86-64)macOS 10.12+ x86-64macOS 11.0+ ARM64

overcast_sql-0.1.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.0 MB view details)

Uploaded CPython 3.8manylinux: glibc 2.17+ x86-64

File details

Details for the file overcast_sql-0.1.2.tar.gz.

File metadata

  • Download URL: overcast_sql-0.1.2.tar.gz
  • Upload date:
  • Size: 62.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for overcast_sql-0.1.2.tar.gz
Algorithm Hash digest
SHA256 b2002953af365920df08e242d677c8ae77836fd52074f23bcd3adcfb12a665b5
MD5 7cef94c4c3c9fc80906459d9b7301118
BLAKE2b-256 c791dc67a10b54e0e287e449476864a88e79d6e20e510cd3fdb8540072de5e4d

See more details on using hashes here.

Provenance

The following attestation bundles were made for overcast_sql-0.1.2.tar.gz:

Publisher: workflow.yml on Evols/overcast

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file overcast_sql-0.1.2-cp310-abi3-win_amd64.whl.

File metadata

File hashes

Hashes for overcast_sql-0.1.2-cp310-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 92f3cef50a48d93a7e793e80b50b3adb55a3dd76c0cabc2f7efa063693a4ba12
MD5 27c0454254a087d338e01eff299075f1
BLAKE2b-256 2fe082561831f65b067b174b8020c30fc4f75f8e6c825a364afb580908c9b066

See more details on using hashes here.

Provenance

The following attestation bundles were made for overcast_sql-0.1.2-cp310-abi3-win_amd64.whl:

Publisher: workflow.yml on Evols/overcast

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file overcast_sql-0.1.2-cp310-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl.

File metadata

File hashes

Hashes for overcast_sql-0.1.2-cp310-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl
Algorithm Hash digest
SHA256 413151b00232a8f055cea71655c14527331a715a3646121658959738c1a41f82
MD5 5bd9c38518f0fe43327dc65c5a489d31
BLAKE2b-256 af761edb5326c4cad37ed0e1b01bcddc8381a9db45321dadad42da9ad9b8aec0

See more details on using hashes here.

Provenance

The following attestation bundles were made for overcast_sql-0.1.2-cp310-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl:

Publisher: workflow.yml on Evols/overcast

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file overcast_sql-0.1.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for overcast_sql-0.1.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 45bbf1d33d03ad6ff46fb13b47c7cdecfa14f3df8d53775828cf7019ef2c9dd8
MD5 06c89d19ca20750c395e7b13fb473ed7
BLAKE2b-256 7b4640a91d62edbadc9261a5acb7187f3b94f37a9ec250fac2e52952c5fc0330

See more details on using hashes here.

Provenance

The following attestation bundles were made for overcast_sql-0.1.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: workflow.yml on Evols/overcast

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page