Skip to main content

Async Python client library for OPNsense

Project description

aiopnsense

PyPI Downloads GitHub Release GitHub Release Date GitHub Activity Coverage Documentation License

aiopnsense is an async Python client library for OPNsense.

What this library does

aiopnsense wraps supported OPNsense REST endpoints behind a single async client, OPNsenseClient. It is designed for applications that need to query router state or trigger supported OPNsense actions without manually building HTTP requests.

The client currently includes helpers for:

  • system information, notices, certificates, CARP, Wake-on-LAN, reboot, and interface reloads
  • firmware version checks, update status, and upgrade actions
  • interface, gateway, CPU, memory, filesystem, and temperature telemetry
  • DHCP lease and ARP table access
  • firewall rules, NAT rules, alias toggling, and state killing
  • service status lookup and service start/stop/restart operations
  • Unbound blocklist management
  • OpenVPN and WireGuard status plus VPN instance toggling
  • vnStat metrics, captive portal vouchers, and speed test data

Requirements

  • Requires OPNsense Firmware >= 25.1

  • Recommended OPNsense Firmware >= 26.1.1

    • For firmware < 26.1.1, the Firewall and NAT methods will return empty data.

Documentation

Origin and Purpose

aiopnsense was initially extracted from the hass-opnsense integration. It is primarily for use as an external dependency by Home Assistant for its OPNsense Integration.

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

aiopnsense-1.0.7.tar.gz (88.6 kB view details)

Uploaded Source

Built Distribution

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

aiopnsense-1.0.7-py3-none-any.whl (53.6 kB view details)

Uploaded Python 3

File details

Details for the file aiopnsense-1.0.7.tar.gz.

File metadata

  • Download URL: aiopnsense-1.0.7.tar.gz
  • Upload date:
  • Size: 88.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for aiopnsense-1.0.7.tar.gz
Algorithm Hash digest
SHA256 3e9bfc323f95b89dfa1bbfe93b4435890d57f796de14850918ea9c8d9561e63d
MD5 c10f8d37f18654795bc85e1ddc26d515
BLAKE2b-256 be865023afb75aff284ddf08f8beb15dbfa192cdc8814154cbb7cc5c214ac359

See more details on using hashes here.

Provenance

The following attestation bundles were made for aiopnsense-1.0.7.tar.gz:

Publisher: release.yml on Snuffy2/aiopnsense

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

File details

Details for the file aiopnsense-1.0.7-py3-none-any.whl.

File metadata

  • Download URL: aiopnsense-1.0.7-py3-none-any.whl
  • Upload date:
  • Size: 53.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for aiopnsense-1.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 a0b785b2a4dcbac82dde9a91609ee97917245ce787c51371751e755466814685
MD5 65c768da7b7cbc445872428d84f340cd
BLAKE2b-256 145d0f61fdb3d0bf4863b980b8ef2d28a22d40ff92c4d8c27ece6531bba05280

See more details on using hashes here.

Provenance

The following attestation bundles were made for aiopnsense-1.0.7-py3-none-any.whl:

Publisher: release.yml on Snuffy2/aiopnsense

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