异步netbox库
项目描述
AIO Netbox
一个符合任何运行中的netbox通过其OpenAPI规范的异步netbox库
安装
AIONetbox作为库分发,旨在包含在其他asyncio python项目中。它是在python 3.6+上开发的,尽管推荐使用3.8。
pip install aionetbox
使用
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')
每个模块和方法都映射到netbox的swagger定义(/api/docs)
项目详情
下载文件
下载适合您平台的文件。如果您不确定该选择哪个,请了解更多关于安装包的信息。
源代码分发
aionetbox-1.7.4.tar.gz (22.8 kB 查看哈希值)
构建分发
aionetbox-1.7.4-py3-none-any.whl (23.7 kB 查看哈希值)