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.3.0.tar.gz
(9.3 kB
view hashes)
Built Distribution
aionetbox-1.3.0-py3-none-any.whl
(22.6 kB
view hashes)
Close
Hashes for aionetbox-1.3.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7e3b232b15721fcc5b504453575e5c8a5fae7b9076cd000dc958c32d2c3c193f |
|
MD5 | a9469a3f157271d315c325540db65831 |
|
BLAKE2b-256 | 4d800bed350ca680cbeb6c732bbe0022ca5c959aa1e0898a2898a462664d6cc6 |