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

Uploaded CPython 3.10+Windows x86-64

overcast_sql-0.1.6-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.0 MB view details)

Uploaded CPython 3.10+manylinux: glibc 2.17+ x86-64

overcast_sql-0.1.6-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

File details

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

File metadata

  • Download URL: overcast_sql-0.1.6.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.6.tar.gz
Algorithm Hash digest
SHA256 109ed8631a0edbcd2f6fd052824aa7e8a31d579fd674ec0b93be73d4579bb038
MD5 6d024ca7a455cfe443db7368c826fcf3
BLAKE2b-256 98b891060e3f06071f6efd84b6e65be8cde1dda8331c4ca6c628acbf46d56e01

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for overcast_sql-0.1.6-cp310-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 b1190d6c1d27dfc6b91ee5dbff8fab0075098ec35049df4df4817d8771c36adb
MD5 65d2e01c8fa69bfac3d09a75dac27b25
BLAKE2b-256 3dca3ab26fa09833ec49630ddda59c8143efb25ed3812ff1b1374f999a311702

See more details on using hashes here.

Provenance

The following attestation bundles were made for overcast_sql-0.1.6-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.6-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for overcast_sql-0.1.6-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 f220f2addb6c13b71a24012816ddeddcb634359c55b1219c8b6529c56e04bd34
MD5 36ea839be12513319c1d23c172ea85ef
BLAKE2b-256 04cd609f092e8a7aad652323cbaa3b213343e22b3db48604a019db5d08d25f8d

See more details on using hashes here.

Provenance

The following attestation bundles were made for overcast_sql-0.1.6-cp310-abi3-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.

File details

Details for the file overcast_sql-0.1.6-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.6-cp310-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl
Algorithm Hash digest
SHA256 6b618b0fba90f6b496cf453633f8296a6d83cf8fd819797c5a0e2925eb0ffbad
MD5 b7d3085d5c1e28a37e157dcd73c2b5ec
BLAKE2b-256 68c37cb4f1fcecd67ccb681f03e02fcc7f0f38bceef0bd425b297d229c82c6a9

See more details on using hashes here.

Provenance

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

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