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.2.tar.gz
(10.2 kB
view details)
Built Distribution
aionetbox-1.7.2-py3-none-any.whl
(23.5 kB
view details)
File details
Details for the file aionetbox-1.7.2.tar.gz
.
File metadata
- Download URL: aionetbox-1.7.2.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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6f49278539692149e14a09940e09c4908aad9072b4c2a41de8ac190daf25582c |
|
MD5 | 40b273d23be9f28015a59e87e5841c3b |
|
BLAKE2b-256 | ad1b12db0414fd9e703b7a39b33f861b589e1a11a4db85bc08eda2f7d567bc63 |
File details
Details for the file aionetbox-1.7.2-py3-none-any.whl
.
File metadata
- Download URL: aionetbox-1.7.2-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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9b955aadc7134f846f4e0392add971974e549975b75f0a5ff6718005332b2ecd |
|
MD5 | 41681dae9f356b1ae11b9457d56ca108 |
|
BLAKE2b-256 | e5f818966ea925dc3d2d0282f02ac62fa24e9ab10f65695624771999ec3bf16a |