Skip to main content

Forra SDK Package

Helper python package to interact with the Forra platform.

Installation

pip install forrasdk

The default installation includes the API client and CLI without installing openpyxl. To use forrasdk.spreadsheets or forrasdk.shared.spreadsheets, install the optional spreadsheet dependencies:

pip install "forrasdk[spreadsheets]"

Usage

from forrasdk import ForraAPI

forra = ForraAPI(base_url="your_forra_base_url", api_access_token="you_api_access_token")

Retry Logic

The SDK automatically retries failed API requests with exponential backoff to handle transient failures. This improves reliability when dealing with network issues or temporary server problems.

Default Behavior

  • Max attempts: 3 (initial request + 2 retries)
  • Wait time: Exponential backoff with multiplier=1, min=4s, max=10s
  • Retry on:
    • Rate limiting (429)
    • Server errors (500, 502, 503, 504)
    • Network errors (ConnectionError, Timeout)
  • Does NOT retry on:
    • Client errors (400, 401, 403, 404, etc.)
    • Successful responses

How It Works

All HTTP methods (GET, POST, PUT, DELETE, PATCH) in the SDK automatically retry on transient failures:

from forrasdk import ForraAPI

forra = ForraAPI(base_url="your_url", api_access_token="your_token")

# This request will automatically retry up to 3 times on 5xx errors
response = forra.chat.completion(messages="Hello!")

The retry logic is transparent - you don't need to change your code. If a request fails with a retryable error, the SDK will:

  1. Wait with exponential backoff (4s, then 8s, then 10s max)
  2. Retry the request
  3. Return the result if successful, or raise the exception after exhausting retries

Metadata

Release files for forrasdk 0.3.20

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for forrasdk 0.3.20
File Size Uploaded Provenance Actions
forrasdk-0.3.20.tar.gz 432.3 kB With provenance Details for forrasdk-0.3.20.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for forrasdk 0.3.20
File Interpreter ABI Platform Actions
forrasdk-0.3.20-py3-none-any.whl Python 3 none any Details for forrasdk-0.3.20-py3-none-any.whl

Total release size: 954.8 kB

Release files / forrasdk-0.3.20.tar.gz

Download URL forrasdk-0.3.20.tar.gz
Size 432.3 kB
Tags Source
SHA-256 checksum
How to use checksums
a228f384fdb8df1847dadcf480d5bcd461f505d6c1e05f031f22b06e2899dd67
BLAKE2b-256 checksum
How to use checksums
e0de86bd109db8f5a5a415190a8efaef701142218af5fd13ad4ef26ef2d9dcd5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 6, 2026.

Transparency log

Release files / forrasdk-0.3.20-py3-none-any.whl

Download URL forrasdk-0.3.20-py3-none-any.whl
Size 522.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
efe9478bbed57dc72b7ae5efe36105e81539accc939132250b3528ea5746ae48
BLAKE2b-256 checksum
How to use checksums
cf73dc69c1fafc02dca04bce8f4170d9b275c6f21956011b6c1f4c1b54c91d06
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 6, 2026.

Transparency log

Security for forrasdk 0.3.20

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for forrasdk-0.3.20.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 6, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page