Async Python client library for OPNsense
Project description
aiopnsense
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 NATmethods will return empty data.
- For firmware < 26.1.1, the
Documentation
- Read the Docs: https://aiopnsense.readthedocs.io
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3e9bfc323f95b89dfa1bbfe93b4435890d57f796de14850918ea9c8d9561e63d
|
|
| MD5 |
c10f8d37f18654795bc85e1ddc26d515
|
|
| BLAKE2b-256 |
be865023afb75aff284ddf08f8beb15dbfa192cdc8814154cbb7cc5c214ac359
|
Provenance
The following attestation bundles were made for aiopnsense-1.0.7.tar.gz:
Publisher:
release.yml on Snuffy2/aiopnsense
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
aiopnsense-1.0.7.tar.gz -
Subject digest:
3e9bfc323f95b89dfa1bbfe93b4435890d57f796de14850918ea9c8d9561e63d - Sigstore transparency entry: 1239490696
- Sigstore integration time:
-
Permalink:
Snuffy2/aiopnsense@e021d6b765f839ab64e0c64eeba26bd6b48ff101 -
Branch / Tag:
refs/tags/v1.0.7 - Owner: https://github.com/Snuffy2
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@e021d6b765f839ab64e0c64eeba26bd6b48ff101 -
Trigger Event:
release
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a0b785b2a4dcbac82dde9a91609ee97917245ce787c51371751e755466814685
|
|
| MD5 |
65c768da7b7cbc445872428d84f340cd
|
|
| BLAKE2b-256 |
145d0f61fdb3d0bf4863b980b8ef2d28a22d40ff92c4d8c27ece6531bba05280
|
Provenance
The following attestation bundles were made for aiopnsense-1.0.7-py3-none-any.whl:
Publisher:
release.yml on Snuffy2/aiopnsense
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
aiopnsense-1.0.7-py3-none-any.whl -
Subject digest:
a0b785b2a4dcbac82dde9a91609ee97917245ce787c51371751e755466814685 - Sigstore transparency entry: 1239490700
- Sigstore integration time:
-
Permalink:
Snuffy2/aiopnsense@e021d6b765f839ab64e0c64eeba26bd6b48ff101 -
Branch / Tag:
refs/tags/v1.0.7 - Owner: https://github.com/Snuffy2
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@e021d6b765f839ab64e0c64eeba26bd6b48ff101 -
Trigger Event:
release
-
Statement type: