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.0.tar.gz
(9.4 kB
view details)
Built Distribution
File details
Details for the file aionetbox-1.0.0.tar.gz
.
File metadata
- Download URL: aionetbox-1.0.0.tar.gz
- Upload date:
- Size: 9.4 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 | 12bb79ef7741d4636daad1509337da861c101b561108a4df3f03b7ad937a268e |
|
MD5 | 876b2e8f256c77fee80d5548178d9529 |
|
BLAKE2b-256 | 887a47f54acbc17fd10c6dfc49168cbea685335debeefd3d329bf142b9272b89 |
File details
Details for the file aionetbox-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: aionetbox-1.0.0-py3-none-any.whl
- Upload date:
- Size: 8.7 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 | 29afc802f012347c5d7e32d841100b9e6bd2d2c0bea1792f6c6e072238984d61 |
|
MD5 | 26185b1ec3dea45404da0b040e550e55 |
|
BLAKE2b-256 | df5b707af15997048dc4009eb65bcda6e8014090f05e8f4884b0c89559d5e521 |