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

Uploaded CPython 3.10+Windows x86-64

overcast_sql-0.1.1-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.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.9 MB view details)

Uploaded CPython 3.8manylinux: glibc 2.17+ x86-64

File details

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

File metadata

  • Download URL: overcast_sql-0.1.1.tar.gz
  • Upload date:
  • Size: 62.8 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.1.tar.gz
Algorithm Hash digest
SHA256 b839411f1bd362e3582f9d4a6ec631569270d3e98397c69320a31dd35bed331c
MD5 96f6c918fba1b6bc89c761ec6ffb8056
BLAKE2b-256 d4004c7cc4886f4ed678e4f40036c3665c0c73ab4992b0d5ec18519471b7fd29

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for overcast_sql-0.1.1-cp310-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 5d183da5075686739094054165c805a49e3b78d1e1e04739ac883cd6c02cd20f
MD5 efe53ca06240cba6cab80d6ee31618c7
BLAKE2b-256 ae77c70638a68f0d711442e6d17d28ab26fc5da4d150d034c09b974a40b48934

See more details on using hashes here.

Provenance

The following attestation bundles were made for overcast_sql-0.1.1-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.1-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.1-cp310-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl
Algorithm Hash digest
SHA256 4a1616e93d005dca0ec10a4ab6f6cb2e89e666b777ba63ab01380ece78292f70
MD5 6c2a5763d82f526b89262f4500717117
BLAKE2b-256 8e4f7d25d5141d95ae64224075528fec6fe9c806cf320435b787d8328b81cb4b

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for overcast_sql-0.1.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 cbdc3f89ed83f7bc7d44126d1122bbc0ab2846d9fafeb5ea3620c06bb21bd550
MD5 2cc272c6807a95ae653e3664f100b0a7
BLAKE2b-256 2028b69387c883f250bea3a0d5cd31735657d3ed6c8c2751d1c88538b3d4e41f

See more details on using hashes here.

Provenance

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