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.7.3.tar.gz (12.2 kB view details)

Uploaded Source

Built Distribution

aionetbox-1.7.3-py3-none-any.whl (23.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: aionetbox-1.7.3.tar.gz
  • Upload date:
  • Size: 12.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.5

File hashes

Hashes for aionetbox-1.7.3.tar.gz
Algorithm Hash digest
SHA256 ac8b5ac5d95205c32857c4aadec1e651b08b085f97a41d6fc523fdc30bd04152
MD5 81b38b9b43bb8631d68444b026184604
BLAKE2b-256 fc89bcf7fff8f1244b693d15ada3ec950844819b25499a292678e14ea9e3fa25

See more details on using hashes here.

File details

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

File metadata

  • Download URL: aionetbox-1.7.3-py3-none-any.whl
  • Upload date:
  • Size: 23.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.5

File hashes

Hashes for aionetbox-1.7.3-py3-none-any.whl
Algorithm Hash digest
SHA256 8803ee6c6e978640e6979deb5ccd2640a0cc7443de19e9a49b59e550843f8187
MD5 abffe03242ff7694225251b02d41059a
BLAKE2b-256 b05604dbb43337608f222efa3d8030ad1aeeb44e52ab795af66d6d38358c7e25

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