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
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
aionetbox-1.7.0.tar.gz
(10.0 kB
view hashes)
Built Distribution
aionetbox-1.7.0-py3-none-any.whl
(23.3 kB
view hashes)
Close
Hashes for aionetbox-1.7.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 97e046b548fbbcd8dd3c4c772945175cdce6f4b4e17e83ae8e514fdd051f8deb |
|
MD5 | 2a3d253250d4fbd6853bb45fbc8343f1 |
|
BLAKE2b-256 | dfb9aecd773850a70267b802678233724d225530ef08dcb9818eb66ba5fa894c |