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.4.tar.gz
(22.8 kB
view details)
Built Distribution
aionetbox-1.7.4-py3-none-any.whl
(23.7 kB
view details)
File details
Details for the file aionetbox-1.7.4.tar.gz
.
File metadata
- Download URL: aionetbox-1.7.4.tar.gz
- Upload date:
- Size: 22.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0aa35f4885fe6da99cb128076783432103deec44f79ab4d918e86b3bd3fb13d8 |
|
MD5 | 50a238185f60d1a194d76b9eee76f130 |
|
BLAKE2b-256 | b05bdd3b720e7d9e110676f7871395bd7d2c5988c4d988de15ffeac315e165cd |
File details
Details for the file aionetbox-1.7.4-py3-none-any.whl
.
File metadata
- Download URL: aionetbox-1.7.4-py3-none-any.whl
- Upload date:
- Size: 23.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 17852e4910b3e4552d66936e7193ccb436d960b9f72b516424c68792672c2a70 |
|
MD5 | 4d0cb0cc3041d62191879d8ac4169974 |
|
BLAKE2b-256 | 9062bbffd2ebae762911f6e442feba10cfd3e1a510e02973448c1f49dd86188e |