Skip to main content

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


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.5.1.tar.gz (9.3 kB view details)

Uploaded Source

Built Distribution

aionetbox-1.5.1-py3-none-any.whl (22.7 kB view details)

Uploaded Python 3

File details

Details for the file aionetbox-1.5.1.tar.gz.

File metadata

  • Download URL: aionetbox-1.5.1.tar.gz
  • Upload date:
  • Size: 9.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.4.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.3

File hashes

Hashes for aionetbox-1.5.1.tar.gz
Algorithm Hash digest
SHA256 a101dda4f9a21597a08bd4d20ddde4c28cee3ca431168b1fb78f11aa8dca1455
MD5 ea8773a8987f4f5d44acfe476321459a
BLAKE2b-256 ceb8bf389dbbc7b21519cd96c4c87cfa575913bcbba902afdaf818323e8f7d60

See more details on using hashes here.

File details

Details for the file aionetbox-1.5.1-py3-none-any.whl.

File metadata

  • Download URL: aionetbox-1.5.1-py3-none-any.whl
  • Upload date:
  • Size: 22.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.4.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.3

File hashes

Hashes for aionetbox-1.5.1-py3-none-any.whl
Algorithm Hash digest
SHA256 efb8520bede89dfac296202139fd5c9a3542707ea07941bc09f0060ab09c14bb
MD5 63ad163c382ae6879670f0c6ad208854
BLAKE2b-256 4827e8afac88250a0cd1c3d45b7624027d8097eb73e2ced836cc140f47a78903

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page