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.8.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.8-py3-none-any.whl (53.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: aiopnsense-1.0.8.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.8.tar.gz
Algorithm Hash digest
SHA256 6423c9a26cf793e8d1ca5ef18a8a3cf8709353151d48d030c67c15fec8d278cc
MD5 df9976eb6f4005e9104c8b796fe0c64c
BLAKE2b-256 1a9014f5b9d088dd45527095c3d33a76289f2b9a2b05081a127c6010600fe705

See more details on using hashes here.

Provenance

The following attestation bundles were made for aiopnsense-1.0.8.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.8-py3-none-any.whl.

File metadata

  • Download URL: aiopnsense-1.0.8-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.8-py3-none-any.whl
Algorithm Hash digest
SHA256 4737211cbd2f1ef994b72e895192547b20222da382e15959c9f29da1bf198816
MD5 7bd7cbec9ae2b2d29236265024288541
BLAKE2b-256 92ca834bf753483e76e01a1633811bfd443ad648bca1a54a78c2c2782bd8c138

See more details on using hashes here.

Provenance

The following attestation bundles were made for aiopnsense-1.0.8-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