Skip to main content

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 table
  • GET /api/diagnostics/networkinsight/get_interfaces - Network interfaces

License

Apache-2.0

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

aioopnsense-0.1.0.tar.gz (8.0 kB view details)

Uploaded Source

Built Distribution

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

aioopnsense-0.1.0-py3-none-any.whl (7.8 kB view details)

Uploaded Python 3

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

Hashes for aioopnsense-0.1.0.tar.gz
Algorithm Hash digest
SHA256 27e7f431f0d73edfe1c527ed194e6d0264ae37f8dc8d9cce9e9fffbfe44d485c
MD5 d53a4a555249014bcdc68e11196e5005
BLAKE2b-256 b39df732b10ddb822e67ea7fe69094a813633b1027a1e49a11814028798b3097

See more details on using hashes here.

Provenance

The following attestation bundles were made for aioopnsense-0.1.0.tar.gz:

Publisher: publish.yml on kisst/aioopnsense

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

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

Hashes for aioopnsense-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3e53d874c22000fb48d429a28a70db6c6c276a0c4d135c60c3192d9798220f0e
MD5 57b2610c04cd74b3a673284db7bd97e2
BLAKE2b-256 e4806ded4f9f89b32e1937d8010ec445c7428fd59252a3479fcb379f4fa0691f

See more details on using hashes here.

Provenance

The following attestation bundles were made for aioopnsense-0.1.0-py3-none-any.whl:

Publisher: publish.yml on kisst/aioopnsense

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