Async Python client for the OPNsense API
Project description
aioopnsense
Async Python client for the OPNsense API, compatible with OPNsense 25.7+.
Uses the snake_case API endpoints introduced in OPNsense 25.7.
Installation
pip install aioopnsense
Usage
import aiohttp
from aioopnsense import OPNsenseClient
async with aiohttp.ClientSession() as session:
client = OPNsenseClient(
url="https://opnsense.local/api",
api_key="your_api_key",
api_secret="your_api_secret",
session=session,
)
# Get ARP table
arp_table = await client.get_arp()
# Get network interfaces
interfaces = await client.get_interfaces()
Supported Endpoints
GET /api/diagnostics/interface/get_arp- ARP tableGET /api/diagnostics/networkinsight/get_interfaces- Network interfaces
License
Apache-2.0
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 aioopnsense-0.1.0.tar.gz.
File metadata
- Download URL: aioopnsense-0.1.0.tar.gz
- Upload date:
- Size: 8.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
27e7f431f0d73edfe1c527ed194e6d0264ae37f8dc8d9cce9e9fffbfe44d485c
|
|
| MD5 |
d53a4a555249014bcdc68e11196e5005
|
|
| BLAKE2b-256 |
b39df732b10ddb822e67ea7fe69094a813633b1027a1e49a11814028798b3097
|
Provenance
The following attestation bundles were made for aioopnsense-0.1.0.tar.gz:
Publisher:
publish.yml on kisst/aioopnsense
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
aioopnsense-0.1.0.tar.gz -
Subject digest:
27e7f431f0d73edfe1c527ed194e6d0264ae37f8dc8d9cce9e9fffbfe44d485c - Sigstore transparency entry: 1193995727
- Sigstore integration time:
-
Permalink:
kisst/aioopnsense@17c9fdd965a491aafa924c89ae6627668db2c6e3 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/kisst
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@17c9fdd965a491aafa924c89ae6627668db2c6e3 -
Trigger Event:
release
-
Statement type:
File details
Details for the file aioopnsense-0.1.0-py3-none-any.whl.
File metadata
- Download URL: aioopnsense-0.1.0-py3-none-any.whl
- Upload date:
- Size: 7.8 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 |
3e53d874c22000fb48d429a28a70db6c6c276a0c4d135c60c3192d9798220f0e
|
|
| MD5 |
57b2610c04cd74b3a673284db7bd97e2
|
|
| BLAKE2b-256 |
e4806ded4f9f89b32e1937d8010ec445c7428fd59252a3479fcb379f4fa0691f
|
Provenance
The following attestation bundles were made for aioopnsense-0.1.0-py3-none-any.whl:
Publisher:
publish.yml on kisst/aioopnsense
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
aioopnsense-0.1.0-py3-none-any.whl -
Subject digest:
3e53d874c22000fb48d429a28a70db6c6c276a0c4d135c60c3192d9798220f0e - Sigstore transparency entry: 1193995781
- Sigstore integration time:
-
Permalink:
kisst/aioopnsense@17c9fdd965a491aafa924c89ae6627668db2c6e3 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/kisst
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@17c9fdd965a491aafa924c89ae6627668db2c6e3 -
Trigger Event:
release
-
Statement type: