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.0.1.tar.gz
(9.6 kB
view details)
Built Distribution
aionetbox-1.0.1-py3-none-any.whl
(21.1 kB
view details)
File details
Details for the file aionetbox-1.0.1.tar.gz
.
File metadata
- Download URL: aionetbox-1.0.1.tar.gz
- Upload date:
- Size: 9.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.37.0 CPython/3.6.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | dda47d8816148478736d7c83b51f9cfc75f47a4beea41ef95f4401a9cc56ea02 |
|
MD5 | 79442b88e1466f26111a1af9640561c7 |
|
BLAKE2b-256 | c2d7b5dd83e685bc7d9b17fdfb4c27664313a9b1250b864ca7221c5fa805ae3e |
File details
Details for the file aionetbox-1.0.1-py3-none-any.whl
.
File metadata
- Download URL: aionetbox-1.0.1-py3-none-any.whl
- Upload date:
- Size: 21.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.37.0 CPython/3.6.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 739d2ffb567726cf7a35f1c7b9a0215017e15744e3f5f1bd13a7bfea484cada1 |
|
MD5 | d260c17c339629e6e04a93e8eb1676df |
|
BLAKE2b-256 | ec984a24dfc9db1a64cc41760d947ddd3b309eaa2d0229a1d5f75632b42c334b |