Skip to main content

Python SDK for the Frontier Security platform API

Project description

Frontier Security Python SDK

Python client for the Frontier Security platform API.

Installation

pip install frontier-security

Usage

from frontier_security import FrontierSecurity

client = FrontierSecurity(api_key="sk_live_...")

# Verify your API key is valid
identity = client.verify_auth()
print(identity.tenant_id)
print(identity.permissions)

Or use the FRONTIER_API_KEY environment variable:

client = FrontierSecurity()  # reads from FRONTIER_API_KEY

The client supports context manager usage:

with FrontierSecurity(api_key="sk_live_...") as client:
    identity = client.verify_auth()

Retries

Connection errors and transient HTTP responses (408, 429, and 5xx) are retried automatically with exponential backoff, honoring the Retry-After header when present. 409 Conflict is treated as a deterministic error and is not retried. The default is 2 retries; configure it with max_retries (set to 0 to disable):

client = FrontierSecurity(api_key="sk_live_...", max_retries=5)

Requirements

  • Python 3.10+

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

frontier_security-0.1.1.tar.gz (49.1 kB view details)

Uploaded Source

Built Distribution

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

frontier_security-0.1.1-py3-none-any.whl (8.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: frontier_security-0.1.1.tar.gz
  • Upload date:
  • Size: 49.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for frontier_security-0.1.1.tar.gz
Algorithm Hash digest
SHA256 dc31924a9e632fd60e4195279ebd8adf1885c34c35fb9c9ebfdcc7098657fd59
MD5 cdc4683bf8a814351b50a7995d5d44db
BLAKE2b-256 c2edb01e335ded1e7aa331c91f875b53e042a2438297271426f410d565114c81

See more details on using hashes here.

Provenance

The following attestation bundles were made for frontier_security-0.1.1.tar.gz:

Publisher: publish-sdk.yml on Frontier-Security/platform

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

File details

Details for the file frontier_security-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for frontier_security-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 25ff7a3f5f055e6dc375c53a620d5c7dd8e366d0ff0694e832e41966dfa88067
MD5 f0afb1bd1ba1e0c86e8a7b98859a8d32
BLAKE2b-256 760d340a15743ee1071eff7954c74eb02053f9215b112bd869dbc6600198bd73

See more details on using hashes here.

Provenance

The following attestation bundles were made for frontier_security-0.1.1-py3-none-any.whl:

Publisher: publish-sdk.yml on Frontier-Security/platform

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