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.3.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.3-cp310-abi3-win_amd64.whl (2.5 MB view details)

Uploaded CPython 3.10+Windows x86-64

overcast_sql-0.1.3-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.3-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.3.tar.gz.

File metadata

  • Download URL: overcast_sql-0.1.3.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.3.tar.gz
Algorithm Hash digest
SHA256 fac30fbb7622434aa89e2670016a5a8b54377c2de7c3419f513a1e9dd1a58104
MD5 ad2e6598b1efbe5c1a2bdfd052c4109c
BLAKE2b-256 a5c436c9f643bd04edc51d2c06aa8750fa9b8f625b56a988a0ff2f4f66736bfe

See more details on using hashes here.

Provenance

The following attestation bundles were made for overcast_sql-0.1.3.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.3-cp310-abi3-win_amd64.whl.

File metadata

File hashes

Hashes for overcast_sql-0.1.3-cp310-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 5cc5550ea0b2266e95be6856baf3f7908bfa5761216fdac48dae9ed224377d22
MD5 d68a937c943917af6144aeb3e21a39d8
BLAKE2b-256 4b513b2bacc96b16382b1eba84e1cadec59b2c70bdf4c1df97e948be2bf66461

See more details on using hashes here.

Provenance

The following attestation bundles were made for overcast_sql-0.1.3-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.3-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.3-cp310-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl
Algorithm Hash digest
SHA256 e73b7384bcf5642bd4ad5c982fc0cb5f342203ad08163ee6b4f63c0e48f48359
MD5 89bcec257f3696a18280837cb611f672
BLAKE2b-256 c0041f70a73097715e7279edfcd4ba7816b42f620dbda6663283b3f20e2629d2

See more details on using hashes here.

Provenance

The following attestation bundles were made for overcast_sql-0.1.3-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.3-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for overcast_sql-0.1.3-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 ad714e9d5197e945fad07e34e6dd07a2ccfd9160141a939714ab81a22daafea3
MD5 5ed7b8ff329be0d37da4019b5750f706
BLAKE2b-256 a5138d27336ead2c305260a88a3771d103d6d00ee8daf1b83c55f76a80f94df4

See more details on using hashes here.

Provenance

The following attestation bundles were made for overcast_sql-0.1.3-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