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",
    )

Authentication is HTTP basic with an API token: its access key is the username and its secret is the password.

What it covers

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

Both a synchronous and an asynchronous client, with identical surfaces.

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

MIT.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

forward_sdk-0.1.6.tar.gz (508.1 kB view details)

Uploaded Source

Built Distribution

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

forward_sdk-0.1.6-py3-none-any.whl (255.9 kB view details)

Uploaded Python 3

File details

Details for the file forward_sdk-0.1.6.tar.gz.

File metadata

  • Download URL: forward_sdk-0.1.6.tar.gz
  • Upload date:
  • Size: 508.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for forward_sdk-0.1.6.tar.gz
Algorithm Hash digest
SHA256 8bcc80e66ddde864abe7c3b90bdb71da1e7b6bf8e4f9607796229025a0edf7cb
MD5 ee854d8c64a6b4178580918a3a5e9f36
BLAKE2b-256 fd3128ace8d6cb5cce0ae2f35f47e983542ce32344d83bf75f4bdee0e6238a90

See more details on using hashes here.

Provenance

The following attestation bundles were made for forward_sdk-0.1.6.tar.gz:

Publisher: release.yml on forwardnetworks/forward-python-sdk

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

File details

Details for the file forward_sdk-0.1.6-py3-none-any.whl.

File metadata

  • Download URL: forward_sdk-0.1.6-py3-none-any.whl
  • Upload date:
  • Size: 255.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for forward_sdk-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 f0a4b91e097374a1c5a1dc17dd3c2f12ca0840426c0cb8b55f0f1f37e0e4bfd0
MD5 f8f2cbc04b03f7b77327f0b27cad5f90
BLAKE2b-256 8d0c40223f5ea9fa0528659dc69c7d1f7e1274ebdfefd7b54b410f6d02676b25

See more details on using hashes here.

Provenance

The following attestation bundles were made for forward_sdk-0.1.6-py3-none-any.whl:

Publisher: release.yml on forwardnetworks/forward-python-sdk

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

Release history Release notifications | RSS feed

0.1.14

2 files

0.1.13

2 files

0.1.12

2 files

0.1.11

2 files

0.1.10

2 files

0.1.9

2 files

0.1.8

2 files

0.1.7

2 files

This release

0.1.6 This release

2 files

0.1.5

2 files

0.1.4

2 files

0.1.3

2 files

0.1.2

2 files

0.1.1

2 files

0.1.0

2 files

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