Skip to main content

forward-sdk

Python SDK for the Forward Networks REST API.

A Forward Networks Field Integration. Built and maintained by the field team to make integration work easier. It is not a supported Forward Networks product: it carries no SLA, and issues are handled on a best-effort basis rather than through Forward Support.

Status: pre-release. The public API is not yet stable.

pip install forward-sdk
from forward_sdk import ForwardClient

with ForwardClient.from_env() as client:
    for network in client.networks.list():
        print(network.id, network.name)

    rows = client.nqe.query(
        "foreach device in network.devices select {name: device.name}",
        network_id="101",
    )

from_env reads FORWARD_URL, FORWARD_USERNAME, FORWARD_PASSWORD and the other variables listed under Configuration.

Authentication is HTTP basic. Use an API token: its access key is the username and its secret is the password. A login name and password also work, but are subject to two-factor authentication and account lockout.

What it covers

Every operation in Forward's API. Some groups, among them NQE, snapshots, networks, devices and device tags, are hand-written with curated names and behaviour such as waiting for a snapshot to finish processing. Most of the others are generated from the OpenAPI description Forward produces from its own server code.

Both a synchronous and an asynchronous client, with the same surface except that you close the asynchronous one with aclose() rather than close(). An asynchronous client belongs to the event loop that created it.

The client also has call(operation_id, ...), for an operation chosen at run time (streaming operations are refused); access(), which reports what your account may do from its roles, read through an unpublished endpoint and cached until refresh=True; version(); and request counters.

By default, requests to Forward's hosted service are paced (rate_limit_rpm="auto") and requests to self-hosted deployments are not. Where snapshot_id is optional and neither the call nor the client sets one, Forward uses the network's latest processed snapshot.

Notable

NQE first. Running a query, paging or streaming the results, diffing a query across snapshots, and publishing queries to the library are all first-class. Paging carries guard rails for the ways it can go wrong in production: a result set that ends early, a server that stops advancing, a query far larger than expected.

Typed, but tolerant. Responses are pydantic models. Unknown fields and unknown enum values are preserved rather than rejected, so a Forward release that adds either does not break an older SDK. NQE rows stay dict[str, Any], because a query's columns are defined by the query.

Honest about refusals. A missing licence, a feature absent from your deployment, and a role-based denial all arrive as the same status codes, so the SDK does not pretend to tell them apart. It gives you Forward's own explanation and a documented hint about what gates that operation.

Documentation

https://forwardnetworks.github.io/forward-python-sdk/

Requirements

Python 3.10 or newer.

Licence

Fair Core License 1.0 with an Apache 2.0 future licence (FCL-1.0-ALv2, see LICENSE). It is source-available, not open source: you can use, modify and redistribute the SDK for any purpose except a competing commercial product or service. You may not move, change, disable or circumvent license key functionality, or modify code the license key protects to use the protected functionality without a valid key or to remove that functionality. Each release becomes available under the Apache License 2.0 two years after it is published. Releases up to and including 0.1.41 remain available under the MIT License. See NOTICE.

Source

  • src/forward_sdk/__init__.py
  • src/forward_sdk/_sync/client.py
  • src/forward_sdk/_async/client.py
  • src/forward_sdk/config.py
  • pyproject.toml
  • LICENSE
  • NOTICE

Metadata

Release files for forward-sdk 0.1.43

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

Source distribution (sdist)

Source distribution for forward-sdk 0.1.43
File Size Uploaded Provenance Actions
forward_sdk-0.1.43.tar.gz 1.5 MB With provenance Details for forward_sdk-0.1.43.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for forward-sdk 0.1.43
File Interpreter ABI Platform Actions
forward_sdk-0.1.43-py3-none-any.whl Python 3 none any Details for forward_sdk-0.1.43-py3-none-any.whl

Total release size: 2.2 MB

Release files / forward_sdk-0.1.43.tar.gz

Download URL forward_sdk-0.1.43.tar.gz
Size 1.5 MB
Tags Source
SHA-256 checksum
How to use checksums
7373f8519bd440681736b205cb2ac443247a9fd0a3d0cf920008ef7b26f43934
BLAKE2b-256 checksum
How to use checksums
1066301e560dfb65599484f6bf4398fc8fba94affd3eb73614967ec29d9e2dca
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 26, 2026.

Transparency log

Release files / forward_sdk-0.1.43-py3-none-any.whl

Download URL forward_sdk-0.1.43-py3-none-any.whl
Size 732.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0d87be326e4ab00b653fbbd5711ea1f02aab1344545b04e3b0ecbf6409a7dee3
BLAKE2b-256 checksum
How to use checksums
61e8afa0146147078eb760d97d262381d1b228254827efce58cdbf92d44aa3cd
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 26, 2026.

Transparency log

Security for forward-sdk 0.1.43

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 forward_sdk-0.1.43.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 26, 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.

Release history Release notifications | RSS feed

This release

0.1.43 This release

2 release files Full provenance

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