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

Uploaded Source

Built Distribution

aionetbox-1.7.1-py3-none-any.whl (23.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: aionetbox-1.7.1.tar.gz
  • Upload date:
  • Size: 10.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.6.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.8.5

File hashes

Hashes for aionetbox-1.7.1.tar.gz
Algorithm Hash digest
SHA256 f1e44d963b5276245992cc47729151573c6da3aca1ca4ec048c3cc23ab672d94
MD5 077bd6104a1d1b2f9d9a81fc26a15225
BLAKE2b-256 e9e357648f8506a49d43a034afd8971a4a570a3e725472590489e629f7fba61a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: aionetbox-1.7.1-py3-none-any.whl
  • Upload date:
  • Size: 23.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.6.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.8.5

File hashes

Hashes for aionetbox-1.7.1-py3-none-any.whl
Algorithm Hash digest
SHA256 cdd655b86e656805e83a374897ebadd8d24714a68c10f423bbe9586644277dc6
MD5 19bb23637e0b2100dbbec14818a23fec
BLAKE2b-256 1df4faad8f90a0ca1e70e510d86f72eb584c353935fd749c3c5a0594eb577459

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