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.4.tar.gz (63.5 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.4-cp310-abi3-win_amd64.whl (2.5 MB view details)

Uploaded CPython 3.10+Windows x86-64

overcast_sql-0.1.4-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.4-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.4.tar.gz.

File metadata

  • Download URL: overcast_sql-0.1.4.tar.gz
  • Upload date:
  • Size: 63.5 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.4.tar.gz
Algorithm Hash digest
SHA256 1a7e0578799579fd5cb4a0ccbc16f8b4f26312f49340e5936ff08b00fe269108
MD5 763565a3e1e5de5480b11e21d40b779a
BLAKE2b-256 70f28ab6c8d13493141cc377634298a1d3b3800aa1005a66671d05222a36791f

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for overcast_sql-0.1.4-cp310-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 7d36a1a899a586477c9af900e9cf7bf599e5c7d6835765c2ec82d3ca4dfae6bc
MD5 6140a81bb31cf104d81031532b8ab065
BLAKE2b-256 294c9db390494ae3c3d760b9e0c5874623f2564298987a64b54220ce4c512d29

See more details on using hashes here.

Provenance

The following attestation bundles were made for overcast_sql-0.1.4-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.4-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.4-cp310-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl
Algorithm Hash digest
SHA256 177a742046fde1d4718d9a0aae972e116a6eb2e7e51f21fcc29d1e794f20ba84
MD5 0fa58b4915555990fe53fa19492d3856
BLAKE2b-256 e968bfce23e9522984de43dbc90af2fc9f66d4705ae418c1b5cc657cba348ce1

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for overcast_sql-0.1.4-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 d3097a2b94d149941a6890ce2bb0b25ff8e003a2f8f0cc17b4fbd885a3786ea6
MD5 bb3c849fd0d2a407742c3bae211cffd7
BLAKE2b-256 eeafc77ca073add903748f4d9fc82ec1be52939ffd8f6cc2cc82e12152747c3a

See more details on using hashes here.

Provenance

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