Skip to main content

Async netbox library

Project description

AIO Netbox

An asyncio netbox library that conforms to any running netbox via it's OpenAPI spec

Installation

AIONetbox is distributed as a library intended to be included in other asyncio python projects. It has been developed on python 3.6+ though 3.8 is recommended.

pip install aionetbox

Usage

from aionetbox import AIONetbox

netbox = AIONetbox.from_openapi(
    url='http://localhost:8000',
    api_key='0123abcd'
)

sites = await netbox.dcim.dcim_sites_list()
my_site = await netbox.dcim.dcim_sites_read(id=2)

custom_field_sort = await netbox.dcim.dcim_regions_list(cf_sf_id='identifier')

Each module and method map to the swagger definition for netbox (/api/docs)

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

aionetbox-1.1.2.tar.gz (10.3 kB view details)

Uploaded Source

Built Distribution

aionetbox-1.1.2-py3-none-any.whl (22.3 kB view details)

Uploaded Python 3

File details

Details for the file aionetbox-1.1.2.tar.gz.

File metadata

  • Download URL: aionetbox-1.1.2.tar.gz
  • Upload date:
  • Size: 10.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.37.0 CPython/3.6.8

File hashes

Hashes for aionetbox-1.1.2.tar.gz
Algorithm Hash digest
SHA256 080691b8b1a0eb789d0bfead44b29b20d6d324378525b2484c9b85af91f6689c
MD5 f29ca1f4f2da8b7bf46b0598e6862f99
BLAKE2b-256 62a9c41a07c4a7035e6aee6d97547b38fca4265ef095d2cae6ca6420c1b0e0c7

See more details on using hashes here.

File details

Details for the file aionetbox-1.1.2-py3-none-any.whl.

File metadata

  • Download URL: aionetbox-1.1.2-py3-none-any.whl
  • Upload date:
  • Size: 22.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.37.0 CPython/3.6.8

File hashes

Hashes for aionetbox-1.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 91b8e6421bbe21aa9c59e90ca693707ab6a619811685159fe2a295bb2ff1c2f6
MD5 994ae11680980a90a1c758fdca8b230d
BLAKE2b-256 c1a9a31e7884e8a8e9921f928c4dac5c5614c7fe6837d1715d2cc318a9661227

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page