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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dc31924a9e632fd60e4195279ebd8adf1885c34c35fb9c9ebfdcc7098657fd59
|
|
| MD5 |
cdc4683bf8a814351b50a7995d5d44db
|
|
| BLAKE2b-256 |
c2edb01e335ded1e7aa331c91f875b53e042a2438297271426f410d565114c81
|
Provenance
The following attestation bundles were made for frontier_security-0.1.1.tar.gz:
Publisher:
publish-sdk.yml on Frontier-Security/platform
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
frontier_security-0.1.1.tar.gz -
Subject digest:
dc31924a9e632fd60e4195279ebd8adf1885c34c35fb9c9ebfdcc7098657fd59 - Sigstore transparency entry: 2039708523
- Sigstore integration time:
-
Permalink:
Frontier-Security/platform@3bb9722e81820b3f80c297463d60ed204e6aa844 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/Frontier-Security
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-sdk.yml@3bb9722e81820b3f80c297463d60ed204e6aa844 -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file frontier_security-0.1.1-py3-none-any.whl.
File metadata
- Download URL: frontier_security-0.1.1-py3-none-any.whl
- Upload date:
- Size: 8.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
25ff7a3f5f055e6dc375c53a620d5c7dd8e366d0ff0694e832e41966dfa88067
|
|
| MD5 |
f0afb1bd1ba1e0c86e8a7b98859a8d32
|
|
| BLAKE2b-256 |
760d340a15743ee1071eff7954c74eb02053f9215b112bd869dbc6600198bd73
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
frontier_security-0.1.1-py3-none-any.whl -
Subject digest:
25ff7a3f5f055e6dc375c53a620d5c7dd8e366d0ff0694e832e41966dfa88067 - Sigstore transparency entry: 2039708702
- Sigstore integration time:
-
Permalink:
Frontier-Security/platform@3bb9722e81820b3f80c297463d60ed204e6aa844 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/Frontier-Security
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-sdk.yml@3bb9722e81820b3f80c297463d60ed204e6aa844 -
Trigger Event:
workflow_dispatch
-
Statement type: